Skip to main content
Announcements
Live today at 11 AM ET. Get your questions about Qlik Connect answered, or just listen in. SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Problem with IntervalMatch and Slowly changing Dimension

Hello,

I browsed materials on community, including HIC posts, but I am still not able to do what I want...

I've got a table which shows how employee allocation was changing:

   

Employee IDDivisionStartEnd
AA106-Jan-201519-Jul-2015
AB120-Jul-201520-Sep-2015
AV221-Sep-201501-Oct-2017

And I want to get a table like this:   

Employee IDMonthYearFromDateToDateDivision
A6-201501-Jun-201530-Jun-2015A1
A7-201501-Jul-201531-Jul-2015B1
A8-201501-Aug-201531-Aug-2015B1
A9-201501-Sep-201530-Sep-2015V2
A10-201501-Oct-201531-Oct-2015V2
A11-201501-Nov-201530-Nov-2015V2
A12-201501-Dec-201531-Dec-2015V2

Basically I want to see in which Division employee was working in every month of a year (Last day of a month is indicator). Table will be generated from master calendar, but for this example we can just hardcode 7 months...

Example:

For 9-2015 employee was in V2 division, because it started to be active end of Sep.

How to approach this? I am pretty sure IntervalMatch is the answer, but I have no luck with implementing it properly.

BR,

Kuba

3 Replies
Not applicable
Author

Hello,

Sorry for bumping it, unfortunately I am still not able to find a proper solution.

BR,

Kuba

thimma_paul
Contributor III
Contributor III

Hi,

Div column is denoting Jan to June as A1, July to Aug end as B1, and Sep to Dec as V2 rite...

BR,

Thimm

Not applicable
Author

Hello,

Not really. As you can see in example B1 starts on 20-Jul-2015, I mentioned that I must derive what Div was there in a particualr month, but looking at last day in that month.

In last day of month July B1 was active (as it started 20-Jul).

This is also why in Sep V2 is shown (as it started 21-Sep and was valid in last day of Sep)