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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
mussaenda
Super User
Super User

Matrix Subtotal Highlight

I have the matrix table like below photo

2020_06_21_12_01_27_Raw_Purchasing_1_Power_BI_Desktop.png

Those highlighted in yellow are my row subtotals.

Those in Blue font are my column subtotals.

 

Is possible to extend my highlight up to the column subtotal that I have encircled?

 

I tried putting background color to the column subtotal but it highlights the whole column.

 

Thank you in advance

1 ACCEPTED SOLUTION

Hi @mussaenda,

 

Please try like this:

Measure = 
var a = CALCULATE(SUM('Table'[Sales]),ALLSELECTED('Table'[Segment]))
return
IF([Total Sales] = a,"RED",BLANK())

 6.PNG5.PNG

 

Best Regards,
Xue Ding
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

6 REPLIES 6
santh00
Frequent Visitor

Hi @mussaenda  did you find the answer for this question

amitchandak
Super User
Super User

@mussaenda , Not sure I got.

But you use conditional formatting on sub total.

https://docs.microsoft.com/en-us/power-platform-release-plan/2020wave1/business-intelligence/conditi...

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

Thank you  for this suggestion,

 

May I know where I can find this feature? On my latest version of Power BI desktop, I cannot find it. Or maybe I don't know where to find.

Hi @mussaenda ,

 

We need to use at least April 2020 version of Power BI Desktop to use it. You could download a latest one from: https://www.microsoft.com/en-us/download/details.aspx?id=58494.

 

1.gif

Reference:

https://docs.microsoft.com/en-us/power-bi/create-reports/desktop-conditional-table-formatting#totals...

 

 

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

Finally, I found it.

Thank you @v-xuding-msft !

 

But what I wanted to do is only highlight the column total where there is row subtotal.

On the photo I attached before. I have highlighted the whole row subtotal. But the total of the row  subtotal is what I want to highlight only.

 

Would that be possible?

Hi @mussaenda,

 

Please try like this:

Measure = 
var a = CALCULATE(SUM('Table'[Sales]),ALLSELECTED('Table'[Segment]))
return
IF([Total Sales] = a,"RED",BLANK())

 6.PNG5.PNG

 

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

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.