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

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. Register 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
March Fabric Community Update

Fabric Community Update - March 2024

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

Fabric Community Conference

Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

Fabric Partner Community

Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.