We are celebrating the 10-year anniversary of the Alteryx Community! Learn more and join in on the fun here.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Calculate rollover based on conditions

Ronal_bal
8 - Asteroid

Hi,

 

I'm trying to calculate the actual CUM based on conditions present in the status column.

 

Perform subtraction whenever status is Okay or Ahead between Qty and cum+in_transit.

 

The Catch is i need to perform a rollver subtraction from previous Actual CUM for the above status.

 

For status is delayed, i require to assume the previous Actual CUM.

 

for the next status if it is okay or ahead. add the qty from previous delayed to current qty and then subtract from the previous delayed actual cum.

 

I tried using multi-row formula but not getting there, any help would be appreciated.

 

Attached the excel file with expected output

 

5 REPLIES 5
binuacs
21 - Polaris

@Ronal_bal Can check the attached workflow works for you? The last value i got 120 instead of 108

image.png

Ronal_bal
8 - Asteroid

@binuacs The logic you sent works 50% as expected. But if the first status is delayed then it it still calcualting cum_received - ASN Qty.

 

which should not be. And the as you said the last status is delayed, it is not taking the cummulative sum to previous actual Cum.

 

Thanks and appreciate for the help

Ronal_bal
8 - Asteroid

@caltang @Qiu

binuacs
21 - Polaris

@Ronal_bal updated the formula

image.png

caltang
17 - Castor
17 - Castor

@Ronal_bal Based on your requirements, @binuacs has solved it.

 

If it helps, do you mind marking his posts as accepted solutions to close your thread? Thanks

Calvin Tang
Alteryx ACE
https://www.linkedin.com/in/calvintangkw/
Labels
Top Solution Authors