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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
benfitz23
Frequent Visitor

Multiple Tables with Similar Columns

Hi, I have a report which has multiple tables worth of data (7 in total). They all have 2 columns in common which is country name and Risk rating.

 

I have reports on one which pulls data from all 7 of these different tables and I would like to have filters on them by Country and by Risk Rating. So, I'm trying to figure out what the best way to create relationships between all 7 tables for both country name and risk rating but I can't seem to do it as it creates inactive relationships. I'm wondering what the best practice would be to get all the 7 tables synced up so I could slice by Country Name and Risk Rating and have all graphs affected. 

 

Thank you!

1 ACCEPTED SOLUTION
SpartaBI
Community Champion
Community Champion

@benfitz23 you need to create 2 new dimension tables.
1. That will have the unique list of countries
2. That will have the unitque list of Risk ratings.

Then you will create a 1 to many relationship for each one to all the other 7.
You need to just use the country and risk columns from the new dimension tables and they will filter all the others.

I suggest some reading and youtube about data modeling in Power BI.
Try also take the courses in sqlbi.com



2022-05-19 17_30_22-Re_ Need help on DAX function with measure vs colu... - Microsoft Power BI Commu.png


Full-Logo11.png

SpartaBI_3-1652115470761.png   SpartaBI_1-1652115142093.png   SpartaBI_2-1652115154505.png

Showcase Report – Contoso By SpartaBI

View solution in original post

4 REPLIES 4
benfitz23
Frequent Visitor

I just had to delete other relationships between the tables, thank you Sparta!

@benfitz23 my pleasure 🙂
Do check out my showcase report - got some high level stuff there. Sure you will find there a lot of cool ideas. Please give it a thumbs up over there if you liked it 🙂
https://community.powerbi.com/t5/Data-Stories-Gallery/SpartaBI-Feat-Contoso-100K/td-p/2449543

SpartaBI
Community Champion
Community Champion

@benfitz23 you need to create 2 new dimension tables.
1. That will have the unique list of countries
2. That will have the unitque list of Risk ratings.

Then you will create a 1 to many relationship for each one to all the other 7.
You need to just use the country and risk columns from the new dimension tables and they will filter all the others.

I suggest some reading and youtube about data modeling in Power BI.
Try also take the courses in sqlbi.com



2022-05-19 17_30_22-Re_ Need help on DAX function with measure vs colu... - Microsoft Power BI Commu.png


Full-Logo11.png

SpartaBI_3-1652115470761.png   SpartaBI_1-1652115142093.png   SpartaBI_2-1652115154505.png

Showcase Report – Contoso By SpartaBI

Hi Sparta, thank you so much for the reply. I will be sure to check out those courses. 

I have created a new dimension table called Country and connected it to YAP and Detailed Issues (2 of my 7 tables) but the link between Country and Detailed Issues is inactive. I'm unsure if I might have a mistake somewhere here? Thank you so much for the help so far

benfitz23_0-1659550837979.png

 

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

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