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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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