Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
3 years ago
Solved

How to join/create relationship between two tables with non unique values?

Hi,   I need to create a graph that uses metrics from two different tables. Both the tables do not use any non-unique keys/columns, the only unique thing would be a combination of the different col...
  • timg's avatar
    3 years ago

    Hi RikPatel,

    Here you could make good use of dimensional modelling. This means you create tables in which the descriptive information is separated by topics into dimensions (e.g. in this case you could create a table with all unique dates and a table with all unique locations). you then create a relationship between these dimension tables and the tables containing your metrics (Fact tables). This way, whenever you select a location or date from your dimension table, all fact tables will be filtered. So you can plot metrics from both tables in the same graph.

    Hope that helps a bit. Here's an example of a dimensional model from the microsoft learn page for reference: Tutorial: From dimensional model to stunning report in Power BI Desktop - Power BI | Microsoft Learn

     

    Best regards,

     

    Tim