Alteryx Designer Desktop Discussions

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

How to create a formula to subtract by part number and a value for 2 dates

MikeFrancis1959
8 - Asteroid

I have a forecast that is from 2 different months and I am trying to figure out how the formula should be created. I have a forecast from March & May for 2 part numbers and a value for those 2 parts and I want to subtract the value based on part number and the month but not sure how to do it. I  want a formula to compare the part number for March to May and then get the delta between the values. I attached the small file and I show what expected results should be but I am looking on how I should create the formula, can someone please guide me as to what to do?

Thanks,

Mike 

 

3 REPLIES 3
FinnCharlton
13 - Pulsar

Hi @MikeFrancis1959 , here's one approach:

FinnCharlton_0-1683904931447.png

 

MikeFrancis1959
8 - Asteroid

Thank you, this works and I appreciate the help! This helps me understand how to do this for other files I have!!!

Mike

MikeFrancis1959
8 - Asteroid

I have a follow up question, I have parts that were in one month but not the other and the formula does not work. example: PN "A" has forecast of 500 in May and nothing in March so the formula does not pick up the 500 new pcs in May. I s there any way in Alteryx to compensate for this or just make sure the same part numbers are in both months ( can do this in Excel since this is a manual file put together before it goes into Tableau), any suggestions

Thanks,

Mike  

Labels