Start Free Trial

Alteryx Designer Desktop Discussions

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

Join data within a specific percentage

Carlos77
7 - Meteor

Hello there,

 

I would need to join 2 datasets, with the following rules;

 

Data 1 column 'File Reference' = Data 2 column 'File Reference'

 

AND

 

Data 1 column 'LC Amount' is within +/- 50% of Data 2 column 'LC Amount'.

 

In other words if Data 1 'LC Amount' is 1000,00CHF and Data 2 'LC Amount' is 1200,00CHF, the records should be included in the joined records.

 

If Data 1 'LC Amount' is 150,00CHF and Data 2 'LC Amount' is 1200,00CHF, the records should not be joined.

 

I tried searching the forum but couldn't find anything similar.

 

Thanks and best regards,

Carlos77

 

3 REPLIES 3
Emil_Kos
17 - Castor
17 - Castor

Hi @Carlos77,

 

I would suggest join the data as it is and unfiltered positions that you didn't wanted to join. 
I don't think Alteryx will allow you to achieve your task in opposite way. 


If this is helpful for you please mark my post as a solution. 

If not please provide us with a small portion of the data and I can make a working solution for you. 

Carlos77
7 - Meteor

Hello @Emil_Kos,

 

Thanks for your reply. Here's some data, if you could propose a solution that would be great.

 

Thanks and best regards,

Carlos77

 

Data 1      Data 2 
File NumberLC Amount     File NumberLC Amount
20-9076-9053000012509.09     23-9082-93303300128929
3028878445-0383678.87     20-9076-9053000012509.09
3030387395-0380-16335.23     3028878445-038314889.13
3028909343-0589-15961.84     3028909343-058912673.5
3028909340-058915864.31     3028909340-058912673.5
23-9082-93303300128929.53     26-5353-0090990050000
53-5353-0090330046376.95     53-5353-0090330046376.95
60-9073-0090400061119.14     60-9073-0090400061119.14
3033809597-093511635.65     3030387395-038016335.23
26-5353-0090990050000     94-5350-93003300290522.62
00-9333-93303700-849.44     00-9332-9330320014539.96
23-9082-93303300128929.53     00-9333-9330370019204.51
20-9325-93303600-56873.67     20-9325-9330370013793
20-9325-93303700-56483.67     20-9325-9330360040000
3030387395-038016335.23     20-9325-9330360013793
00-9332-93303200-96.97     20-9325-9330370040000
3028878445-0383678.87     20-9083-9320630013623.86
3028909343-0589-15961.84     20-9073-0040260019420
3028909340-058915864.31     48-5350-004023001000000
94-5350-93003300290522.62     3032593375-004743843.63
3030387395-038016335.23     3030387249-038013657.75
94-5350-93003300-290522.62     20-9073-0050230040412.38
3028878445-0383-678.87     20-9073-0050200014706.13
3028224456-0562-4301.87     3028224456-056213877.01
94-5350-93003300-290522.62     60-9073-0060330013100
3028878445-0383-678.87     94-5350-00603300219172.26
20-9083-93206300-13623.86     23-9325-0030380033976.31
3030387395-038016335.23     3033809597-093528176.66
20-9083-93206300-13623.86     3033809597-093518691.51
3030387249-0380-21892.33     3033809597-093518688.11
3028224456-05624301.87     3033809597-093518572.21
48-5350-004023001000000     3029845058-038018852.72
3032593375-0047-23.95     3029845058-038018347.97
20-9073-0040260031556.85     3029845058-038017874.75
20-9073-00502000-17150     3029845058-038018347.97
20-9073-00502300140     3029845058-038018780
48-5350-00402300-1000000     3029845058-038017878.23
3030387249-0380-21892.33     3029845058-038018792.55
3030387249-0380-21892.33     3029845058-038018852.72
23-9325-00303800-35025.21     3029845058-038017878.29
48-5350-00402300-1000000     3029845058-038023055.43
60-9073-0060330019820     3029845058-038019745.08
60-9073-00603300350     3029845058-038018321.91
94-5350-00603300-219172.26     3029845058-038018795.9
3029845058-038021366.64     3029845058-038023055.43
Emil_Kos
17 - Castor
17 - Castor

Hi @Carlos77,

 

I have prepared the workflow for you.

 

Emil_Kos_0-1607598504917.png

 

 

I have joined all the data and filtered out row that shouldn't be merged. I used union to join remaining data.

 

Please mark this solution if this was helpful!

Labels
Top Solution Authors