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

Unexpected behaviour for Conditional Formatting in a Matrix using ISINSCOPE

Hi, 

 

Conditional formatting doesn't seem to work for certain levels in a matrix. 

 

I want to apply conditional formatting in a matrix using a measure.

Using ISINSCOPE the level is determined and which color should be applied.

The DAX statement is as follows:


SWITCH(
     TRUE(),
     ISINSCOPE(fct_mapping[FK Episode]),"RED",        --Layer 2
     ISINSCOPE(fct_mapping[FK Epic]), "GREEN"        --Layer 1
)

For evaluation purposes the measure is used to display as a value as well as the input for the conditional formatting.

 

In the matrix the expected values are displayed at the correct levels: GREEN of layer 1, RED for layer 2. 

When applying the conditional formatting it seems inititially to work when everything is collapsed.

nospang_0-1674942848294.png

However when expanding to the next layer the conditional formatting disappears for the first layer and only seems to work for the second layer. 

 

nospang_1-1674942910842.png

Any way to keep the conditional formatting active on both layers?

 

 

 

 

1 ACCEPTED SOLUTION
nospang
Frequent Visitor

Solution: make sure it's on for values and totals

 

nospang_0-1675083563045.png

 

View solution in original post

1 REPLY 1
nospang
Frequent Visitor

Solution: make sure it's on for values and totals

 

nospang_0-1675083563045.png

 

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.