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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
kmadimar
Frequent Visitor

Retreive Hierarchy of Organization tree

Spoiler
 

I have two tables :

 

COL_URE_BU  (fact table )contains all the roles of all users and their perimeter of visibility

For exemple id user 1 has a role of administrator of a group he/she'll have unique ure (URE_ID) and the ID of organization units and entities to which a user has visibility. But this tables do not contain hierarchy details, it only contains the id of the perimeter of his visibility ( all levels) 

 

COL_URE_BU

Association table between users unique URE_ID and Organization/Entity ID

URE_ID

Unique id that is created based on the user role

 

OBJ_ORGA_CONSO_FULL_10( dim)  contains the columns with id of each hierarchy level and include all the possible combinations of the organization hierarchy that contains in dataset 

 

OBJ_ORGA_CONSO_FULL_10

 

Table that contains organization hierarchy

ORGANIZATIONUNIT_ID

Last entity ID

ORGA_1 to ORGA10

Organization id from level 1 to level 10

 

I want to retreive parent/child of user visibility from OBJ_ORGA_CONSO_FULL_10( which contain reference of all entites)  and organization to my COL_URE_BU

unnamed (1).png

1 ACCEPTED SOLUTION
levangelista
New Member

Hi Kamilya,

 

I think this link can be helpful for your case :

https://p3adaptive.com/2019/02/powerquerymagic-conditional-joins-using-table-selectrows/

 

Kind regards,

L. Evangelista

View solution in original post

1 REPLY 1
levangelista
New Member

Hi Kamilya,

 

I think this link can be helpful for your case :

https://p3adaptive.com/2019/02/powerquerymagic-conditional-joins-using-table-selectrows/

 

Kind regards,

L. Evangelista

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors