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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
ajohn1
Advocate I
Advocate I

Table Sum is incorrect.

if I were to take out my first 'if' statement "(if(value1-value2 <= 0, 0,)" the value comes out to be -92. But I'm replacing its value with 0. So why is calculating with the -92.

 

Capture.PNG

5 REPLIES 5
v-piga-msft
Resident Rockstar
Resident Rockstar

Hi @ajohn1,

 

If it is conveninent, could you share a dummy pbix file which can reproduce the scenario, so that we can help further investigate on it? You can upload it to OneDrive or Dropbox and post the link here. Do mask sensitive data before uploading.)

 

Best  Regards,
Cherry

Community Support Team _ Cherry Gao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

We found a work around, by appending a duplicate of our time and some other magic. To much to explain at the moment.

Hi @ajohn1,

 

If you solved your problem, please accept the replies making sense as solution to your question so that people who may have the same question can get the solution directly.

 

If you still need help, please feel free to ask.

 

Best  Regards,

Cherry

Community Support Team _ Cherry Gao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

I really appreciate replys from the community but neither of them worked for me. I would hate for somone to think the solution is in this thread. To make myself clear, we didnt get the table to add up the right way, but we formatted it to where it would be easy for our customers to understand.

 

Please close this thread if you can.

dedelman_clng
Community Champion
Community Champion

PowerBI tables/matrixes don't sum up the same way that Excel does.  Instead it recalculates the measure in the current context, which is ignoring the DLIN, DSUB, etc context.  It is calculating in the "Louisiana-Customer View" context.

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.