Important Community update: The process for changing your account details was updated on June 25th. Learn how this impacts your Community experience and the actions we suggest you take to secure your account here.

Alteryx Designer Desktop Discussions

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

Reconciliation of two tables with Join tool (resolve duplicate records)

Anjankumar2021
8 - Asteroid

please assist on the below . i have used join tool **join by specific records but it created duplicated rows and when we apply unique tool its deleting 3000 with 25775 (table A)  instead of 34058. its giving invalid difference of 8283.

 

output received :

Product IDQuantityAmountDistributorRight_Product IDTransaction IDRight_Quantitysale AmountDistributor/AgentDifference
671910000146843LG671911008910000146843LGEC0
67191100025260SAMSUNG67191234561100025260SAMSUNGEC0
6719300034058LG6719220569300025775LGEC8283
6719300034058LG6719231589300034058LGEC0
67196000597LG67197189566000597LGEC0

 

input:

 

Table A   
Product IDQuantityAmountDistributor
6719    11,000    25,260SAMSUNG
6719      3,000    34,058LG
6719    10,000  146,843LG
6719      3,000    25,775LG
6719      6,000         597LG

 

Table B    
Product IDTransaction IDQuantitysale AmountDistributor/Agent
67191234561100025260SAMSUNGEC
67197189566000597LGEC
671911008910000146843LGEC
6719231589300034058LGEC
6719220569300025775LGEC

 

Required Output: Difference = Amount - Sale Amount

 

Product IDQuantityAmountDistributorProduct IDTransaction IDQuantitysale AmountDistributor/AgentDifference
6719    11,000    25,260SAMSUNG67191234561100025260SAMSUNGEC0
6719      3,000    34,058LG6719231589300034058LGEC0
6719    10,000  146,843LG671911008910000146843LGEC0
6719      3,000    25,775LG6719220569300025775LGEC0
6719      6,000         597LG67197189566000597LGEC0
8 REPLIES 8
flying008
14 - Magnetar

Hi, @Anjankumar2021 

 

FYI.

 

录制_2024_05_23_15_00_30_743.gif

binuacs
20 - Arcturus
Anjankumar2021
8 - Asteroid

thank you so much for your help :)

 

Anjankumar2021
8 - Asteroid

@binuacs  workflow unable to reconcile for the below .  we got invalid break of 2491 and 2489. could you pls advise in this case.

 

167191100025260SAMSUNG1234561100025260SAMSUNGEC0
26719300034058LG231589300034058LGEC0
3671910000146843LG

110089

10000146843LGEC0
46719300025775LG220569300025775LGEC0
567196000597LG7189566000597LGEC0
667322000402SAMSUNG17111542020002891LGEC-2491
7673220002891LG1711665902000402LGEC2489
867323000831LG1699753423000831SAMSUNGEC0

 

input : 

 

table 1

Product IDQuantityAmountDistributor
671911,00025,260SAMSUNG
67193,00034,058LG
671910,000146,843LG
67193,00025,775LG
67196,000597LG
67322,000400SAMSUNG
67322,0002,891LG
67323,000831LG

 

table2:

 

Product IDTransaction IDQuantitysale AmountDistributor/Agent
67191234561100025260SAMSUNGEC
67197189566000597LGEC
671911008910000146843LGEC
6719231589300034058LGEC
6719220569300025775LGEC
67321699753423000831SAMSUNGEC
673217111542020002891LGEC
67321711665902000402LGEC

 

required output:

 

RecordIDProduct IDQuantityAmountDistributorTransaction IDRight_Quantitysale AmountDistributor/Agentdiff
167191100025260SAMSUNG1234561100025260SAMSUNGEC0
26719300034058LG231589300034058LGEC0
3671910000146843LG11008910000146843LGEC0
46719300025775LG220569300025775LGEC0
567196000597LG7189566000597LGEC0
667322000400SAMSUNG1711154202000402LGEC2
7673220002891LG17116659020002891LGEC0
867323000831LG1699753423000831SAMSUNGEC0
binuacs
20 - Arcturus
Anjankumar2021
8 - Asteroid

Amazing its working good...:)

Anjankumar2021
8 - Asteroid
 
@binuacs Kindly assist on the below exception.
 
workflow working fine and giving 98% accuracy. but got below exception with Distributor/Agent.
 
when reconciling Distributor or agent name should match with Product id , Qty, amount / sales amount.
 
workflow is able to match all above fields except distributor / agent.
 
LG Vs. SAMSUNG
SAMSUNG Vs LG
 
Input files:
 
Table A    Table B    
Product IDQuantityAmountDistributor Product IDTransaction IDQuantitysale AmountDistributor/Agent
99992000538LG 999913267154105000300TCL
999970001541LG 999981562938200002200Onida
99993000605LG 99991820535012000850Onida
99994000531LG 999918229595200080Onida
99999000513LG 9999182364375000170Onida
9999200092LG 99991155743986000300TCL
9999260001421LG 9999181679452000565LG
9999100030LG 999917186199770001565LG
99995000510Sansui 9999182253283000622LG
9999200097Samsung 9999182919764000550LG
9999200088Samsung 9999183132089000520LG
999911000277Samsung 9999131379082000100LG
9999200002198Onida 999983212521260001426LG
999912000845Onida 999983477386100031LG
9999200069Onida 9999816850085000536Sansui
99995000174Onida 999918275687200097Samsung
999986000303TCL 999912886183200088Samsung
9999105000300TCL 99997327325711000277Samsung

 

we got output as per below.

 

RecordIDProduct IDQuantityAmountDistributorTransaction IDRight_Quantitysale AmountDistributor/Agentdiff
199992000538LG181679452000565LG-27
2999970001541LG17186199770001565LG-24
399993000605LG182253283000622LG-17
499994000531LG182919764000550LG-19
599999000513LG183132089000520LG-7
69999200092LG18275687200097Samsung-5
79999260001421LG83212521260001426LG-5
89999100030LG83477386100031LG-1
999995000510Sansui816850085000536Sansui-26
109999200097Samsung131379082000100LG-3
119999200088Samsung12886183200088Samsung0
12999911000277Samsung7327325711000277Samsung0
139999200002198Onida81562938200002200Onida-2
14999912000845Onida1820535012000850Onida-5
159999200069Onida18229595200080Onida-11
1699995000174Onida182364375000170Onida4
17999986000303TCL1155743986000300TCL3
189999105000300TCL13267154105000300TCL0

 

Required output :

 

RecordIDProduct IDQuantityAmountDistributorTransaction IDRight_Quantitysale AmountDistributor/Agentdiff
199992000538LG181679452000565LG-27
2999970001541LG17186199770001565LG-24
399993000605LG182253283000622LG-17
499994000531LG182919764000550LG-19
599999000513LG183132089000520LG-7
69999200092LG131379082000100LG-8
79999260001421LG83212521260001426LG-5
89999100030LG83477386100031LG-1
999995000510Sansui816850085000536Sansui-26
109999200097Samsung18275687200097Samsung0
119999200088Samsung12886183200088Samsung0
12999911000277Samsung7327325711000277Samsung0
139999200002198Onida81562938200002200Onida-2
14999912000845Onida1820535012000850Onida-5
159999200069Onida18229595200080Onida-11
1699995000174Onida182364375000170Onida4
17999986000303TCL1155743986000300TCL3
189999105000300TCL13267154105000300TCL0
binuacs
20 - Arcturus

@Anjankumar2021 I had to add the agent also in the logic to match your outputimage.png 

 

Labels