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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
bsz412
Helper III
Helper III

matrix visual hiding subtotal value for text column - issue when filtering

hello, 

 

I have this matrix visual: 

 

bsz412_0-1647447204699.png

behind the ETIM class category I have the following measure, to hide the subtotals:  

 

ETIM class category for matrix =

IF(
ISFILTERED(
globalproduct[ETIM_class]
),
VALUES(
globalproduct[ETIM_class_cat]
),
BLANK()
)
 
This works perfectly, but if I want to filter out the rows where total sellout is blank or zero, this formula brakes, and I get the following error message: 
bsz412_1-1647447408652.png

any hints how I could fix this?

thank you

 

1 ACCEPTED SOLUTION
jdbuchanan71
Super User
Super User

@bsz412 

Try it like this instead.

 

ETIM class category for matrix =
IF (
    ISFILTERED ( globalproduct[ETIM_class] ),
    MAX ( globalproduct[ETIM_class_cat] ),
    BLANK ()
)

Or maybe use HASONEVALUE.

ETIM class category for matrix =
IF (
    HASONEVALUE ( globalproduct[ETIM_class] ),
    MAX ( globalproduct[ETIM_class_cat] ),
    BLANK ()
)

 

View solution in original post

2 REPLIES 2
jdbuchanan71
Super User
Super User

@bsz412 

Try it like this instead.

 

ETIM class category for matrix =
IF (
    ISFILTERED ( globalproduct[ETIM_class] ),
    MAX ( globalproduct[ETIM_class_cat] ),
    BLANK ()
)

Or maybe use HASONEVALUE.

ETIM class category for matrix =
IF (
    HASONEVALUE ( globalproduct[ETIM_class] ),
    MAX ( globalproduct[ETIM_class_cat] ),
    BLANK ()
)

 

hi, thanks, the hasonevalue version fixed it! I tried the MAX solution before, and interestingly what happens is that the subtotal does not disappear when I use MAX and I filter out not blanks of the total sellout: 

bsz412_0-1647448679150.png

 

But HASONEVALUE is giving the required outcome! THANK YOU!

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

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.