Alteryx Designer Desktop Discussions

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

Currency match without knowing the currency

clio
7 - Meteor

Hi everyone,

 

I have used Alteryx for a while and I want to use Alteryx to do the currency match. 

 

Here is the case:

 

I want to find pair transaction in different currency but without knowing the currency and it may occur in same or next day.

I have an exchange rate sheet for reference and the acceptable exchange rate tolerance is +-2%.

I want to find out the match and flag it with unique id for identification.

 

Example:

DateDescriptionCurrencyWithdrawalDeposit
2018-Feb-03Buy 133HKD 12100
2018-Feb-04Sell 122AUD2000 
2018-Feb-04Sell 211HKD23500 
2018-Feb-04Buy 244USD 3000
2018-Feb-04Buy 344CAD 3000
2018-Feb-04Sell 900HKD18250 

 

And I have a reference sheet like this with base currency in HKD:

CurrencyRate
HKD1
USD7.8
CAD6.1
AUD6.1

 

Desired Result:

DateDescriptionCurrencyWithdrawalDepositMatch ID
2018-Feb-03Buy 133HKD 121001
2018-Feb-04Sell 122AUD2000 1
2018-Feb-04Sell 211HKD23500 2
2018-Feb-04Buy 244USD 30002
2018-Feb-04Buy 344CAD 30003
2018-Feb-04Sell 900HKD18250 3

 

Thanks so much for the help!

2 REPLIES 2
BenMoss
ACE Emeritus
ACE Emeritus

Here's how I would solve the problem using the generate rows tool to create 'buffers' and then perform a join.

 

I have applied the logic to do +-2% but have also applied a logic so it only looks for sell transactions that are within 4 days of a buy transaction.


See attached which gives me exactly the result you were looking for!

 

Ben

clio
7 - Meteor

Thanks a lot!!

Labels