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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
Anonymous
Not applicable

Sum computed incorrectly

Hi PBI users,

 

I am adding a column name and cost to a table. As usual, cost is aggregated to sum which is displayed as 6000. But the actual sum is 1000. The table is not joined to any other table. I tried this again in a new report, same issue exists.

 

Could anybody please help?

10 REPLIES 10
ricardocamargos
Continued Contributor
Continued Contributor

Hi @Anonymous,

 

Can you provide some data as sample, also show us your table structure ?

 

Ricardo

 

 

Anonymous
Not applicable

Hi @Anonymous, @ricardocamargos,

 

Thank you for your responses.

 

I am simply adding a column to the table, no measures involved.

 

Please refer to the attachment. Observe that when I click on "SUM" instead of "Don't Summarize", the values change too.PBI Issue_Sum Computed Incorrectly.png

 

@Anonymous,

 

Can you provide you table structure ?

 

Also, are you creating a calculated column ? If yes, show us the code.

 

Ricardo

Anonymous
Not applicable

@ricardocamargos,

 

This is not a calculated column. 

 

Could this be due to the size of the table? When I reduced the size of the table to a couple of rows, instead of 1M rows, it calculates the Sum correctly.

Hi,

 

This has nothing to do with size.  Just create a meaure as follows:

 

=SUM(Data[Cost])

 

Hope this helps.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Anonymous
Not applicable

Hi @Ashish_Mathur,

 

I tried that as well, doesn't work.

Hi,

 

Share the link from where i can download your file (please ensure that the file siz is only a few KB's) and show the expected result there.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Anonymous
Not applicable

@Ashish_Mathur

 

As soon as I reduce the size of the file and recreate the table, it works fine.

 

But that is not a solution to the problem. I need to have those 1M rows in my table.

Hi,

 

I cannot help unless i have that file.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Anonymous
Not applicable

When you say you have added "Cost to the table". Do you mean you created a calculated column to store the cost inside the table? 

 

A cost measure should be able to achieve the values you need and not have the aggregation issue.  Can you post some data examples and what you are trying to achieve?  Its really hard to guess what you are stuck with.

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

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.

March Power BI Update Carousel

Power BI Community Update - March 2026

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