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 September 15. Request your voucher.

Reply
Elias-AR
New Member

Custom Subtotals in Matrix

Hi,

 

I have a matrix with different measures shown as columns and a Product Dim as rows.

EliasAR_0-1741179240009.png

I would like to add a subtotal for all the products except "Search" Call it "Recurring Total" then add Search then have the overall total. is there a way to do it? I know I can group all the products in a "Recurring" cat in the product dim table and add it to the matrix as row, but is there a workaround without touching the dim tables? thanks

1 ACCEPTED SOLUTION
danextian
Super User
Super User

Hi @Elias-AR 

 

Those extra rows must exist physically in your model as you can't assign a value to a row that doesn't exist - so you either modify your dimension table or create a new one. In the example below, Difference is the delta between the latest and the month before that and is an extra row in a custom dimension table.

danextian_1-1741185806453.png

 

danextian_0-1741185776943.png

A measure is then created that references the Period column in this dimension table returning the value for each period and whethey they should be shown and the Difference depending on the  period selected in the slicer. Please see the attached sample pbix.





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

View solution in original post

1 REPLY 1
danextian
Super User
Super User

Hi @Elias-AR 

 

Those extra rows must exist physically in your model as you can't assign a value to a row that doesn't exist - so you either modify your dimension table or create a new one. In the example below, Difference is the delta between the latest and the month before that and is an extra row in a custom dimension table.

danextian_1-1741185806453.png

 

danextian_0-1741185776943.png

A measure is then created that references the Period column in this dimension table returning the value for each period and whethey they should be shown and the Difference depending on the  period selected in the slicer. Please see the attached sample pbix.





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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