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
Standish
Frequent Visitor

Conditional Formatting - Matrix Visual

Hi,

 

My data is structured in a matrix like the below. It has my desired result of displaying conditional formatting at the "Product" level.

 

SampleData1.PNG

 

I can take two different approaches to collapsing the data in the matrix.

1. By right clicking "Site 1" and Collapsing All.

2. Clicking the individual + / - buttons.

 

(1) When I right click and Collapse All, the conditional formatting rolls up and applies to the "Site" level. This is not the desired result.

 

(2) When I click the individual + / - buttons to roll up the matrix, the conditional formatting does not apply to the "Site" level. This is the desired result.

 

Is there anyway I can design the Matrix / Conditional Formatting to be able to Right Click and select Collapse All but not have the Conditional Formatting apply to the "Site" (top) level?

 

PBISampleValues.PNG

 

 

 

 

 

 

 

Thank you.

1 ACCEPTED SOLUTION
v-joesh-msft
Solution Sage
Solution Sage

Hi @Standish ,

Maybe you can try to create a measure similar to the following:

Measure = IF(ISINSCOPE(financials[Department]),SUM(financials[ Sales]))

Then apply conditional formatting to "sales" based on the field "measure"-Default Formatting-Don't Format:

11.PNG

Results are as follows:

12.PNG

Here is a demo, please try it:

https://qiuyunus-my.sharepoint.com/:u:/g/personal/pbipro_qiuyunus_onmicrosoft_com/ERkToUOAMRtKsA06RQ...

Best Regards,
Community Support Team _ Joey
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

2 REPLIES 2
v-joesh-msft
Solution Sage
Solution Sage

Hi @Standish ,

Maybe you can try to create a measure similar to the following:

Measure = IF(ISINSCOPE(financials[Department]),SUM(financials[ Sales]))

Then apply conditional formatting to "sales" based on the field "measure"-Default Formatting-Don't Format:

11.PNG

Results are as follows:

12.PNG

Here is a demo, please try it:

https://qiuyunus-my.sharepoint.com/:u:/g/personal/pbipro_qiuyunus_onmicrosoft_com/ERkToUOAMRtKsA06RQ...

Best Regards,
Community Support Team _ Joey
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

This solution worked well! Thank you.

 

I modified ISINSCOPE to reference the bottom heirarchy level (Product in this example).

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!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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.

Top Solution Authors