Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
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 1 | Numeric | String |
| Sub-Group 1 | 2 | Hello |
| Sub-Group 2 | 7 | World |
| Total | 9 | Hello |
Desired:
| Group 1 | Numeric | String |
| Sub-Group 1 | 2 | Hello |
| Sub-Group 2 | 7 | World |
| Total | 9 |
Solved! Go to Solution.
@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.
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.
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])
@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.
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!
@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.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.