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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
Anonymous
Not applicable

Table Subtotal

[Edited]

Hi All, sorry for the confusion.

 

Currently I have this Measure 3 which is able to return the correct value for each country (SG is the sum of Local). However, the grand total is incorrect. It should be 301 + 688 = 989. 

 

Does anyone know how I can fix the grand total to make it display the correct sum value?

 

Measure 3 = IF(SELECTEDVALUE(Dim_Country[Country])="Singapore",CALCULATE([Local], ALL(Dim_Country[Country])), [International])

 

beekee_0-1620117102137.png

 

 

Regards,

BK

 

1 ACCEPTED SOLUTION
v-henryk-mstf
Community Support
Community Support

Hi @Anonymous ,

 

Try the following formula: 

Measure = SUM('Table'[International]) + SUM('Table'[Local])

v-henryk-mstf_0-1620292167145.png

 


If the problem is still not resolved, please provide detailed error information and let me know immediately. Looking forward to your reply.

Best Regards,
Henry

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

View solution in original post

4 REPLIES 4
v-henryk-mstf
Community Support
Community Support

Hi @Anonymous ,

 

Try the following formula: 

Measure = SUM('Table'[International]) + SUM('Table'[Local])

v-henryk-mstf_0-1620292167145.png

 


If the problem is still not resolved, please provide detailed error information and let me know immediately. Looking forward to your reply.

Best Regards,
Henry

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

@Anonymous , I doubt the first total 989 is wrong.

 

Try like

International + Local = Sumx(values(Dim_Country[Country]) , IF(Max(Dim_Country[Country])="Singapore", [Local (SG)], [Local + International]))

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
Anonymous
Not applicable

Hi @amitchandak , I have tested out the dax you have provided. It returns the same output as the Measure 3, the grandtotal is showing 301 also. Do you know how I can show the correct grand total instead?

 

Regards,

BK

Anonymous
Not applicable

Hi @amitchandak , you're right that the measure was wrong. I have edited my post and shared the Measure 3 that I'm using. I should be seeing 989 instead of 301 only as all countries have been selected. 

 

beekee_0-1620117398314.png

 

Regards,

BK

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 Power BI update to learn about new features.