Let’s talk Alteryx Copilot. Join the live AMA event to connect with the Alteryx team, ask questions, and hear how others are exploring what Copilot can do. Have Copilot questions? Ask 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