Showing results for 
Search instead for 
Did you mean: 
Frequent Visitor

Sum Totals for a Measure



I need help solving this issue


I have the following measure 

VAR Delivered_Cost = [Item_Cost]*[Qty_Rec]

I need that for totals instead of using the measure, only sums the results of the individual lines.

I've been trying to use HASONEVALUE, but no luck


Open to suggestions,


Omar Octaivano


Super User II
Super User II

Hi @ooctaviano -


Try using HASONEVALUE (or HASONEFILTER) and for the "False" expression try SUMX(Table, ItemCost*Qty_Rec).  SUMX will calculate the values for each line, then add them up at the end.


If this doesn't work, please provide more information like a data model, sample data, etc. Do not do a screenshot of sample data - put it inline to the post so it is easier to copy and paste.


Hope this helps


Proud to be a Super User!

Helpful resources

MBAS on Demand

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

July 2021 Update 768x460.png

Check it out!

Click here to read more about the July 2021 Updates

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Urdu Hindi D365 Bootcamp 768x460.png

Urdu Hindi D365 Bootcamp

Dont miss our very own April Dunnam’s The Developer Guide to the Galaxy! Find out what the Power Platform has to offer for the traditional developer.

Top Solution Authors