Let’s talk Alteryx Copilot. Join the live AMA event to connect with the Alteryx team, ask questions, and hear how others are exploring what Copilot can do. Have Copilot questions? Ask here!
Start Free Trial

Alteryx Designer Desktop Discussions

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

offset based on Order number

Amy123
8 - Asteroid

Hi Team,

 

Can anyone help me on below scenario:-

 

I have same order number for two amount say for example 

Order Number 121 has two transaction $ 100 Debit  and $ 100 Credit. Now, Without using the summarize tool how can we offset this two amount.

 

8 REPLIES 8
cmcclellan
14 - Magnetar

That depends on the format of your data

Amy123
8 - Asteroid

@cmcclellan 

 

Didn't get you 

Amy123
8 - Asteroid

@cmcclellan 

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

salary_IdTransaction
1237000
1232000
1237200
1237000
123-7000
1237000
123-7000
1238000
4563800
4565000
789-2500
789-2500
AZuc
Alteryx Alumni (Retired)

@Amy123 

 

I didn't get the whole idea but see if this workflow helps you (at least to identify who's paired and who's not)

André Zuccatti

Sales Engineer - LATAM -
Alteryx, Inc.


Amy123
8 - Asteroid

@AZuc 

 

No..this is not i am looking.

 

usually on Salary ID level some amount could be net off that i highlighted in Pivot column..

 

salary_IdTransactionPivot 
12370007000
12320002000
12372007200
12370000
123-70000
12370000
123-70000
12380008000
45638003800
45650005000
789-2500-2500
789-2500-2500
AZuc
Alteryx Alumni (Retired)

@Amy123 see if this one works for you

André Zuccatti

Sales Engineer - LATAM -
Alteryx, Inc.


Amy123
8 - Asteroid

@AZuc 

 

Can you test this data..

 

Salary_IdTransactionPivot
4859520-600000
4859520600000
4859520108500108500
4859520-134700134700
48714636000060000
48714636000060000
494443749184918
4944465247395247395
497353781988198
49855504150041500
5019528121.33121.33
50195284853.154853.15
501952812479.5412479.54
5019528-17454.0417454.04
5024390-16880
502439016880
503256012500
5032560-12500
5032560-3572.83572.8
50325621032500
5032562-1032500
503637347004700
5036373178284.94178284.94
5036373-182984.94182984.94
5057319-103690
5057319103690
5059944-1893860
50599441893860
5077285-475.050
5077285475.050
PangHC
13 - Pulsar

try this. 

  1. ABS  (for grouping)
  2. ID for each + and - (for groping as well)
  3. Summarise by salary ID, ABS, ID. sum by transaction.
  4. Join back later 

but i not understand why still positive even it original is negative. (you can add a abs function later.)

 

thanks @AZuc, after i open your workflow, only realise i do too much 😂

 

after:

Pang_Hee_Choy_0-1636447274888.png

 

before:

 

Pang_Hee_Choy_1-1636447359439.png

 

Labels
Top Solution Authors