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
Graham_Inners
New Member

Table Matrix visualization hide subtotal for all but top group

hello 

I have a matrix with Country, catagory and subcategory. I have a budget figure just for Country, so when a user drills down a level below country I would like to hide the budget figure :

Graham_Inners_0-1676898835671.png

so I just want to show the first 10,000,000 and hide all the other figures until the 'Mexico' and 21,000,000 figures. thanks for any help

3 REPLIES 3
Graham_Inners
New Member

hi @bhelou sorry must be missing something, same result:

Graham_Inners_0-1676901322148.png

am I correct using the Table[Field] for the HASONCEVALUE or should I somehow refer to the field used on the Matrix?

bhelou
Responsive Resident
Responsive Resident

Try this : 

Budget = IF(HASONEVALUE(Country), SUM('Table'[Budget]), BLANK())

bhelou
Responsive Resident
Responsive Resident

This measure will only display the budget value when the Country column is the only field in the matrix, and it will display blank for any other level of the matrix.

You can replace the Country column in the above expression with the actual name of the column you are using in your matrix for the country level. If you have multiple columns for the country level, you can use the && operator to add additional conditions to the IF statement.

Once you have created this measure, you can use it in your matrix in place of the original budget value.

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