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

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

Reply
Vamshi2020
Helper II
Helper II

limit column totals in matrix

Hi All, I have fields like category and country and four measures Discount, Profit, Quantity, Row id. Iam using matrix visual to show this data

Vamshi2020_0-1605092863373.png

Now in column totals i dont want to show all totals and i just want to show Total for Discount and profit and disable quantity and Row id totals. 

 

Please help me to achieve this.

TIA

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

Hi, @Vamshi2020 

 

Based on your description, I created data to reproduce your scenario. The pbix file is attached in the end.
Table:

f1.png

 

You may create measures as below.

Discount measure = SUM('Table'[Discount])
Profit measure = SUM('Table'[Profit])
Quantity measure = 
IF(
    ISINSCOPE('Table'[Category]),
    SUM('Table'[Quantity])
)
Row ID measure = 
IF(
    ISINSCOPE('Table'[Category]),
    SUM('Table'[Row ID])
)

 

Result:

f2.png

 

Best Regards

Allan

 

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

3 REPLIES 3
v-alq-msft
Community Support
Community Support

Hi, @Vamshi2020 

 

Based on your description, I created data to reproduce your scenario. The pbix file is attached in the end.
Table:

f1.png

 

You may create measures as below.

Discount measure = SUM('Table'[Discount])
Profit measure = SUM('Table'[Profit])
Quantity measure = 
IF(
    ISINSCOPE('Table'[Category]),
    SUM('Table'[Quantity])
)
Row ID measure = 
IF(
    ISINSCOPE('Table'[Category]),
    SUM('Table'[Row ID])
)

 

Result:

f2.png

 

Best Regards

Allan

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anand24
Super User
Super User

Hi @Vamshi2020 ,

There is currently no direct way to achieve your requirement of showing some value totals while hiding some.

You can use the below work-around though:
1. Disable column subtotals in your matrix visualization

2. Create a copy of this matrix visualization, remove column fields(country in your case) and the values(quantity and row ID in your case) you don't want totals of and enable column subtotal in this visualization

3. Send this 2nd visualization to Back of actual matrix visualization and format such that these 2 matrix visualizations appear as one

4. Group both matrix visualizations is required

 

Reference Image(I have shown only runs total):

workaround2.PNG

Give a thumbs up if this post helped you in any way and mark this post as solution if it solved your query !!!

amitchandak
Super User
Super User

@Vamshi2020 , You have a choice for row and columns not for the measures. For measure/values you do not have that option that

 

there are few workaround if you are looking for a Hybrid display with Matrix Column and measure
https://community.powerbi.com/t5/Community-Blog/Creating-a-custom-or-hybrid-matrix-in-PowerBI/ba-p/1...
https://community.powerbi.com/t5/Quick-Measures-Gallery/The-New-Hotness-Custom-Matrix-Hierarchy/m-p/...

vote for Hybrid Table
https://ideas.powerbi.com/ideas/idea/?ideaid=9bc32b23-1eb1-4e74-8b34-349887b37ebc

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

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 FABINSIDER for a $400 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

March2025 Carousel

Fabric Community Update - March 2025

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

Top Kudoed Authors