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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
aishak12
Helper IV
Helper IV

Change the Subtotal calculation

Hi All,

 

This is a table matrix and the grey column is the subtotal field. In Line 3 it is currently adding all three values. In line 7 it is adding them and dividing by 3. 

Is there a way to change the calculation of subtotal. I would like to have the subtotal as the last value in the 3rd field. For Example 
Line 7 Revenue Factors having a subtotal value of 2.14

 

aishak12_1-1616784165262.png

 

3 REPLIES 3
v-xulin-mstf
Community Support
Community Support

Hi @aishak12

 

Is you issue solved?

If the issue is solved, could you share the final solution and make it answered?

So that it can help others.

 

Best Regards,

Link

v-xulin-mstf
Community Support
Community Support

Hi @aishak12,

 

I'm not sure about the data structure.

Maybe you can use HASONEVALUE to  custom the calculation of subtotal.

If you need a specific dax, please provide pbix file after removing sensitive information.

You can also refer the related post:

https://community.powerbi.com/t5/Desktop/Measure-to-group-by-Month/m-p/1713961

https://community.powerbi.com/t5/Desktop/Divide-the-sum-of-a-column-member-by-the-total-of-all-colum...

Hope it helps.

 

Best Regards,

Link

 

If this post helps then please consider Accept it as the solution to help the other members find it more quickly.

amitchandak
Super User
Super User

@aishak12 , Isincope can help you change the calculation

refer to this blog

 

https://www.kasperonbi.com/use-isinscope-to-get-the-right-hierarchy-level-in-dax/

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.