Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
bill_mtc
Partner - Creator
Partner - Creator

How to query a price using Set Analysis or other approach?

Hi Guys!

I have this concern, since I don't have slow changing dimension of data, what I have is only a historical data where it only add new record whenever the price changes or have promotions. Please find the sample data below:

ItemPriceStart DateEnd Date
A10010/1/201410/31/2014
A1509/1/2014
A1708/1/2013
A2001/1/2013

NOTE: Record with END DATE is promotional price, so when end date is no longer current or not equal to current date, then use the previous record.

Find below the Q&A:

Q&A:

1. Q: What is the price of Item A on 9/10/2014?

     A: 150

2. Q: What is the price of Item A on 10/15/2014?

     A: 100

3. Q: What is the price of Item A on 11/1/2014?

     A: 150

Could values/answers above could be done using set analysis? Or should I do other approach? Please let me know, your help is much appreciated.

Regards,

Bill

0 Replies