One common use of conditional formatting is to highlight the top/bottom N ranked items in a report, which can help to quickly identify the most important or relevant items in the data.
Refer to the Create Rule section to get started. Once the rule is created and you can see the Conditional Formatting side panel, follow the steps below.
Let's apply icon-based formatting to the Top 2 subcategories based on Consumer > Sales.
Conditional formatting based on ranking
You can also apply ranking based on percentages. In the sample report, the top 30% of subcategories based on Total Q2 sales are highlighted.
Conditional formatting based on percentages
You can apply conditional formatting for the top and bottom items using the 'Both' option. In the sample report, conditional formatting has been applied based on the top and bottom subcategories.
Conditional formatting for top and bottom sub categories
Let's create a rule for highlighting the top 2 categories. When you click Apply, conditional formatting doesn't work. This is because the category dimension is at a total level, but we have defined Row hierarchy levels as 'Values only'.
Conditional formatting for totals
Change the Row hierarchy levels to 'Values and totals' and click Apply. 'Office Supplies' and 'Technology' are highlighted now.