Alteryx Designer Desktop Discussions

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

Reference Table lookup with Column and Row Headers

KP_dup_173
5 - Atom

Hi All, 

Wondered if anyone can assist with a lookup table. It needs to check for a ccy holiday and update for the next day after holiday or weekend. I am thinking of something like a ref data table with holidays & weekends populated. Then my other input file would have various CCYs and a date - but I am not able to figure out how to do a two way look up i.e 1. Find CCY, 2. Check if date is available. If not populate with next available date. Perhaps there is an easier way, looping back until it finds one available?
 
For example if the date for my JPY is 08/01/21 it would see that is not available, nor the next 4 and would return the valid day 13/01/21
KP_0-1623260410997.pngKP_2-1623261432037.png

 

 

4 REPLIES 4
Luke_C
17 - Castor

Hi @KP_dup_173  could you post the data instead of screenshots? Will be easier to look at/play around with. 

Jonny
11 - Bolide

Hi @KP_dup_173 ,

 

I tried my hand with some sample data created, next time it would be easier with a sample workflow :P.

 

Jonny_0-1623274397801.png

The trick is how your 1st table data is structured, you cant read the data in the Column headers so I had to transpose.

From this:

Jonny_1-1623274494240.png

To this:

Jonny_2-1623274512948.png

then join at CCY level, then this formula:

Jonny_3-1623274551310.png

 

and summarise tool:

Jonny_4-1623274576461.png

 

et voila:

Jonny_5-1623274651696.png

 

Probably you have to bullet proof it with some more scenarios, but it seems to have worked!

 

Hope that helps!

cheers!

 

Jonny

 

KP_dup_173
5 - Atom

Thank you Luke-C - noted for next time 🙂

KP_dup_173
5 - Atom

Thanks Jonny - This looks great. I need to have a play to build in to my flow. Appreciate your help. 

Labels