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
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
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.