Alteryx Designer Desktop Discussions

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

how to find the unique pair ?

Sshasnk
8 - Asteroid

I have multiple transactions from salary and I have to figure out the pair which is sum is not equal to zero

 

From the example below:  Salary Id;123 => 7000+(-7000) = zero-> Eliminate

                                          Salary Id 123 => 14200 + 10800 = 25000 (which is equal to salary amount) -> Keep it

Same goes for                   Salary Id 789 => 789 => -2500 + (-2500 )= -5000 (which is equal to salary amount) -> keep it 

salary_IdTransactionsalary
123700025000
123-700025000
1231420025000
1231080025000
123-800025000
123800025000
45638008800
45650008800
789-2500-5000
789-2500-5000

 

Output:

salary_idTransactionsalary
1231420025000
1231080025000
45638008800
45650008800
789-2500-5000
789-2500-5000
3 REPLIES 3
JosephSerpis
17 - Castor
17 - Castor

Hi @Sshasnk I mocked up a workflow let me know what you think?

Sshasnk
8 - Asteroid

@JosephSerpis 

If there are three transactions it is failing for example below, I just want to eliminate whose sum is coming as zero

 

salary_IdTransactionsalary
123700025000
123-700025000
1231420025000
123200025000
123880025000
123-800025000
12380002500

 

Note: Added 2000 in the transaction

JosephSerpis
17 - Castor
17 - Castor

Hi @Sshasnk I amended the workflow and came up with two other possible ways to tackle you problem. Let me know what you think?

Labels