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: 
ecabanas
Creator II
Creator II

Assign standard Price-date

Hi,

I have this sales table with itemid, date and amount:

 

SalesidDateItemidunitsAmountPrice
A10/01/20151123
B15/02/20152144,2
C15/03/20154155,2

And a Standard Cost table ordered by itemid, from, to, and Cost

 

ItemidFromToPrice
1
01/01/201531/01/20153
1
01/02/201528/02/20153,2
101/03/201531/03/20153,3
201/01/201531/01/20154
201/02/201528/02/20154,2
201/03/201531/03/20154,3
301/01/201531/01/20155
301/02/201528/02/20155,1
301/03/201531/03/20155,2

And in a set analisys I want to match the itemid and date and choose the correct standard cost:

2015-11-24_13h32_23.png

Many thank's

1 Reply
swuehl
MVP
MVP

HIC as written an excellent tech doc about slowly changing dimensions, like your price table:

IntervalMatch and Slowly Changing Dimensions