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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Adiuser
Regular Visitor

Creating Hierarchy on Un-related tables

Hi All , We are working on a POC and we have this reqmnt where we need to create a hierarchy between country - > Region - > City. The issue here is In the source tables I have relation only between country - > Region or Country - > City . There is no relationship between Region to city . So I have country , region and city individual tables and region_country , country_city . there are no columns I can relate to bring a relationship between region_city in order to create a hierarchy. Is there any work around for this in power BI ? I saw function 'RELATE' to bring columns to a single table but if there is no common columns to relate at all between region and city , how do we get this hierarchy ? Please help. Thanks In Advance.
1 ACCEPTED SOLUTION
v-yulgu-msft
Employee
Employee

Hi @Adiuser,

 

No. As there is no mapping relationship between region and city, it is not possible to determine current city belongs to which region. It is not possible to create hierarchy on unrelated tables. In your scenario, you have to create an extra table to list the mapping rule between region and city.

 

Regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-yulgu-msft
Employee
Employee

Hi @Adiuser,

 

No. As there is no mapping relationship between region and city, it is not possible to determine current city belongs to which region. It is not possible to create hierarchy on unrelated tables. In your scenario, you have to create an extra table to list the mapping rule between region and city.

 

Regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Agree. Thank you !

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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