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

Duplicate DateKey Relationship To 1 Table? (Correct Model Configuration?)

I'm attempting to configure my data model, but have a question as to 'best practice' for this type of situation...

 

I have a table that contains appointments. The appointments have two date properties of intrest:

 

  1. Appointment Date = Date of the individuals appointment
  2. Create Date = Date the appointment record was created

I have a typical DateKey table in my model, but I'm a bit confused about how to setup the relationship in the model. Do I:

 

  1. Create a *:1 on appointments.appointment_date = DateKey.Date (cross filter both) & create *:1 on appointments.create_date = DateKey.Date (cross filter both)
  2. Only create 1 of the two relationships
  3. Don't create any relationship, and powerBI will utilize the datetable, as it is marked as a date table and no relationship is needed? 
1 ACCEPTED SOLUTION
LivioLanzo
Solution Sage
Solution Sage

Hi @pe2950,

 

your scenario is known as Role Playing Dimensions. You can create an active relationship between the Date dimension and the column from the fact table which you're more likely to use and an inactive relationship between the Date dimension and the other column in the fact table. When you want to browse your model by the date of the inactive relationship use the USERELATIONSHIP  function to activate it in your measure

 


 


Did I answer your question correctly? Mark my answer as a solution!


Proud to be a Datanaut!  

View solution in original post

1 REPLY 1
LivioLanzo
Solution Sage
Solution Sage

Hi @pe2950,

 

your scenario is known as Role Playing Dimensions. You can create an active relationship between the Date dimension and the column from the fact table which you're more likely to use and an inactive relationship between the Date dimension and the other column in the fact table. When you want to browse your model by the date of the inactive relationship use the USERELATIONSHIP  function to activate it in your measure

 


 


Did I answer your question correctly? Mark my answer as a solution!


Proud to be a Datanaut!  

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

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

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.