Alteryx Designer Desktop Discussions

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

Performing serial calculations on a range

NotQuiteClueless
7 - Meteor

I have a set of data with dates from April 2016 to February 2018. I need to evaluate the mean of the values in all of the complete twelve month periods in the data e.g. for Apr 16 to Mar 17 and then for May 16 to Apr 17 and so on up to Mar 17 - Feb 18. (I also have to calculate the median of those sets)

What's the best way to do it?

6 REPLIES 6
BenMoss
ACE Emeritus
ACE Emeritus

Hi @NotQuiteClueless,

 

What you can do is pivot your dataset so you have a row for each month instead of column for each month.

You can then create a tag which represents the appropriate fiscal period for that month, probably using a formula tool.

 

Finally you can use the summerize tool, grouping by your new fiscal period field, and summerizing your value column in as many ways as you like (min, max, median, mode, mean, sum, etc.).

Happy to build an example out if you have some sample data.

Ben

LordNeilLord
15 - Aurora

Hey @NotQuiteClueless

 

If you want to calculate the rolling average for the period you can use the multirow formula tool...something like this:

 

RollingAverage.PNG

 

@LordNeilLord

Part time Tableau, Part Time Alteryx. Full Time Awesome


Data Lover

BenMoss
ACE Emeritus
ACE Emeritus

Agree with @LordNeilLord, I misinterpreted the question.

BenMoss
ACE Emeritus
ACE Emeritus

With my new understanding (thanks @LordNeilLord), here is my suggestion. 

 

This is easily scalable to look back n number of months (currently set to 12) and across different measures.

 

See attached workflow.

 

Workflow.png

 

Ben

 

 

NotQuiteClueless
7 - Meteor

Simple when you know how.

 

Thank you very much


@LordNeilLordwrote:

Hey @NotQuiteClueless

 

If you want to calculate the rolling average for the period you can use the multirow formula tool...something like this:

 

RollingAverage.PNG

 

@LordNeilLord

Part time Tableau, Part Time Alteryx. Full Time Awesome


Data Lover


 

Usamah22
8 - Asteroid

Hello,

 

I am trying to do some calculations on data that looks like below. I want to take the average of the latest 2 days of sales and compare it to the average of the previous 5 days. Trying to use a multi row formula. Can you help please?

 

DateSales
28/02/20209
29/02/20208
01/03/202010
02/03/20208
03/03/20209
04/03/202015
05/03/202022
06/03/202020
Labels