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
jt197b
Frequent Visitor

How to display row data for all levels of a hierarchy in a matrix instead of auto-calculated sums

Hi!

 

I am trying to create a matrix visual to show individual employee data for various metrics in my company. The matrix should be organized by company hierarchy. For example, I should be able to "drill down" on an employee's name in a certain row, and view the data for that employee's direct reports. I want to be able to do 2 levels of "drilling down": I want to see the data for the direct reports, as well as the direct reports of the direct reports.

 

For my actual application, I am importing company data from tables in SQL servers with tens of thousands of rows, but for confidentiality purposes I mocked up an example of what I'm trying to accomplish:

 

This is my "Data" table:

jt197b_0-1645828983306.png

 

And this is my "Company Hierarchy" table:

jt197b_1-1645829012353.png

In this example, Employee 4 reports to Manager 2 who reports to Director.

 

Here is my model relationship based on the employee name, again very simple:

jt197b_2-1645829108147.png

 

And here is my matrix on the frontend. I was able to setup the "drilling down" feature on the matrix, but the values that display for the upper levels of the hierarchy (Manager and Director) are auto-calculated sums instead of being pulled from my data, and therefore not accurate.

jt197b_3-1645829207104.png    jt197b_4-1645829249324.png

As you can see, on the row subheader, PowerBI is automatically summing up the lowest level of data on the hierarchy and putting that sum on the subheader. But I want the matrix to actually show the data value at that hierarchy.

 

For example, for Manager 2, I want the value on the subheader to show "600" according to my data table, not the sum of "700". For the Director, I would like it to show "700" according to my data table, not the sum of the managers' data (1000).

 

Is there a way to show ALL levels of my hierarchy at once? I don't want auto-calculated sums, but I want to accurately represent the data values at all levels of my company.

 

Hope that makes sense.

 

Thanks in advance!

Johnathan 

3 REPLIES 3
Anonymous
Not applicable

Hi @jt197b ,

I'm trying to implement the same thing, hierarchy levels of financial indicators that are not calculatory levels but visual levels.
Have you tried  @Greg_Deckler solution ? Or have you managed to sort yourself out?

Cheers

Antoine

Hi Antoine,

 

I did manage to resolve this. Please refer to the accepted solution on this other post that I had submitted:

Solved: Getting a hierarchy slicer to show all levels of d... - Microsoft Power BI Community

Greg_Deckler
Community Champion
Community Champion

@jt197b Check MM3TR&R: Matrix Measure Total Triple Threat Rock & Roll - Microsoft Power BI Community



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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