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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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

4 REPLIES 4
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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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