Forum Discussion

garynorcrossmmc's avatar
garynorcrossmmc
Icon for Advocate IV rankAdvocate IV
5 years ago

Relating Date Table to Min/Max Dates

Hi all,

I am working on a Headcount Details report, where the users requested a filter to show all employees as of a certain date - so the filter will be called 'As Of Date.'  


I have indirect relationships built between a Date table (called Date) and a Fact table called HR FACT_WORKFORCEEVENT.  The relationships are for a 'From Date' (EFFFROMDATE) and a 'To Date' (EFFTODATE).  

 

Is there a way to create a calculated column (a flag) for all records where 

The EFFTODATE is >= Selected Date && The EFFFROMDATE is <= Selected Date?

2 Replies