Alteryx Designer Desktop Discussions

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

Current 3 months rolling data by Measure

aberthiaume
8 - Asteroid

Hello, 

 

I am trying to get 3 months of rolling data for the attached file.  I have tried several approaches I have seen posted and can't seem to get it right.  Each measure could potentially have a different begin data and this data is sent up one row per month.  so I need the rolling 3 months to group the Begin Date rows by measure.  

4 REPLIES 4
Brian32
8 - Asteroid

If you use the Multi Row Formula you should be able to accomplish this.  You will just want to group by ID and Measure in the configuration.  Prior to that just sort, by ID, Measure, and Date.  Hope this helps!

Brian32_1-1658340189008.png

 

Brian

SPetrie
13 - Pulsar

One possible solution: Summarize the data grouping by Measure and get the last Begin Date. That will give you the most recent date for each measure type. Using a formula tool to subtract 2 months from that date will give you the first month of your rolling 3 month period. You can find/replace based off of measure name back on the original data and filter out anything that doesnt start on or after the 3 month beginning date.

SPetrie_0-1658349280612.png

SPetrie_1-1658349305627.png

SPetrie_2-1658349342568.png

 

 

edited to include the workflow sample

Emmanuel_G
13 - Pulsar

Hi @aberthiaume ,

 

I did a test to calculate rolling average of Numerator field.

 

Find it attached.

Emmanuel_G_0-1658400801732.png

 

OllieClarke
15 - Aurora
15 - Aurora

Hey @aberthiaume 

Here's how I'd approach this:

OllieClarke_0-1658401944958.png

So we join the prior 2 months, plus current month onto each row, and then find the avg of those values.

 

Hope that helps,

 

Ollie

 

Labels
Top Solution Authors