Alteryx Designer Desktop Discussions

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

Next 12 months calculation excluding months when value is zero

Liz001
7 - Meteor

I have a set of data where I have calculated the Next 12 months, but there are some months where the values are zero (see under Order Date the months of Feb 2018 and March 2018) and they were filtered out. I need to sum the next 12 months values, but before doing so, I want to include a formula that updates the Next 12 month values if the count of the values is not 12. In this case, the count is only 10, so I need to pick up the amounts for January 2019 and February 2019 and show those under the Next 12 Months column.   See screenshot below.

 

Liz001_0-1573679992137.png

4 REPLIES 4
fmvizcaino
17 - Castor
17 - Castor

Hi @Liz001 ,

 

Would you be able to show the expected outcome in an example excel file. Also, it is not clear how you calculate the next 12 months from your image.

 

Best,

Fernando Vizcaino

Liz001
7 - Meteor

Attached I have included my current workflow, which calculates the next 12 months column, and also a workflow to show what I want the total to be.

 

To calculate the next 12 month, I used the minimum order date and calculated from the next 12 months end date. Since there are some months in between those dates where the values are zero, the end 12 month period date includes those zero values. So, instead of fixing the end date, I thought maybe at the end of the workflow, just before the summarize tool, we can put a tool to update the next 12 month column to pick up an additional two months of data. 

 

Thank you!

fmvizcaino
17 - Castor
17 - Castor

Hi @Liz001 ,

 

Attached is a workflow with a fix for your next 12 months calculation.

 

Let me know if that works for you.

 

Best,

Fernando V.

Liz001
7 - Meteor

Thank you so much, Fernando! It worked!!!

Labels