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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.