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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
Anonymous
Not applicable

Power BI Summation Error

Hi,

 

I have a dataset that shows the sum of amount invoiced per month in 2019.  I have filtered out all negative amounts.

 

There is no data for Jan 2019 and I assumed that this was because Jan 2019 had no invoices with positive amounts issues. However, when I click on the don't summarize option for amount, the individuals amounts (all positive) appear. There is positive amount data for Jan 2019 in the backend as well.

 

Why is this happening?

 

Error.PNG

 

 

 

1 ACCEPTED SOLUTION
v-jingzhang
Community Support
Community Support

Hi @Anonymous 

 

How did you filter out all negative amounts? Using the filter pane? If so, filtering may happen after the aggregation sum. 

 

In your scenario, I think it would be better to use a measure to calculate the sum of positive amounts per month. E.g.

total = CALCULATE ( SUM ( 'Table'[amount] ), 'Table'[amount] >= 0 )

or

total = SUMX ( FILTER ( 'Table', 'Table'[amount] >= 0 ), 'Table'[amount] )

 

You can put above measure into the table visual to replace Amount(USD) column. In the measure, filtering happens earlier than aggregation sum.

 

Regards,
Community Support Team _ Jing
If this post helps, please Accept it as the solution to help other members find it.

View solution in original post

2 REPLIES 2
v-jingzhang
Community Support
Community Support

Hi @Anonymous 

 

How did you filter out all negative amounts? Using the filter pane? If so, filtering may happen after the aggregation sum. 

 

In your scenario, I think it would be better to use a measure to calculate the sum of positive amounts per month. E.g.

total = CALCULATE ( SUM ( 'Table'[amount] ), 'Table'[amount] >= 0 )

or

total = SUMX ( FILTER ( 'Table', 'Table'[amount] >= 0 ), 'Table'[amount] )

 

You can put above measure into the table visual to replace Amount(USD) column. In the measure, filtering happens earlier than aggregation sum.

 

Regards,
Community Support Team _ Jing
If this post helps, please Accept it as the solution to help other members find it.

nvprasad
Solution Sage
Solution Sage

Hi atinakarim,

 

Probably the sum of negative values is higher than positive values. Hence. when you select don't summarize no aggregation is happening and you are able to see all positive numbers.

Appreciate the Kudos! 🙂
If this helps and resolves the issue, please mark it as a Solution! 🙂

Regards,
N V Durga Prasad

 

Did I answer your question? Mark my post as a solution! Appreciate your Kudos.
Follow me on LinkedIn.

Helpful resources

Announcements
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.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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