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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

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
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.

Top Solution Authors