Forum Discussion

benfitz23's avatar
benfitz23
Frequent Visitor
4 years ago
Solved

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!

  • 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






          

    Showcase Report – Contoso By SpartaBI

4 Replies

  • benfitz23's avatar
    benfitz23
    Frequent Visitor

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

  • SpartaBI's avatar
    SpartaBI
    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






          

    Showcase Report – Contoso By SpartaBI

    • benfitz23's avatar
      benfitz23
      Frequent Visitor

      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