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.

Combination and nearest value

tansh0099
7 - Meteor

Hi experts!

I have built few workflows earlier, but combination and nearest value match is something that I don't know much about it.

there are 2 different data sets like the below table: 

Data set 1Data set 2
Legal.Entity.IDBase.USD.AmountLegal Entity IDBase USD Amount
8304046642830-1724333
  830-8926592
  83010650925
  830-6604283
  830-2.7E+07
  8304370243
  830214050

i want to find out the combination of Base.USD.Amount in data set 1 from Base USD Amount from data set 2 (i have bold the numbers in data set 2 which sums up to the amount in data set 1) and get the combinations from data set 2 as output.

 

secondly, after doing the above condition i also want to check  (for the rest of the data from data set 2) the nearest value. example shown in below table.

Data set 1Data set 2
Legal.Entity.IDBase.USD.AmountLegal Entity IDBase USD Amount
8304046642830-1724333
  830-8926592
  8304046641.5
  830-6604283
  830-26706162
  8304370243
  830214050

i have bold the nearest value in data set 2 and that would be my 2nd output 

 

 

Please assist if anybody knows how to do it.

 

Thanks,

Tanushree 

10 REPLIES 10
tansh0099
7 - Meteor

it worked thanks @ShankerV 
@Christina_H and @peterr_h  thanks for your workflows here. I learnt a lot :)  

Labels
Top Solution Authors