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.
SOLVED

Selecting a column to look up a value from based on value on another column

Kvvzz
5 - Atom

I have a set of data with transactions with various currencies, I need to look up the daily exchange rate from a list that is set up as below selecting the column based on the currency for each transaction.

Kvvzz_0-1626273568561.png

 

At the moment my workflow is set up to filter by each currency, look up the value for each flow with a Join tool then combine the data again (screenshot below), which looks pretty redundant and would become particularly messy once more currencies were added.

Kvvzz_1-1626273704723.png

 

Any ideas on what would be the best way to simplify this? 

Thanks

6 REPLIES 6
atcodedog05
22 - Nova
22 - Nova

Hi @Kvvzz 

 

You can use tranpose tool to convert all columns of currencies to rows. This way you can also join on currency for the respective. If you provide us some sample data we can take a look into it.

Kvvzz
5 - Atom

Thanks @atcodedog05, I thought using Transpose tool would be the way to go but not sure how to then look up the value based on the date? I've attached an example of the sort of data I would have and the exchange rate filed.

atcodedog05
22 - Nova
22 - Nova

Hi @Kvvzz 

 

Here is how we can do it.

 

Workflow:

atcodedog05_0-1626274986639.png

 

Hope this helps : )

apathetichell
20 - Arcturus

kind of like this?

Kvvzz
5 - Atom

That's perfect, thanks @atcodedog05! 

Kvvzz
5 - Atom

Thank you @apathetichell, yes, that also works 🙂 

Labels
Top Solution Authors