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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
tomjneal
Frequent Visitor

Filtering two separate date columns using only one active relationship to date dimension table

I'm trying to show metrics around turnover, and my business partners want to see a detailed look at who was hired or terminated within a given time period. I have been able to make calculated columns and measures with these two sets of dates (hire and terminationed date) by taking advantage of the USERELATIONSHIP() function within DAX. However, when showing a detailed breakdown, slicers don't include the data from my inactive relationship.

 

So in this case, they want to see the individuals who terminated within a given time period, but the slicer only brings in those employees that were hired, and leaves out all employees that terminated in the same time period. Besides creating two separate date slicers, is there any way I can bring in both of these dates? Should I duplicate the sample data, the date dimension, or both? I appreciate any help you can give. Capture.PNGCapture2.PNG

3 REPLIES 3
tomjneal
Frequent Visitor

Any help on this would be greatly appreciated. Thank you!!

v-yulgu-msft
Microsoft Employee
Microsoft Employee

Hi @tomjneal,

 

You may need to duplicate the sample data table. And establish a relationship between duplicated table and the date dimension table based on terminationed date.

 

Regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Yuliana,

 

Thank you for your help! That worked for the date filter! I'm now able to filter both hire dates and termination dates. However, because the data is a copy, the "Department" and "Job Title" filters no longer function for my table containing terminated employees. When I try and create a relationship between those two data sets, I get an ambiguity error. I'd like to be able to put all of this information on the same page. Is that possible? Thank you so much for all of your assistance!

 

Capture.PNG

Capture2.PNG

 

Very respectfully,

Tom Neal

 

Helpful resources

Announcements
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.

Top Solution Authors