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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.