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

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

Reply
Anonymous
Not applicable

Column total not adding to the total sum

Hi,

I'm aware this has been asked before, but I was not able to find a solution with the previous quesitons. 
Measure that I'm creating is not adding up to the correct total. 
My measure looks like this: 

Usage Cost = CALCULATE(SUM('Table1'[Total Cost (LCY)]), 'Table1' [Source] <> 1, 'Table2' [Project Type] = 0)

 

When selecting three ID's I'm getting this output.

 

IDUSAGE COST
1512 114
2220 779
3235 045
Total967 938

 

This should add up to 1,024,285.9 

 

 

I have no changed it to an if statement that looks like this, but not working:


Usage Cost = IF(HASONEFILTER('Table'[Job No_]),

CALCULATE(SUM('Table1'[Total Cost (LCY)]),

    'Table'[Source Type] <> 1, Table2[Project Type] = 0),

    CALCULATE(SUM('Table'[Total Price (LCY)]),

    ALLEXCEPT('Table', 'Table'[Source Type])) <> 1)
 
This is giving me "True" for total, which means my result if false statement needs fixing, but not sure what

How can I fix this? Thanks

 

THanks

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi, sorry for late response. Yes, I solved the problem by using the sumarize function I found on this link:
https://community.powerbi.com/t5/Quick-Measures-Gallery/Measure-Totals-The-Final-Word/m-p/547907

 

View solution in original post

6 REPLIES 6
Icey
Community Support
Community Support

Hi @Anonymous ,

 

Is this problem solved now?

 

 

Best Regards,

Icey

Anonymous
Not applicable

Hi, sorry for late response. Yes, I solved the problem by using the sumarize function I found on this link:
https://community.powerbi.com/t5/Quick-Measures-Gallery/Measure-Totals-The-Final-Word/m-p/547907

 

Icey
Community Support
Community Support

Hi @Anonymous ,

 

Glad to hear that. Please accept your reply as a solution so that people who may have the same question can get the solution directly.

 

 

Best Regards,

Icey

Icey
Community Support
Community Support

Hi @Anonymous ,

 

If you don't mind, please share me some sample data, not real data.

 

 

Best Regards,

Icey

amitchandak
Super User
Super User

Try like

Usage Cost = CALCULATE(SUM('Table1'[Total Cost (LCY)]),values(Table1[ID]), 'Table2' [Project Type] <> 0)
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

Still getting the same total..

Helpful resources

Announcements
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