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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Frequent Visitor

Problem with Matrix visual and conditional formatting



I’m using the Matrix visual to build a Gantt chart and conditional formatting to turn the 0s and 1s calculated by a measure into white and red cells. All is perfect except for one point. Let’s say I have 3 main tasks, each having their own subtasks (1901, 1902, ..., 1913 are periods of 4 weeks).


If all tasks are collapsed, that’s ok:


If all tasks are expanded, that’s ok as well:


If a task is expanded whereas one or two others are collapsed, it seems that conditional formatting no longer work:



Any Clue?



Community Support
Community Support

Hi labulle,

This is by design, when you expand the one level, it will also expand subtotal level, then other row which not expand is also subtoal level(yellow part)


And conditional formatting is applied only to the values of a Matrix visual, and does not apply to any subtotals or grand totals.

Best Regards,
Zoe Zhi

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Frequent Visitor

Hi Zoe Zhi,

Thanks for your answer.

You write that conditional formatting applies only to the values of a Matrix visual, must I deduce that the 1st situation I shown (all top levels collapsed) belongs to that case?

Actually, my 1st example wasn’t so fine. I found later that it’s not difficult to have a sequence of clicks that result into not painted cells, but in that case I also noticed that clicking on the "Drill up" arrow always solves the problem.

Is there any workaround that could make my cells always painted (in white or red) whatever the way the hierarchical data are displayed?

Best Regards,


Helpful resources

Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

Check out the June 2024 Power BI update to learn about new features.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.