Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
jorditorras
Creator
Creator

Price based on range dates

Dear Gurus,

I’m working in a Purchasing Application in QlikSense and there’s one section that I don’t know how to manage…

I have two tables similar as the one of the screenshot:

jorditorras_0-1625474453509.png

I want to get the “InfoRecord Price” for each “Order Number” considering:

  1. Each “InfoRecord Code” of the INFOREC TABLE has different ranges of dates (Date Start-Date End) and therefore different ”Inforecord Prices”
  2. The Price I need for each “Order Number” should be the one which his “Order Date” is between the range “Date Start – Date End” of the INFOREC TABLE.

Any idea how to handle it?

Thanks in advance!

Labels (2)
1 Reply
kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi @jorditorras  what you need is the "Intervalmatch" function.

Check out this.

https://help.qlik.com/en-US/sense/June2019/Subsystems/Hub/Content/Sense_Hub/Scripting/ScriptPrefixes...

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!