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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

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
Microsoft Employee
Microsoft 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
Microsoft Employee
Microsoft 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
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors