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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Han_Solo
Regular Visitor

Subtotal to Matrix Visual not working.

Hi, hope this is an easy fix that I have overlooked. 

I have a matrix visual as follows: 

Han_Solo_0-1732054170736.png

The Issue: I am trying to create a total just for the "Count" column (which is actually under Values, so I have to enable "Row Subtotals". However, this gives me totals for all of the values which I dont want. 

When I enable Per Row Level, it allows me to select 2 (out of four) measures in the Rows. Selecting either does not help. 

 

Han_Solo_1-1732054879577.png

Han_Solo_2-1732055046185.png

I thought the problem was the range measure which might have been messing up the ability to select specific totals, however i tried with a differnt measure in the Rows and did the same thing.  Any help would be appreciated.  

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Han_Solo ,

 

Try rewriting the measures like this:

 

Average =
IF (
    NOT ISBLANK ( SELECTEDVALUE ( 'Table'[matrix bottom row] ) ),
    <The original [Average] code>
)

 

vcgaomsft_0-1732523698404.png

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @Han_Solo ,

 

Try rewriting the measures like this:

 

Average =
IF (
    NOT ISBLANK ( SELECTEDVALUE ( 'Table'[matrix bottom row] ) ),
    <The original [Average] code>
)

 

vcgaomsft_0-1732523698404.png

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum

Greg_Deckler
Community Champion
Community Champion

@Han_Solo Unfortunately it's not trivial. https://community.fabric.microsoft.com/t5/Quick-Measures-Gallery/The-New-Hotness-Custom-Matrix-Hiera...



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Top Solution Authors