Alteryx Designer Desktop Discussions

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

Averaging

Marialt
5 - Atom

I have to prepare some data that requires an average for each currency

 

In excel it is easy to fix the start point and then the end point moves for each month

 

CY PERIOD YYPY PERIOD YYEURGBPJPYUSD
01/01/201701/01/20161.3612991178.36941.48225
01/02/201701/02/20161.3123881172.78181.42545
01/03/201701/03/20161.2738511156.86091.38665
01/04/201701/04/20161.263381161.48151.4388
01/05/201701/05/20161.2802581156.62921.46135
01/06/201701/06/20161.3134781162.98671.46525
01/07/201701/07/20161.2113841138.20841.34615
01/08/201701/08/20161.185991135.98661.32315
01/09/201701/09/20161.176871135.4861.31015
01/10/201701/10/20161.1609041131.20321.2976
01/11/201701/11/20161.111051127.68911.2156
01/12/201701/12/20161.1744371141.52491.24825

 

So the formula average in excel for Jan EUR would be =AVERAGE($C$2:C2), Feb would be =AVERAGE($C$2:C3) etc

 

How do I replicate this within Alteryx

 

2 REPLIES 2
jdunkerley79
ACE Emeritus
ACE Emeritus

A couple of steps to achieve this:

1 - Add a Record ID tool (this will just add a record number for a count)

2 - Use the Running Total tool to create totals for each Currency

3 - Use a multi field formula to create an average value.

 

You can then clean up with a select tool.

 

Sample attached

Marialt
5 - Atom

Thank you so much, works perfectly

Labels