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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

Total calculation

Hi Experts

 

i have one question as below table data. the total calcuation is not expected result. 

i want to calculate impact field which unit price variance multiply the actual volume, and the expected total calculation is sum all the category's impact field. however, the power bi is applied the total unit price variance multiply total actual volume. is there any way to approach the expected total result? Thanks.

Gg2023_0-1696344911027.png

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Anonymous , You need to force row context to get the correct total, Assuming both [Unit Price Variance], and [Volume] are measures. or clear those

 

Sumx(Values(Table[Category]), [Unit Price Variance] *[Volume] )

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

2 REPLIES 2
amitchandak
Super User
Super User

@Anonymous , You need to force row context to get the correct total, Assuming both [Unit Price Variance], and [Volume] are measures. or clear those

 

Sumx(Values(Table[Category]), [Unit Price Variance] *[Volume] )

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

Thanks 

but i have one issue here, actually there are 2 dimensions  channel and category. 

for the channel sub total it is working, but the grand total is not working.

Gg2023_0-1696437623577.png

 

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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