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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
ale_BI
Helper I
Helper I

Using a hierarchy table without proper columns in a table as a measure

I have a hierarchy tables of companies, and I need to use this to show in a table that certain companies are under others. The problem is that this hierarchy, as you can see below, has one column for father and child with distinct values, but only distinct values so I can't use the PATH function on it.

 

unnamed.png

 

Now I have to make this table in my report:

ale_BI_3-1669284313679.png

 

Where, for example, Revenues is both a hierarchy father and has 3 children, and so on. I am completely lost as to how to write down this in a measure, can anyone help me out? The First table is connected to my Facts Table through a column that has all of the values for the codes present in 'root' and so on. The first table is just temporary, it will then be updated to include more data, but I thought I could at least try to get started on this

 

3 REPLIES 3
NikhilChenna
Skilled Sharer
Skilled Sharer

Hi @ale_BI ,

 

You will be able to drag the measures only in the values part. So I think it should effect you. Try it out. 

 

Regards,

Nikhil Chenna

 

Appreciate with a Kudos!! (Click the Thumbs Up Button)
Did I answer your question? Mark my post as a solution!

NikhilChenna
Skilled Sharer
Skilled Sharer

Hi @ale_BI , I think you can use a matrix table as a visual. 
and drag root_desc in rows first and after the L1_desc second so the hirarchy comes properly. 


Regards,
Nikhil Chenna

Appreciate with a Kudos!! (Click the Thumbs Up Button)
Did I answer your question? Mark my post as a solution!

I think that could work, but I am afraid I need to show more values at the bottom which I have in form of measures. So, ideally, I would put everything in a measure and then show it

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.