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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount 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.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors
Top Kudoed Authors