Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
garynorcrossmmc
Advocate IV
Advocate IV

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).  

tables.png

 

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 2
amitchandak
Super User
Super User

@garynorcrossmmc , Refer my HR Blog on the similar topic

https://community.powerbi.com/t5/Community-Blog/HR-Analytics-Active-Employee-Hire-and-Termination-tr...

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Hi @amitchandak, thank you for your response!

I actually used that measure before to count the amount of employees.  But what I'm trying to do is filter the fact table (HR FACT_WORKFORCEEVENT) to show the detail of that count.  So this detail tab would include all rows of those active employees.  How do I build that column to filter the table?  

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.