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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
ooctaviano
Frequent Visitor

Sum Totals for a Measure

Hello

 

I need help solving this issue

 

I have the following measure 

VAR Delivered_Cost = [Item_Cost]*[Qty_Rec]
ooctaviano_2-1624470479393.png

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

 

1 REPLY 1
dedelman_clng
Community Champion
Community Champion

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

David

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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