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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
AnilKumar
Helper II
Helper II

Subtotals in power bi wrong

Hi all,

 

I have created a dax which takes parameter from another table and calculates the results(attachment). Where the sub totals are showing wrong results. 

Please share your ideas to resolve it.

Subtptals.png

 

Thanks in Advance,

Vishnu Priya

 

1 ACCEPTED SOLUTION
v-qiuyu-msft
Community Support
Community Support

Hi @AnilKumar

 

It looks like you want to get sum total of measure values, right? 

 

You can modify your measure based on this article: https://community.powerbi.com/t5/Quick-Measures-Gallery/Measure-Totals-The-Final-Word/m-p/547907

 

Best Regards,
Qiuyun Yu 

Community Support Team _ Qiuyun Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

This multiplication

Sum(A) * Avg(B), is the one that will cause this. this need a row context. Means a level where it can do and later Aggerated to Sum or Average

Something like this. This averageX can me sumx. Key the group where this will happen correctly. These can be more than one column

 

averagex(summarize(Table,Table[Key],"_1",[Sum Measure],"_2", [Avg Measure],"_3",[third meausre]),
([_1]* [_2])-[_3])

 

Does the above reply helps. if you need more help make me @

Appreciate your Kudos.

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
v-qiuyu-msft
Community Support
Community Support

Hi @AnilKumar

 

It looks like you want to get sum total of measure values, right? 

 

You can modify your measure based on this article: https://community.powerbi.com/t5/Quick-Measures-Gallery/Measure-Totals-The-Final-Word/m-p/547907

 

Best Regards,
Qiuyun Yu 

Community Support Team _ Qiuyun Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors
Top Kudoed Authors