Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.
Free Trial

Alteryx Designer Desktop Discussions

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

Average and Standard Deviation over set number of cells in a column

JanLo
5 - Atom

Hi all – I need your expertise.  I need to mirror the Excel workings for a large amount of data (10 years worth) and I’m stuck.  I have Date and “Just Yield “ for my input.  The average and standard deviation are calculated over 20 Cells of data for each value.  I’m having trouble replicating this on Alteryx.  I’m guessing a multi tool could do it but I can’t seem to work it out.

 

I worked out how to do the daily change, after which I needed a lie down!

 

Any ideas how I could replicate average and standard deviation for the same output as Excel attached?

 

Excel Formula below

Daily Change

= (B2-B3)*100

Standard Deviation

= STDEV.S(C2:C21)… = STDEV.S(C3:C22)…etc

Average

= AVERAGE(B2:B21)… = AVERAGE(B3:B22) etc

3 REPLIES 3
Kakuffo
Alteryx
Alteryx

hi @JanLo the Summarize tool should achieve this for you First filter down the data you would like to analyze group it if it needs grouping and then apply the Avergae and Standard Deviations functions

DavidSkaife
13 - Pulsar

Hi @JanLo 

 

I've built this iterative macro that seems to do what you require:

 

DavidSkaife_2-1670520590722.png

 

 

DavidSkaife_0-1670520480904.png

 

It's set to a maximum iteration of 100, but you can change this in the Interface Designer

 

DavidSkaife_1-1670520557847.png

 

Let me know how you get on with it!

JanLo
5 - Atom

perfect!  thank you!

Labels
Top Solution Authors