Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
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

Labels (1)
1 Reply
swuehl
Champion III
Champion III

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

IntervalMatch and Slowly Changing Dimensions