Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!View all the Fabric Data Days sessions on demand. View schedule
Hi all,
I am having issues with a measure that is taking a column value and multiplying by a measure. The individual rows have come out correctly, but due to the way I have written the meausre, it isn't totaling correctly. In the below, the total value is taking the std. cost (a column) and multiplying against the total units (a measure). Issue is, the grand total. This version is using firstnonblank for std cost. If I use sum for std cost, the total comes out in the billions. it should be around 31 million. Any help?
Solved! Go to Solution.
Hi, @mdhenzel
You can try the following methods. IF(HASONEVALUE()) can control the output of Total value.
Measure
Total Value =
IF (
HASONEVALUE ( 'Table'[ID] ),
SUM ( 'Table'[Std. Cost] ) * [Total Units],
SUMX (
SUMMARIZE (
'Table',
'Table'[ID],
"Sum", SUM ( 'Table'[Std. Cost] ) * [Total Units]
),
[Sum]
)
)
Is this the result you expect?
For reference: Solved: How to find the sum of multiple averages - Microsoft Power BI Community
Best Regards,
Community Support Team _Charlotte
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, @mdhenzel
You can try the following methods. IF(HASONEVALUE()) can control the output of Total value.
Measure
Total Value =
IF (
HASONEVALUE ( 'Table'[ID] ),
SUM ( 'Table'[Std. Cost] ) * [Total Units],
SUMX (
SUMMARIZE (
'Table',
'Table'[ID],
"Sum", SUM ( 'Table'[Std. Cost] ) * [Total Units]
),
[Sum]
)
)
Is this the result you expect?
For reference: Solved: How to find the sum of multiple averages - Microsoft Power BI Community
Best Regards,
Community Support Team _Charlotte
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!