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
Anonymous
Not applicable

Measure not providing expected result for summing up row values

hi

Im trying to create a measure which can aggregate sum value of "Cost" field based on field "Prog Id". I tried using the below DAX for the measure but the results are in "Received measure value". Any suggestion how i can get "Expected measure value".

Kindly note that the table visual has "Visual filters" + Page Level filters

CALCULATE(SUM(table[Cost]),ALLSELECTED(table[Prog id]))

Prog IdWBS IdCostExpected measure valueReceived measure value
xx1-1000-100
xx21000100
yy1-200100-200
yy2300100300
zz1400900400
zz2500900500
1 ACCEPTED SOLUTION
ValtteriN
Super User
Super User

Hi,

Here is one way to do this:

Measure 44 = CALCULATE(SUM('Table (28)'[Cost]),ALLEXCEPT('Table (28)','Table (28)'[rog Id]))


End result:

ValtteriN_0-1680237856215.png

 

I hope this post helps to solve your issue and if it does consider accepting it as a solution and giving the post a thumbs up!

My LinkedIn: https://www.linkedin.com/in/n%C3%A4ttiahov-00001/




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

1 REPLY 1
ValtteriN
Super User
Super User

Hi,

Here is one way to do this:

Measure 44 = CALCULATE(SUM('Table (28)'[Cost]),ALLEXCEPT('Table (28)','Table (28)'[rog Id]))


End result:

ValtteriN_0-1680237856215.png

 

I hope this post helps to solve your issue and if it does consider accepting it as a solution and giving the post a thumbs up!

My LinkedIn: https://www.linkedin.com/in/n%C3%A4ttiahov-00001/




Did I answer your question? Mark my post as a solution!

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!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.