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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

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

PBI_Carousel_NL_June

Fabric Community Update - June 2024

Get the latest Fabric updates from Build 2024, key Skills Challenge voucher deadlines, top blogs, forum posts, and product ideas.

Top Solution Authors