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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Parul_verma
Frequent Visitor

How to get the column total, instead of the row total

Hi team,I am very new to power bi,I have one question regarding the row total. Below is the image for your reference. Like its showing the row total in (Total volume in 1000 kgs) for each item, instead of that I want row total for each month under Total volume in 1000 kgs.As in 36.96 under Nov 2021,35.44 under dec 2021...

Parul_verma_0-1666249999819.png

 

6 REPLIES 6
PurpleGate
Resolver III
Resolver III

Ah then you should try change the ALL to ALLEXCEPT

 

 

Measure = 
VAR _TotalVolume = CALCULATE(SUM('Table'[Volume]),ALLEXCEPT('Table','Table'[Item]))
VAR _TotalQuantity = CALCULATE(COUNT('Table'[Item]),ALLEXCEPT('Table'[Month]))

Return
DIVIDE(_TotalVolume,_TotalQuantity)

 

 

Parul_verma_0-1666262743747.png

Same value for all

 

PurpleGate
Resolver III
Resolver III

Measure = 
VAR _TotalVolume = CALCULATE(SUM('Table'[Volume]),ALLEXCEPT('Table','Table'[Item]))
VAR _TotalQuantity = CALCULATE(COUNT('Table'[Item]),ALL('Table'[Year]))

Return
DIVIDE(_TotalVolume,_TotalQuantity)
 

It is showing same values for all the months 

Parul_verma_0-1666255991055.png

 

Parul_verma
Frequent Visitor

I dont want to show it in the visual, I want the measure as value of 1 sku/total of all sku's for each year

PurpleGate
Resolver III
Resolver III

Have you tried playing around with the row subtotal filter in the side panel? Maybe that could help solve your problem?

 

PurpleGate_3-1666251684370.png

 

PurpleGate_1-1666251629224.png

 

Or if you meant you wanted the full month total in each category like the image below, you could try using a different visual?

I used Profitbase in this, the free version.

PurpleGate_4-1666252091801.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!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

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