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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Inconsistency in data type in Totals row

Looking for a way to solve this problem I'm facing here, I have this table to compare between two measures, OEE and Declared. However, the totals row are inconsistent in the way that, the OEE totals column shows up as the average of the values shown, while Declared and Difference columns show up as the sum of the values shown. Looking for an explanation for this phenomenon, and hopefully a way to resolve this. I would want all of them to show up as sums. Please check the attached image for the table I have at the moment. Please do ask if you need more information from me.

 

Thanks in advance.

 

__jz___0-1601425901612.png

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@__jz__ , this happens because of the row context. if you create a formula that uses the row context

Try it as

OEE M hours at sumx(Values(Table[Line]),[OEE Hours])
Declared M hours asmx(Values(Table[Line]),[Declared hours])

diff [OEE M Hours] -[Declared Hours M]

Total reference problem :https://www.youtube.com/watch?v=Ka7Ds4EAjNQ

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

3 REPLIES 3
v-kelly-msft
Community Support
Community Support

Hi  @Anonymous ,

 

Have you checked the suggestion by @amitchandak ?Is your issue solved now?

 

Best Regards,
Kelly

Did I answer your question? Mark my post as a solution!

amitchandak
Super User
Super User

@__jz__ , this happens because of the row context. if you create a formula that uses the row context

Try it as

OEE M hours at sumx(Values(Table[Line]),[OEE Hours])
Declared M hours asmx(Values(Table[Line]),[Declared hours])

diff [OEE M Hours] -[Declared Hours M]

Total reference problem :https://www.youtube.com/watch?v=Ka7Ds4EAjNQ

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

It works, thanks a bunch. Marked as solution.

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors