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
acamar22
Helper I
Helper I

Matrix - How to remove row subtotal on rows with more than 1 data point?

Hi everyone, thanks for clicking on my question!

 

I'm looking to remove row subtotals on rows that have multiple data entries as shown below:

I would like for them to appear ONLY when the "Part #" is expanded.

acamar22_2-1698698335014.png

This is the expanded data set if needed:

 

acamar22_3-1698698730601.png

 

Alternatively, is there a way to remove the [+/-] expand button for rows with only 1 data point? If so, I could use ISINSCOPE() to remove the remaining subtotals.

 

Thanks for any help!

 

4 REPLIES 4
BA_Pete
Super User
Super User

Hi @acamar22 ,

 

For the 'First Failure' subtotals, I think you could do something with HASONEVALUE in your measure, maybe something like this:

First Failure =
IF(
    HASONEVALUE(YourTable[AnimalName]),
    [CurrentFirstFailureCalculation]
)

 

For the [+/-] buttons, I think they're either on or off and that's it.

 

Pete



Now accepting Kudos! If my post helped you, why not give it a thumbs-up?

Proud to be a Datanaut!




Hey @BA_Pete thanks for your help.

 

I apologize, I didn't correctly demonstrate the data with the examples i provided.

 

The problem is that there are some rows with multiple [Animal Names], so it doesn't truly only have 1 value.

 

Any ideas on how to work around this?

 

acamar22_0-1698773157528.png

 

I would still like it to display where it's circled.

 

Thanks again!

So for example you want a total on 3333 and 4444, but not Tiger?

 

I think this is in the visual options, go to subtotals by level and toggle off the ones you don't want.

 

Ah, I see.

Then I think you were correct initially: You'll probably get what you need using ISINSCOPE([Animal Names]). Put an IF or SWITCH around it to ensure you get blanks when it's not in scope.

 

Pete



Now accepting Kudos! If my post helped you, why not give it a thumbs-up?

Proud to be a Datanaut!




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!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 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.