Start Free Trial

Alteryx Designer Desktop Discussions

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

Look up value in range

RDF25087
8 - Asteroid

Hello all -

 

I wonder if anyone can assist. I have a table of products and their price over time (Table A):

 

 

TABLE A   
Product IDValid FromValid ToPrice
123401.01.202130.04.20213.00
123401.05.202130.08.20213.50
123401.09.202131.12.20213.75
134201.01.202130.04.20215.00
134201.05.202130.08.20215.25
134201.09.202131.12.20216.00
233101.01.202130.04.20214.33
233101.05.202130.08.20214.52
233101.09.202131.12.20214.61
233101.01.202231.12.99994.88

 

I then have a separate data source of product sales (Table B):

 

TABLE B 
Created DateProduct ID
01.04.20211234
17.09.20211342
17.09.20211234
20.10.20212331
03.11.20211342
25.12.20211234
07.01.20222331

 

What I need is a workflow that will look up the Created Date in the Valid To/From range and the Product ID from Table A and append the relevant Price to Table B. The desired outcome should look like this:

 

DESIRED RESULT 
Created DateProduct IDAppended Value
01.04.202112343.00
17.09.202113426.00
17.09.202112343.75
20.10.202123314.61
03.11.202113426.00
25.12.202112343.75
07.01.202223314.88

 

It's probably really simple but I'm fairly new to this and Google searches have gotten me nowhere - any help would be gratefully received.

 

Many thanks

RDF

2 REPLIES 2
binu_acs
21 - Polaris

@RDF25087 

binuacs_0-1648222981739.png

 

atcodedog05
22 - Nova
22 - Nova

Hi @RDF25087 

 

Here is another way of doing it.

 

Workflow:

atcodedog05_0-1648225171287.png

 

I have explained the steps in the annotations let me know if you have questions.

 

Hope this helps : )

Labels
Top Solution Authors