Don't miss your chance to take exam DP-600 or DP-700 on us!
Request nowLearn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
Is this expected or something I can work around?
I have setup a matrix in an income statement layout with a hierarchy for the rows. I have setup cell conditinal formatting to highlight rows that provide totals. The problem is that when the hierarchy is expanded to show the next level on ANY row all conditional formating on the top level rows goes away.
Before expansion:
After Expansion
Solved! Go to Solution.
OK! Here's the cause of the problem: I had the "Appy to" option set to "Values only". The solution is to set it to "Values and totals".
Right click on measure -> Conditional Formatting -> Background
Here's my guess at the reason behind this. With all items in the hierarchy collapsed each row shows values. When you expand even one hierarchy row all rows (except the newly visible lower level) are now TOTALS. The lower level that you just exposed shows values.
Hope this helps someone.
OK! Here's the cause of the problem: I had the "Appy to" option set to "Values only". The solution is to set it to "Values and totals".
Right click on measure -> Conditional Formatting -> Background
Here's my guess at the reason behind this. With all items in the hierarchy collapsed each row shows values. When you expand even one hierarchy row all rows (except the newly visible lower level) are now TOTALS. The lower level that you just exposed shows values.
Hope this helps someone.
@WZorn How are you doing the conditional formatting? Is it a measure or how is it configured?
Hi, Greg
Yes, I'm using a measure. A really simple one. I have index numbers associated with each element of the hierarchy. I also use them for sorting the row order. I have a measure that compares the index to a static number (the line I want highlighted). That measure returns the hex color code. I'm using the cell background conditional formating set to Field Value and referencing the measure.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 51 | |
| 40 | |
| 37 | |
| 14 | |
| 14 |
| User | Count |
|---|---|
| 85 | |
| 69 | |
| 38 | |
| 29 | |
| 27 |