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! Request now

Reply
Zak-Echelon
Frequent Visitor

How to disable sub totals for string values on matrix visual?

I have a report I am developing using the matrix visual that has two columns from my dataset in the rows column, RowColumnOne and RowColumnTwo, which are both strings. I also have several columns from the dataset in the values column, which can be strings or numbers.  This is so that I can get a hierarchical display of the two columns used as rows. 

In the subtotal columns for each value column, it is correctly summing the numeric values.  However for the string values, it is taking the first instance of each string it sees and is putting it as the sub total.  I would like to disable the string fields in the sub total while keeping the numeric ones.  What would be the best way to do this?

 

Current:

Group 1NumericString
        Sub-Group 12Hello
        Sub-Group 27World
Total9Hello

 

Desired:

Group 1NumericString
        Sub-Group 12Hello
        Sub-Group 27World
Total9 
1 ACCEPTED SOLUTION
parry2k
Super User
Super User

@Zak-Echelon is ISINSCOPE dax function to achieve this. There is a great post on it.



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

View solution in original post

5 REPLIES 5
jdbuchanan71
Super User
Super User

Hello @Zak-Echelon 

You would need to write a measure to check the level of the row and only display for the [sub-groups].  Something like this:

String Display = IF ( ISINSCOPE ( 'YourTable'[Sub-Group] ), MIN ( 'YourTable'[String] ) )

This will show blank on the total row for the string field. 

@jdbuchanan71 

@parry2k 

 

Currently, my ISINSCOPE function returns false for every row of the dataset.  Is there a specific way I need to configure my data to get it to work properly?

 

Here is a screenshot of the matrix configuration panel from power bi desktop.  Cannot share a picture of the matrix itself as it has confidential data. The is inscope measure is just IsInScopeMeasure = ISINSCOPE(Table[Column])

 

power-biCapture.PNG

@Zak-Echelon did you had chance to go thru the post I sent to you earlier, you will wrap your existing measure in If or switch condition so that it doesn't show the text on total.



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

@parry2k 

 

I figured out the issue.  I was using ISINSCOPE on the wrong columns.  I was originally calling ISINSCOPE on the string value column, when I should have been calling it on the sub group column.  Once I made that switch, everything works as expected.

 

Thanks for the help!

parry2k
Super User
Super User

@Zak-Echelon is ISINSCOPE dax function to achieve this. There is a great post on it.



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

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
Top Kudoed Authors