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
Anonymous
Not applicable

Conditional formatting in a matrix with (+/-) button on

Hello everyone,

 

I am facing a hard problem trying to apply conditional formatting in a matrix that have the '+/-' button active.
As you can see in the image, when I am not drilling throught the conditional formatting works, althought when I click in '+' it don't.

 

Does anyone know how to fix this?

 

Drilling throughtDrilling throughtNot drillingNot drillingThank you a lot.

1 ACCEPTED SOLUTION
MFelix
Super User
Super User

Hi @Anonymous ,

 

The condittional formatting on the table visual does not work on the total line, meaning that since DAX is based in context when you have the line values closed and all of your data is only the subtotals the context is the value in each row, since the row context enter in place.

 

When you expand a group you add a new level to the row context and the subtotal start to act as a total so the condittional formatting stops working on the subtotals level and not on the values.

Check print below:

+--.png

This is a feature of the table but you can vote the idea on the blog post.

 

I cannot replicate issue you show below, how do you have the values setup and the condittional formatting? Are you using measures?

 

Can you share a sample file?

 

Regards,

MFelix

 

 


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



View solution in original post

6 REPLIES 6
fvalento2023
Helper I
Helper I

I did not see the correct answer, but under Cell elements in conditional formatting you can select drop down under "Apply to" and hit Values and totals.

 

fvalento2023_0-1696947168200.png

 

Hi @fvalento2023 ,

 

This can be active however when you open one of the levels the condittional formatting gets disable at the top level of the matrix:

 

MFelix_0-1696954313843.png

 

MFelix_1-1696954337985.png

 


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



In you screen shots you have values only selected, which is why that is the case.

 

Select Values and totals, should keep the top level highlighted.

@fvalento2023 ,

 

Yes you are correct. Sorry for the missleading information.

 

 


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



Anonymous
Not applicable

Hi @Anonymous 

 

How did you managed to insert conditional formatting when the + botton is not active?

in my case, formatting does not work when I am not drilling...

 

Thank you for your help.

MFelix
Super User
Super User

Hi @Anonymous ,

 

The condittional formatting on the table visual does not work on the total line, meaning that since DAX is based in context when you have the line values closed and all of your data is only the subtotals the context is the value in each row, since the row context enter in place.

 

When you expand a group you add a new level to the row context and the subtotal start to act as a total so the condittional formatting stops working on the subtotals level and not on the values.

Check print below:

+--.png

This is a feature of the table but you can vote the idea on the blog post.

 

I cannot replicate issue you show below, how do you have the values setup and the condittional formatting? Are you using measures?

 

Can you share a sample file?

 

Regards,

MFelix

 

 


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



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.