In case you missed the announcement: The Alteryx One Fall Release is here! Learn more about the new features and capabilities here
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests after December 31, 2025. Set up your security questions now so you can recover your account anytime, just log out and back in to get started. Learn more here
Start Free Trial

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.

lag correlation

nidah5
8 - Asteroid

I have dataset with Customer, date, revenue and the count of complaint raised.

i need to find out the correlation between revenue and the lag count of complaints but with -3 month of count of complaints(rev_inc_lag,).

the workflow uploaded has all the fields calculated, want to find correlation using pearson for each customer in a month

4 REPLIES 4
AbhilashR
15 - Aurora
15 - Aurora

Hi @nidah5, you could use the Pearson or Spearman correlation tools within the Data Investigation tool palette to compute your correlations:

AbhilashR_0-1602013251832.png

 

 

nidah5
8 - Asteroid

I need to use pearson method which doesn't have group by function

jdunkerley79
ACE Emeritus
ACE Emeritus

One option would be to use a batch macro and run it one group at a time, though this would be pretty slow for a large set. Alternatively you can recreate the Pearson correlation from first principals using a summarise tool. 

 

I'd suggest looking https://community.alteryx.com/t5/Alteryx-Designer-Discussions/creating-Loop-for-correllation/m-p/634...

seinchyiwoo
Alteryx Alumni (Retired)

@jdunkerley79 yes indeed using batch macro does solve the problem.

Attached is how the solution will look like on @nidah5 's data:

seinchyiwoo_0-1602049257854.png

 

Labels
Top Solution Authors