Skip to main content
Announcements
Qlik Introduces a New Era of Visualization! READ ALL ABOUT IT
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Slowly Changing Dimension

I'm trying to figure out what to do for this SCD.

Any ideas would be greatly appreciated.

I've loaded my data below.

11 Replies
hic
Former Employee
Former Employee

You should use %_DateKey. But first you need to interpret the dates in the interval table as dates, e.g. through "Date#(StartDate,'YYYYMM') as StartDate". See attachment for a complete load statement.

HIC

Anonymous
Not applicable
Author

thanks, works great.

What about this? I don't know why it's not recognizing %_DateKey in this table now just below the interval match

PharmacyKeyTable:

LOAD

      PharmacyName & '|' & %_DateKey as PharmacyXDate,

      PharmacyName & '|' & StartDate & '|' & EndDate as PharmacyXInterval

resident SalesLocationTmp;