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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Laura_May
New Member

Date table relationships between multiple tables

I am trying to connect tables that have a structure where the data has a hierarchical structure, with the projects table ID being the primary key and the parent ID in the milestones table being a foreign key. This is the structure:

Laura_May_0-1714128385533.png

 

I want to be able to use visualisations to filter the data; for example, to create a table visualisation that shows the corresponding milestones / tasks when a project is selected. I also want to be able to filter by date across the three tables. However, when I try to create active relationships between the fact tables and the date table, I get a warning that I cannot create this due to an active set of indirect relationships between the tables. I’m not sure how best to set up the relationships?

1 ACCEPTED SOLUTION
Wilson_
Memorable Member
Memorable Member

Hi Laura,

 

The reason you cannot create the relationship between date and all three fact tables is because your filters would be ambiguous. For example, there would be more than one to filter down from the date table to Milestones. If the Date to Milestones relationship was active, how would your model know to use Dates to filter Project, which filters Milestones or to filter from Dates to Milestones directly?

 

Wilson__0-1714135294600.png

 

There are almost certainly ways to achieve something like what you want; you just have to be very intentional about how exactly you want the user to interact with the report.

 

Two possible solutions off the top of my head:

  • Create a parameter that can be used to dynamically let Power BI know which date you want to filter by
  • Create three different date tables, each individually connected to one of the three tables, if you need to filter by multiple dates to the three tables at the same time


----------------------------------
If this post helps, please consider accepting it as the solution to help other members find it quickly. Also, don't forget to hit that thumbs up and subscribe! (Oh, uh, wrong platform?)

 

P.S. Need a more in-depth consultation for your Power BI data modeling or DAX issues? Feel free to hire me on Upwork or DM me directly on here! I would love to clear up your Power BI headaches.

View solution in original post

1 REPLY 1
Wilson_
Memorable Member
Memorable Member

Hi Laura,

 

The reason you cannot create the relationship between date and all three fact tables is because your filters would be ambiguous. For example, there would be more than one to filter down from the date table to Milestones. If the Date to Milestones relationship was active, how would your model know to use Dates to filter Project, which filters Milestones or to filter from Dates to Milestones directly?

 

Wilson__0-1714135294600.png

 

There are almost certainly ways to achieve something like what you want; you just have to be very intentional about how exactly you want the user to interact with the report.

 

Two possible solutions off the top of my head:

  • Create a parameter that can be used to dynamically let Power BI know which date you want to filter by
  • Create three different date tables, each individually connected to one of the three tables, if you need to filter by multiple dates to the three tables at the same time


----------------------------------
If this post helps, please consider accepting it as the solution to help other members find it quickly. Also, don't forget to hit that thumbs up and subscribe! (Oh, uh, wrong platform?)

 

P.S. Need a more in-depth consultation for your Power BI data modeling or DAX issues? Feel free to hire me on Upwork or DM me directly on here! I would love to clear up your Power BI headaches.

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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