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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
DuncanP
Advocate II
Advocate II

Power BI Calculation Group subtotals

Hi

 

I'm using calculation groups in Power BI Desktop, but I've found out that subtotals are not displayed (which does make sense as you wouldn't want to add together Current and PY totals for example).

The specific issue I have is that I want a matrix that displays months on the rows, and then categories and a time intelligence calculation group on the columns. I then want to expand the columns at all levels so that you have something like this:

 

MonthCategory A Category B Total 
 CurrentPYCurrentPYCurrentPY
Jan34535685781212021169
Feb39531383774212321055
Mar46738785974913261136
Apr36434679476411581110

 

The problem is that in Power BI Desktop, I can't get the last two columns to display. Does anyone know if it's possible, or if there's a workaround somehow?

 

Duncan

6 REPLIES 6
Burtonus
Regular Visitor

I ran into this same issue today (3 years later) and managed to find a workaround, which is: more calculation groups. To solve my problem, I just added a new calculation group where each calculation item is 

Item = CALCULATE(SELECTEDMEASURE(),[Category] = "Item")

with one total category which is just

Total = SELECTEDMEASURE() --(or using a CALCULATE() to aggregate specific categories together)

I was then able to add this as well as other calculation groups as different levels of a matrix column hierarchy.


This workaround assumes two things: 1, that you have a manageable number of different categories to work with and 2, that your categories are static enough that you don't need to constantly update the calculation group. It doesn't appear that you can individually format calculation items, so this still won't look like the default Totals column, but at least the numbers are there.

T-MO-T
New Member

Hi @DuncanP,

 

Have you found a solution by any chance? I am running into the same problem. Calculation Groups work fine, but as soon as I put them in a Matrix as a second column, the totals disappear. Which as you stated makes sense for the individual measures. But for the categories (first column) it does make sense to show the grand total per calculation item.

Anonymous
Not applicable

Did you solve this?

saumitra
Helper I
Helper I

I am facing the same issue. Have you got any solution to this @DuncanP ?

v-jingzhang
Community Support
Community Support

Hi @DuncanP 

 

If you are using a Matrix visual, it is easy. In Format pane, under Subtotals, turn on Column subtotals.

21101502.jpg

 

Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.

Hi @v-jingzhang 

Thank you for replying, but unfortunately that doesn't work for calculation groups, and in fact the option is missing altogether!

In my example, Current and PY are two calculation items in a calculation group.

 

Duncan

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.