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

A SQL DB to Power BI join/relationship question.

Hi,

I am building a report with data from a SQL Server DB. The SQL DB does have relationships configured, however a lot of the joining tables are empty, therefore these configured relationships will not work. The developers of the SQL DB use other tables, that contain data, to do the joins by using the uniqueidentiifer column of those tables. Only the developers would know this is possible. Someone like me looking at the DB's ERD will see the relationships configured through looking at the empty tables.

When importing the tables into Power BI, the configured relationships are recognised and created in Power BI. I then have to go in and add the relationships the developers have told me to use. This can created ambiugity.

So question is, should I delete the relationships Power BI has identified and simply created those the developers have told me about?

What's the normal practice?
Thanks.

1 ACCEPTED SOLUTION
v-qiuyu-msft
Community Support
Community Support

Hi @Anonymous,

 

When we load two or more tables at the same time, Power BI desktop will looks at column names in the tables we are querying to determine if there are any potential relationships. If there are, those relationships are created automatically.

 

So in your scenario, if the relationships told by SQL DBA is the same as Power BI detect, then you needn't to modify them. While the logic is different, you can mange relationships follow this article based on your needs. See: Create and manage relationships in Power BI Desktop.

 

Best Regards,
Qiuyun Yu

Community Support Team _ Qiuyun Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-qiuyu-msft
Community Support
Community Support

Hi @Anonymous,

 

When we load two or more tables at the same time, Power BI desktop will looks at column names in the tables we are querying to determine if there are any potential relationships. If there are, those relationships are created automatically.

 

So in your scenario, if the relationships told by SQL DBA is the same as Power BI detect, then you needn't to modify them. While the logic is different, you can mange relationships follow this article based on your needs. See: Create and manage relationships in Power BI Desktop.

 

Best Regards,
Qiuyun Yu

Community Support Team _ Qiuyun Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

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

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.