Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
2 years ago
Solved

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.

 

 

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.

Then I built the relationships like this:

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 Reply