Alteryx Designer Desktop Discussions

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

Add in missing months for products

Usamah22
8 - Asteroid

hello,

 

i have a dataset as below which for some products is missing dates. i want to make sure i have every missing month in there and make the sales figure the average of the previous 2 months.

 

this is what data looks like currently.

 

ProductSalescurrent
a101/09/2019
a201/10/2019
a301/11/2019
a401/03/2020
a501/04/2020
a201/05/2020
a201/06/2020

 

This is what i need it to be...

 

ProductSalesneeds to be
a101/09/2019
a201/10/2019
a301/11/2019
aaverage of prev 201/12/2019
aaverage of prev 201/01/2020
aaverage of prev 201/02/2020
a401/03/2020
a501/04/2020
a201/05/2020
a201/06/2020
2 REPLIES 2
pedrodrfaria
13 - Pulsar

Hi @Usamah22 

 

Please see attached for the workflow:

 

pedrodrfaria_0-1613138180961.png

 

Pedro.

Usamah22
8 - Asteroid

thanks. just realised when i run it for more than one products it doesn't seem to do it. some products will have every month in there already, could that be why?

Labels