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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
lesg
Frequent Visitor

Measure Total Incorrect

Hi Guys, 

 

I have created a measure to calculate the value of items based on quantity * cost

Cover Value = 
SUM('View_Inventory_with_Locations'[cost]) * [Cover]

The vaules of the items are correct, yet the 'Total' is bizare and way off 

lesg_0-1673444108046.png

As its a measure there seem no way of changing how the total is caluclated, i.e. sum, count etc?

Can anyone advise please?

1 ACCEPTED SOLUTION
tex628
Community Champion
Community Champion

Try this but replace "Item" and "Item[Number]" with whatever dimension you're using in the matrix. 

Measure = 
SUMX(
SUMMARIZE( Item , 
Item[Number], 
"Value" , SUM(View_Inventory_with_locations[cost]) + [Cover]
), [Value]
)

 
Br, 
J


Connect on LinkedIn

View solution in original post

5 REPLIES 5
Brer_J_Cooper
Regular Visitor

This all seems ridiculous to me. You should be able to choose how you want your final total row calculated. Most of us just want the total at the bottom of the table to be the total of all the values displaying in the column, not some bizarre alternative calculation. 

lesg
Frequent Visitor

Many thanks for that suggestion, not exactly sure I understand this, as it seems very complex, but will go through the other links and try to understand this issue and the cause.

tex628
Community Champion
Community Champion

Try this but replace "Item" and "Item[Number]" with whatever dimension you're using in the matrix. 

Measure = 
SUMX(
SUMMARIZE( Item , 
Item[Number], 
"Value" , SUM(View_Inventory_with_locations[cost]) + [Cover]
), [Value]
)

 
Br, 
J


Connect on LinkedIn
RemyO
Resolver I
Resolver I

What power bi does is:

Sum('View_Inventory_with_Locations'[cost]) * SUM([Cover])

Meaning the total of a measure is a measure in itself. 

Not what you want and what you expect but if you dive deeper in Power BI it makes sense

 

Maybe this thread can point you in the right direction

https://community.powerbi.com/t5/DAX-Commands-and-Tips/Dealing-with-Measure-Totals/m-p/63376#U63376

 

I got it from

 

https://community.powerbi.com/t5/Desktop/Total-Sum-of-a-measure/td-p/110702 This thread shows a simular issue

Idrissshatila
Super User
Super User

Hello @lesg,

 

Check if this article helps in your case https://www.sqlbi.com/articles/why-power-bi-totals-might-seem-inaccurate/

 

If I answered your question, please mark my post as solution, Appreciate your Kudos 👍

 

Follow me on Linkedin



Did I answer your question? Mark my post as a solution! Appreciate your Kudos
Follow me on LinkedIn linkedIn
Vote for my Community Mobile App Idea

Proud to be a Super User!




Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 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.