Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.

Alteryx Designer Desktop Discussions

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

Dedcut Amount based on the sequence

SH_94
11 - Bolide

Hi community,

 

I would like to ask how we calculate the " Amout used" as per the following screnshot:

Basically the total of " Amount used" will be equivalent to Final Amount. The concept is we will utilised all the " initital amount" until it's total amount is exactly as per "Final amount"

 

 

SH_94_0-1674184372778.png

 

SH_94_1-1674184524895.png

 

Thankyou for the help

 

 

3 REPLIES 3
ShankerV
17 - Castor

Hi @SH_94 

 

Please find the expected output.

 

ShankerV_1-1674186272370.png

 

Workflow:

 

ShankerV_0-1674186209742.png

 

Note: The workflow used to achieve the solution is attached which can be downloaded to see how the solution works.

 

If you believe your problem has been resolved. Please mark helpful answers as a solution so that future users with the same problem can find them more easily!!!!

 

Many thanks

Shanker V

ShankerV
17 - Castor

Hi @SH_94 

 

Please find one more simplified way also to achieve the same result.

 

ShankerV_0-1674186520061.png

 

Workflow:

ShankerV_1-1674186532948.png

 

 

Note: The workflow used to achieve the solution is attached which can be downloaded to see how the solution works.

 

Many thanks

Shanker V

 

Raj
16 - Nebula

Great logic...!

Labels