Alert: There is a planned Community maintenance outage October 16th from approximately 10 - 11 PM PST. During this time the Alteryx Community will be inaccessible. Thank you for your understanding!

Alteryx Designer Desktop Discussions

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

Reconciliation of Two tables

Anjankumar2021
8 - Asteroid

Hi Team,

 

Please assist on below issue.

 

i have used join tool to combine two tables with Product ID and Quantity but i got duplicated rows. so i used unique with transaction id.

Hence i received wrong difference as per below.

 

i want to find difference between amount and sales amount.

 

**Difference = amount (table A) - Sales amount (table B)

 

Actual output: we receive after running workflow:

 

Product IDQuantityAmountDistributorRight_Product IDTransaction IDRight_Quantitysale AmountSale dateDistributor/AgentDifference
671910000146843LG67191100891000014684312/12/2022LGEC0
67191100025260SAMSUNG6719123456110002526013/07/2023SAMSUNGEC0
6719300034058LG671922056930002577515/03/2023LGEC8283
6719300034058LG671923158930003405826/10/2022LGEC0
67196000597LG6719718956600059715/08/2023LGEC0

 

Inputs:

 

Input    Input     
Table A    Table B     
Product IDQuantityAmountDistributor Product IDTransaction IDQuantitysale AmountSale dateDistributor/Agent
6719    11,000    25,260SAMSUNG 6719123456110002526013/07/2023SAMSUNGEC
6719      3,000    34,058LG 671923158930003405826/10/2022LGEC
6719    10,000  146,843LG 67191100891000014684312/12/2022LGEC
6719      3,000    25,775LG 671922056930002577515/03/2023LGEC
6719      6,000         597LG 6719718956600059715/08/2023LGEC

 

Expected Output::

 

Product IDQuantityAmountDistributorProduct IDTransaction IDQuantitysale AmountSale dateDistributor/AgentDifference
6719    11,000    25,260SAMSUNG6719123456110002526013/07/2023SAMSUNGEC0
6719      3,000    34,058LG671923158930003405826/10/2022LGEC0
6719    10,000  146,843LG67191100891000014684312/12/2022LGEC0
6719      3,000    25,775LG671922056930002577515/03/2023LGEC0
6719      6,000         597LG6719718956600059715/08/2023LGEC0

 

3 REPLIES 3
rzdodson
12 - Quasar

@Anjankumar2021 maybe something like this? I joined on Record Position and then calculated the difference between Quantity fields. Hope that helps! :)

Anjankumar2021
8 - Asteroid

i want to find difference between amount and sales amount.

 

Difference = Amount (Table A) - Sales amount(Table B).

 

Please assist

rzdodson
12 - Quasar

You would just change the calculation in the formula tool.

 

1 - Solution.png

 

If this solves the use case case, please accept as a solution to help future Alteryx users :)

Labels