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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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