Free Trial

Alteryx Designer Desktop Discussions

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

Subtract Stacked values

Rajat_Rehria
7 - Meteor

How to subtract the payment from the Bill amount if stacked onto each other in Alteryx

 

This is the sample Raw Data i have

TransactionAmountType
11000Invoice 1
21000Payment
   
31221Invoice 1
41221Payment
   
5254Invoice 1
6100Invoice 2
7354Payment
   
8544Invoice 1
9544Payment
   

 

 

And this is the desired output i want which subtract all the Invoice amount from the Payment amount.

TransactionAmountType
11000Invoice
21000Payment
 0 
31221.5Invoice
41221Payment
 0.5 
5254Invoice
6100Invoice
7354Payment
 0 
8544Invoice
9544Payment
 0 

 

6 REPLIES 6
Rajat_Rehria
7 - Meteor

payment can also be multiple times so in that case i need to subtract the summation of all the payment from summation of all the respective invoice amount which stacked above the Payments.

Srikanth_Dahima
6 - Meteoroid

Let me Know if you find out

looking out for similar output

With Input 

Srikanth_Dahima
6 - Meteoroid
Description8901687006Total
Ending Balance as Per Cash Sheet16886.916886.9
Ending Balance As per Bank16886.916886.9

 

Output

Description8901687006Total
Ending Balance as Per Cash Sheet16886.916886.9
Ending Balance As per Bank16886.916886.9
Discrepancy00
CoG
14 - Magnetar

This can be accomplished by combining the power of a few tools, namely Formula Tool, Summarize Tool, and Union! There is some separate setup that must be implemented before those tools will work for you, but that's not too complicated (as can be seen below):

Screenshot.png

 

Hope this helps and Happy Solving!

Srikanth_Dahima
6 - Meteoroid

Can you please look into my issue

 

Rajat_Rehria
7 - Meteor

Manu thanks @CoG for the solution

Labels
Top Solution Authors