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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
AaronToth
Helper II
Helper II

Is there a way to subtotal/total column values using alternating columns

We have a matrix that has 2 columns (Amount and Quanity) and the matrix is broken up by Year.  So the matrix would look like this

 

Amount/Quantity - Amount/Quantity - Amount/Quantity (with headers above 2005, 2006 and 2007)

Question:  Is it possible to subtotal/total to the right for just one column (i.e. Amount).  Right now if you turn the sub-total/total on, it will add all values across the grid.  Can we separate these?

 

This is what we would like to have

AaronToth_0-1662740052653.png

 

 

Thanks,
Aaron

2 ACCEPTED SOLUTIONS
Greg_Deckler
Super User
Super User

@AaronToth There is a way but it is not exactly pretty. You can shrink the unwanted columns or you can do this:

https://community.powerbi.com/t5/Quick-Measures-Gallery/The-New-Hotness-Custom-Matrix-Hierarchy/m-p/...


@ 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!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

2 REPLIES 2
Greg_Deckler
Super User
Super User

@AaronToth There is a way but it is not exactly pretty. You can shrink the unwanted columns or you can do this:

https://community.powerbi.com/t5/Quick-Measures-Gallery/The-New-Hotness-Custom-Matrix-Hierarchy/m-p/...


@ 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!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Thanks @Greg_Deckler 

Aaron Toth

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors