cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

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
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

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

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors