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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

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.

Top Solution Authors
Top Kudoed Authors