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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Anonymous
Not applicable

Incorrect total using measure

Hi,

 

I am struggling with calculating the correct measure total, because Power BI applies the measure on the totals line instead of summarizing the result per line. I do not get any values if I use SUMX(measure1 * measure2) (maybe because SUMX does not work on measures). Does anybody please have a suggestion how I can solve the problem? Thank you!

 

 

Case

Measure 1= [Price A] = AVERAGEX(Filter('Table'; 'Table'[ID]=100); [Value])

Measure 2= [Value A ]= SUMX(Filter('Table'; 'Table'[ID]=101); [Value])

Measure 3 = [Price A] * [Value A ]

 

 

Total in Power BI: 25*442.74=11269,472

 

Total I need: Sum of all rows=11285,84

 

Dummyfile: https://www.dropbox.com/s/k5fu3amb1whff7h/PowerBI_dummyData_01082018.pbix?dl=0

PowerBI_errorTotal.png

3 ACCEPTED SOLUTIONS

Hi @Anonymous,

 

Please try this formula as a measure:

Measure = SUMX(VALUES('Table'[DateTime]),[Value A]*[Price A])

Hope it helps...

 

Ninter

View solution in original post

Hi,

 

Try this measure

 

Cost A = SUMX(SUMMARIZE(VALUES('Table'[DateTime]),[DateTime],"ABCD",[Price A]*[Value A]),[ABCD])

 

Hope this helps.

 

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

Hi,

 

If my reply helped, please mark it as Answer.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

9 REPLIES 9
Anonymous
Not applicable

Hi,

 

Thanks for input- I have tried to make the original post more precise. Please see my dummyfile (it did not work with SUMX): https://www.dropbox.com/s/k5fu3amb1whff7h/PowerBI_dummyData_01082018.pbix?dl=0

v-yuta-msft
Community Support
Community Support

Hi CR1,

 

I use sumx but it works well on my side, so could you post your measure of [Volume A [MWh] and [Price A [EUR/MWh]?

捕获.PNG 

 

Regards,

Jimmy Tao

TomMartens
Super User
Super User

Hey,

 

I'm wondering if this would solve your problem:

Tot cost A [EUR] =
SUMX(
    'name of your table'
    ,[Volume A [MWh]]*[Price A [EUR/MWh]]
)

Regards,

Tom

 

 



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany
Interkoubess
Solution Sage
Solution Sage

Hi @Anonymous,

 

Could you please share your dummy data ( because an image is not easy to manipulate) and I will give a try.

 

Ninter

Anonymous
Not applicable

Thank you, @Interkoubess. Please see the file path I added to the original post.

Hi,

 

Try this measure

 

Cost A = SUMX(SUMMARIZE(VALUES('Table'[DateTime]),[DateTime],"ABCD",[Price A]*[Value A]),[ABCD])

 

Hope this helps.

 

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Anonymous
Not applicable

Thank you!! I was not aware that I had to specify the column I wanted to summarize each row across (Table[DateTime]), it solved my problem!

Hi,

 

If my reply helped, please mark it as Answer.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Hi @Anonymous,

 

Please try this formula as a measure:

Measure = SUMX(VALUES('Table'[DateTime]),[Value A]*[Price A])

Hope it helps...

 

Ninter

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.