Forum Discussion
measure issue with multiplying two fields; giving me wrong total
- 2 years ago
Hi,
Does this measure work?
Measure = SUMX(VALUES(Data[Site]),[$/m * m])
bswank31 First, please vote for this idea: https://ideas.powerbi.com/ideas/idea/?ideaid=082203f1-594f-4ba7-ac87-bb91096c742e
This looks like a measure totals problem. Very common. See my post about it here: https://community.powerbi.com/t5/DAX-Commands-and-Tips/Dealing-with-Measure-Totals/td-p/63376
Also, this Quick Measure, Measure Totals, The Final Word should get you what you need:
https://community.powerbi.com/t5/Quick-Measures-Gallery/Measure-Totals-The-Final-Word/m-p/547907
Also: https://youtu.be/uXRriTN0cfY
And: https://youtu.be/n4TYhF2ARe8
- bswank312 years ago
Helper II
Thanks for getting back to me. That is frustrating that the total does not work the way it should. I understand what is happening, I just can't quite get it to work. Still newish.
I have created my measure that multiplies my total drilled meters by my average $/m to give me my cost per project. What would I need to do to get the total and subtotals to come out correctly. The total for site 1 and 2 should be 5,812,118.904 and not the 6,382,345
again, your help is much appreciated.
thanks a bunch
- Ashish_Mathur2 years ago
Super User
Hi,
Does this measure work?
Measure = SUMX(VALUES(Data[Site]),[$/m * m])
- bswank312 years ago
Helper II
Hi, I have ran into another issue. I have created a measure:
Meters w/costs program = SUMX(VALUES(Drill[Program]),Drill[>0 program cost/m])and it is giving me the correct values but how would I get the correct total for that new measure created? that total should be 7,341