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
deepak_dc
Regular Visitor

Sum a measure

Hi,

 

I'm facing this problem in one measure. Where I applied below DAX query:

 

Target = VALUE(60) 

 

Capture.PNG

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

When I put total, suppose to get sum of 'Target' values but also getting total = 60  

 

Please suggest me required changes or alternative

 

Thanks!

1 REPLY 1
ccakjcrx
Resolver I
Resolver I

Hey @deepak_dc!

 

I have to make some assumptions about your model. Some people refer to a calculation as a measure, even though they created a calculated column. 

 

In your situation, it looks like the Target column is returning the same value for each row. You may have created that column using the SUM function. If you did that, you will get the total for the entire column for each row, rather than the actual Target value for each row.

 

If that is true, you can simply change the expression for that column from SUM(Table[Target]) to CALCULATE(SUM(Table[Target]); doing so will return the actual Target value for each row, rather than the Target column total for each row. 

 

I've created columns with SUM and CALCULATE in my test model to try to illustrate my point:

 

Screenshot.jpg

 

 

 

 

 

 

 

 

 

You can see that the ClmSUMTarget column returns the total for the entire Target column for each row. You can also see that the ClmCALTarget column returns the actual values for each row. 

 

If I've made incorrect presumptions about the problem you are facing, please make your .pbix file available in this post so I can further troubleshoot.

 

Hope this helps!

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.