Skip to main content
Announcements
See why Qlik is a Leader in the 2024 Gartner® Magic Quadrant™ for Analytics & BI Platforms. Download Now
cancel
Showing results for 
Search instead for 
Did you mean: 
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