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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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