Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
nuwanhwb87
Contributor III
Contributor III

Connect the Date to find Cadre

02.PNG

Labels (1)
3 Replies
edwin
Master II
Master II

Assuming the user selects a Month and the Current Cadre means determine if the Emp is active in any date inside the selected Month:

edwin_0-1609855336234.png

 

nuwanhwb87
Contributor III
Contributor III
Author

Can u please explain further How to link Date key

edwin
Master II
Master II

what i did was build a bridge that links all combinations of start + end date to dates where it is between the two dates.  for example:

start date 1/1/2020 end date 1/5/2020 will be linked to 
1/1/2020, 1/2/2020, ..up to 1/5/2020.

this means if any one date is selected, all EmpIDs with start and end date straddling the selected date will be a possible selection.  if you select on a higher level (month) then any emp with a linked date inside the month will be a possible selection.

the bridge would normally link your fact table and your calendar which is what you use to select a date, month, or year