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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Anonymous
Not applicable

Matrix columns subtotal in Matrix

Hi,

 

I'm struggling now for a long time to add subtotals tot my matrix based on different columns.

 

I have three columns:
FTE :  Average personnel per month
Cost: Amount of Personnel costs per month

Recovery: Amount of Recovery of Personnel

 

 All these numbers are coming from one value, made a new calculatedtable.

 

Cost CFTECostRecoveryTotal is nowTotal should be
Management0.90           70,500-       50,500           20,001                  20,000
General0.80           32,900-         1,750           31,151                  31,150
Development1.00         124,600-         2,500         122,101                122,100
Total2.70         228,000-       54,750         173,253                173,250

 

My dax formula of my measure is : Measure =
SUMX(SUMMARIZE(FTE,FTE[Cost_Centre],"Average",AVERAGE(FTE[FTE])),[Average]) + SUM('General Ledger Entries'[Amount])

 

 

Hope someone can help me with excluding the column "FTE" from subtotals!

 

 

Thanks in advance

1 ACCEPTED SOLUTION
Anonymous
Not applicable

guys for trying to help.

But luckily I were managed to do it by myself.

 

I used the DAX formula =HASONEFILTER

 

Formula: Measure =
[FTE SumX] + SUM('Appendtable CTC'[Amount]) -
IF(HASONEFILTER('GL Account Group'[Actual]),SUMX(SUMMARIZE(FTE,FTE[Employee],"Average1",FTE[FTE total]),[Average1]),[FTE SumX])

 

 

With this HASONEFILTER in the matrix under FTE shows the right FTE hours and under total i don't sum up the FTE but only the Cost Recovery.

 

 

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

guys for trying to help.

But luckily I were managed to do it by myself.

 

I used the DAX formula =HASONEFILTER

 

Formula: Measure =
[FTE SumX] + SUM('Appendtable CTC'[Amount]) -
IF(HASONEFILTER('GL Account Group'[Actual]),SUMX(SUMMARIZE(FTE,FTE[Employee],"Average1",FTE[FTE total]),[Average1]),[FTE SumX])

 

 

With this HASONEFILTER in the matrix under FTE shows the right FTE hours and under total i don't sum up the FTE but only the Cost Recovery.

 

 

Hi @Anonymous,

 

It's glad that you have found the solution.

 

Please always accept the replies making sense as solution to your question so that people who may have the same question can get the solution directly.

 

Best  Regards,

Cherry

Community Support Team _ Cherry Gao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
v-piga-msft
Resident Rockstar
Resident Rockstar

Hi @Anonymous,

 

Firstly, as I know, there is subtotal value for matrix in Power BI.

 

Based on your formula, it seems that you have two tables at least. 

 

I'm a little confused about your scenario. If it is convenient, please share your data sample and your desired output so that we could help further on it.

 

Best Regards,

Cherry

Community Support Team _ Cherry Gao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
LivioLanzo
Solution Sage
Solution Sage

@Anonymous

 

I am not following. Could you show us what does your matrix look like along with the xpected results?

 

thannks

 


 


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


Proud to be a Datanaut!  

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!

November Carousel

Fabric Community Update - November 2024

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

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.