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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
Anonymous
Not applicable

Use Different Date Relationship

Hello,

 

I have a fact table and a date table in my model. The fact table contains two date columns of interest: "Pick-Up Date" and "Order Completed Date". For one matrix in the report, I have to slice on the year of "Pick-Up Date" . For another matrix in the report I have to slice on the year of "Order Completed Date". The relationship between my date table and my facts table is between "Fact[Order Completed Date]" and "Date[Date]". How can I slice on the years of "Pick-up date" via my date table (which btw of course contains a year column)? I know of USERELATIONSHIP but I don't see how to implement that here. Should I just use the auto-date hierarchy or create a calculated column in my fact table containing the year or "Pick-up date"?


Thanks in advance 🙂 

3 REPLIES 3
amitchandak
Super User
Super User

If you need both dates to work on the same date. join them with a common date dimension. Refer to the article it has all the steps.

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
Anonymous
Not applicable

Thank your reply. However what I want to do is in one matrix use as columns the year dimension for pick-up date, and in another matrix use the year dimension corresponding to "Order Completed Date". Now, because the active relationship is between my date field in the date table and the "order completed date", if I drag the year dimension from my date table to columns it slices on the "order completed date". But in another matrix that is not what I want. I also want to use years as columns but these years should represent the years of the "pick up date" which has an inactive relationship with the date column of the date table. How do I use years referring to "pick up date" as columns in my matrix when the active relationship is with another date column in my fact table ("Order Completed Date")?

@Anonymous ,

 

Please share some sample data and clarify more details about the expected result.

 

Regards,

Jimmy Tao

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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
Top Kudoed Authors