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
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
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.

Top Solution Authors