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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

Creating a relationship between multiple tables that share only 2 columns

Hi - I am trying to create a dashboard showing test results for different items.

 

There is an exel file for each type of test. In each file there are multiple sheets - each for a different type of product.

megan8_2-1701716901287.png

 

 

My goal is to produce a report - with a page for each product type. Each report page will contain filters, and 2 or more bar charts with Description as the X axis and and average of 'Data' per description as the Y axis.

 

I have the charts working well - and most of the filters. (there's many more columns than the example data).

 

The problem I am having is Brand and Sub Brand.

 

All other filteres are just off 1 column - to create them I used power query editor with the first sheet as the source (Product 1-Test 1) - and then appended the rest of the sheets. Then removed the columns I didn't want, removed duplicates, and then removed blanks.

megan8_0-1701716370954.png

Then I built the relationships like this:

megan8_1-1701716701831.png

The brand/sub brand - i just cannot figure out how to do. Ideally I would be able to relate 1 brand table to all the data. I can accept having 1 brand/sub brand table for each sheet if needed though. The trouble I seem to be having is that it's 2 columns. I would like to be able to filter on Brand, and then sub brand - hierarchically I suppose...

 

Anyway - can anyone help me sort out how to make this work?

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous ,

Thanks for reaching out to us with your problem.  I'm not clear about your requirement. Do you want to create the relationships between the table 'Product 1 - test 1' and 'Product 1 - test 2' base on the field [brand] and [sub brand]? If yes, you can create another inactive relationship base on the field [sub brand] after create the relationship base on the field [brand]. You can refer the following links to get it:

Create the inactive relationship:

Inactive relationships 

vyiruanmsft_0-1701833333511.png

How to deal with inactive relationship:

Enable Load & Include In Report Refresh in Query Editor - PBI Visuals

radacad.com/userelationship-or-role-playing-dimension-dealing-with-inactive-relationships-in-power-bi

 

If the above one can't help you get the expected result, please provide some raw data in your tables (exclude sensitive data) with Text format and your expected result with special exmaples. It would be helpful to find out the solution. You can refer the following link to share the required info:

How to provide sample data in the Power BI Forum

 

And It is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community. Thank you.

How to upload PBI in Community

Best Regards

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi @Anonymous ,

Thanks for reaching out to us with your problem.  I'm not clear about your requirement. Do you want to create the relationships between the table 'Product 1 - test 1' and 'Product 1 - test 2' base on the field [brand] and [sub brand]? If yes, you can create another inactive relationship base on the field [sub brand] after create the relationship base on the field [brand]. You can refer the following links to get it:

Create the inactive relationship:

Inactive relationships 

vyiruanmsft_0-1701833333511.png

How to deal with inactive relationship:

Enable Load & Include In Report Refresh in Query Editor - PBI Visuals

radacad.com/userelationship-or-role-playing-dimension-dealing-with-inactive-relationships-in-power-bi

 

If the above one can't help you get the expected result, please provide some raw data in your tables (exclude sensitive data) with Text format and your expected result with special exmaples. It would be helpful to find out the solution. You can refer the following link to share the required info:

How to provide sample data in the Power BI Forum

 

And It is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community. Thank you.

How to upload PBI in Community

Best Regards

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.