Start Free Trial

Alteryx Designer Desktop Discussions

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

Look up value between two dates

RDF25087
8 - Asteroid

Hi all -

 

Hopefully this is fairly simple - though not for me...

 

I have a list of products and their price changes over time, e.g.

 

ProductFromToCost
896501.01.202031.12.2020195.4
896501.01.202131.03.2021206.75
896501.04.202131.12.2021211.33
896501.01.202231.12.9999225.63
897401.10.202131.12.2021261.84
897401.01.202231.03.2022275.46
897401.04.202231.12.9999283.33

 

I need to append the "Cost" value to my main data where the "Date" value falls between the "From" and "To" dates in the table above:

 

DateProductExpected Result
01.01.20228974275.46
26.10.20218965211.33

 

So, in the example above for product 8965, because the date (26.10.2021) falls between 01.04.2021 and 31.12.2021 in the top table I need to append the value of 211.33.

 

Makes sense?

 

Any help greatly appreciated, as always.

RDF

3 REPLIES 3
IraWatt
17 - Castor
17 - Castor

Hey @RDF25087,

Here is a simple way to do this:

IraWatt_0-1657033559198.png

Any questions or issues please ask :)
HTH!
Ira

 

binu_acs
21 - Polaris

@RDF25087 one way of dong this

 

binuacs_0-1657036125049.png

 

RDF25087
8 - Asteroid

Hi both -

 

Thank you both for your solutions. I ran @binu_acs in my workflow and it worked a treat.

 

Regards

RDF

Labels
Top Solution Authors