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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

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] )

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

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] )

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here
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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.