Alteryx Designer Desktop Discussions

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

Add in missing months for products

Usamah22
Asteroide

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 RESPOSTAS 2
pedrodrfaria
Pulsar

Hi @Usamah22 

 

Please see attached for the workflow:

 

pedrodrfaria_0-1613138180961.png

 

Pedro.

Usamah22
Asteroide

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?

Enquetes
We’re dying to get your help in determining what the new profile picture frame should be this Halloween. Cast your vote and help us haunt the Community with the best spooky character.
Don’t ghost us—pick your favorite now!
Rótulos