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
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
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.