Forum Discussion

Sachy123's avatar
Sachy123
Helper V
3 years ago

Hierarchy Modelling - Many to Many relationships

In my operational database, the tables are structured in such a way that each object has its own ID and the relationship between objects are stored in another tabes called as relation tabe.

Essentially, the relation table contained a parent child relationship. I added an extra column in it called as PATH, that I can use to traverse through the relations. 

So the tables are City, State, Country and Continent.

City:

State

 

Country 

 

Continent:

 

 

 

Most Important is this table which shows the path

table_REL

 

 

 

Question : What is the best way to model this kind of structure in Power BI?  

The below obviously doesnt work the best.

 

Shall I make a bridge table and then link the Table_Rel to each dimension? Has anyone come across such modelling ?

 

 

1 Reply