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
kleith
Frequent Visitor

Incorrect Sum in POWER BI DAX

Good morning, I have a problem when performing the sum() function in power bi. It makes me feel bad. What's happening? I have the following values ​​in the square_meters column:

-8832​
-7452​
-4726​
-4715​
-2975​
-2951​
-2181​
-2157​
-2002​
-631​
0​
0​
431​
677​
993​
1294​
1355​
1525​
1525​
1760​
1760​
2002​
032​
2157​
2157​
2181​
2181​
2481​
2481​
2758​
2836​
2951​
2951​
2975​
2975​
2975​
3565​
3565​
4715​
4726​
5375​
7452​
7452​
8130​
8832​
8832​
8832​

The sum of all this is: 82,267 (including the negative values ​​that are credit notes) which is correct.

But, when using the addition function it brings me the following result: 92,612, and the values ​​that are being added are the following:

-8832​
-7452​
-4726​
-4715​
-2975​
-2951​
-2181​
-2157​
-2002​
-631​
0​
431​
677​
993​
1294​
1525​
1760​
4004​
2032​
6471​
6543​
2481​
2758​
2836​
8853​
11900​
3565​
9430​
9452​
5375​
22356​
26496​

 

As you can see, in the incorrect sum it adds values ​​that are not in my table and the values ​​that are in my table are the numbers that I placed at the beginning. I attach an excel with the correct meters and the incorrect meters. I would appreciate it if you could help me understand what is happening. I already checked other fields and filters but the result is still the same. Thank you so much.

1 REPLY 1
Sahir_Maharaj
Super User
Super User

Hello @kleith,

 

Here are some steps you can take to try troubleshooting:

 

  • If there's a relationship with another table, ensure that it's correctly set up, and there aren't any unexpected filters propagating from other tables.
  • In the visual level, page level, or report level filters, ensure that there aren't any filters applied that might be altering the total.
  • Ensure that there aren't any duplicated rows in your table. You can check this by creating a table visual and sorting by the square_meters column.
  • While using SUM() should work for simple column addition, you can also try SUMX(), which sums up after evaluating each row
  • If there are decimals involved, consider the effect of rounding. It might not be noticeable on individual rows, but it can affect the total.

Should you require any further assistance, please do not hesitate to reach out to me.


Did I answer your question? Mark my post as a solution, this will help others!

If my response(s) assisted you in any way, don't forget to drop me a "Kudos" 🙂

Kind Regards,
Sahir Maharaj
Data Scientist | Data Engineer | Data Analyst | AI Engineer
P.S. Want me to build your Power BI solution? (Yes, its FREE!)
➤ Lets connect on LinkedIn: Join my network of 15K+ professionals
➤ Join my free newsletter: Data Driven: From 0 to 100
➤ Website: https://sahirmaharaj.com
➤ About: https://sahirmaharaj.com/about.html
➤ Email: sahir@sahirmaharaj.com
➤ Want me to build your Power BI solution? Lets chat about how I can assist!
➤ Join my Medium community of 30K readers! Sharing my knowledge about data science and artificial intelligence
➤ Explore my latest project (350K+ views): Wordlit.net
➤ 100+ FREE Power BI Themes: Download Now
LinkedIn Top Voice in Artificial Intelligence, Data Science and Machine Learning

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.