Free Trial

Alteryx Designer Desktop Discussions

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

Data Preparation

ayadav8
8 - Asteroid

Hello,

 

My file contains various product numbers and each product have monthly data(months are in ascending order). I am trying to calculate Central Moving Average of the value. I was able to calculate the CMA but I want the top 6 months (i.e in example 2014-07-01 to 2014-12-01) and bottom 6( i.e in example 2017-06-01 to 2017-11-01) values to be blank.

 

I have monthly data from 2014 to 2017. The months will always be in ascending order but the start and end months could vary. The selection of top & bottom 6 months should be grouped by Product no.

 

Also attaching an excel example for clarity.

Any help is appreciated. Thanks!

 

Product NoMonthCMA
1233322014-07-0120
1233322014-08-0121
1233322014-09-01

19

.  
.  
123322017-11-0130
145662014-07-0155
145662014-08-0160
.  
.  
145662017-11-0171
   
2 REPLIES 2
jrgo
14 - Magnetar

@ayadav8,

 

Your example in the Excel file and the table you included in this post were throwing me off on what it was exactly you were looking for, but the solution attached will generate the output to match your Excel file.

image.png 

Hope this helps!

 

Jimmy

ayadav8
8 - Asteroid

@jrgo This is exactly what I wanted. Thanks Jimmy

Labels
Top Solution Authors