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
VinhTon
Helper I
Helper I

Do I need to create a separate Date Table for each Date field?

If I need to do calculate functions that depend on both order date and delivery date, do I need to create two separate date tables and link them independently?

https://www.youtube.com/watch?v=-li7sxUxEqA

dateTable.jpg

1 ACCEPTED SOLUTION
PC2790
Community Champion
Community Champion

Hey @VinhTon ,

 

You can use the same Date Table and create an active and inactive relationship between two tables- one between Date and Delivery date and other one between Date and Order Date.

This concept is called Role Playing Dimension

And in the scenarios where you need to enable the inactive relationship,use USERELATIONSHIP dax

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Hi @VinhTon ,


Could you tell me if your problem has been solved?
If it is, kindly Accept it as the solution. More people will benefit from it.
Or you are still confused about it, please provide me with more details about your problem.


Best Regards,
Stephen Tao

sorry about that, done

Anonymous
Not applicable

Hi @VinhTon ,

 

Another workaround is to unpivot the two columns in the Power Query Editor.

Here's an example,

vstephenmsft_3-1651222531568.png

 

Select the two date columns and then click 'Unpivot Columns'.

vstephenmsft_4-1651222556647.png

Then you could get a date column and a attribute column.

vstephenmsft_5-1651222605523.png

 

You can check more details from my attachment.

 

 

 

Best Regards,

Stephen Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

PC2790
Community Champion
Community Champion

Hey @VinhTon ,

 

You can use the same Date Table and create an active and inactive relationship between two tables- one between Date and Delivery date and other one between Date and Order Date.

This concept is called Role Playing Dimension

And in the scenarios where you need to enable the inactive relationship,use USERELATIONSHIP dax

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