Format by Rules (If conditions) in conditional formatting
Last updated
Was this helpful?
When creating conditional formatting rules, you can choose from three Format by options that determine how formatting is applied. This article explains the Rules (If conditions) format option in detail. Refer to create rules in conditional formatting to know about it.
In the Format by dropdown, select Rules (If conditions) to configure rule-based conditional formatting based on one or more logical conditions. Format cells using font styles, colors, borders, icons, or background highlights when specified conditions are met.
In the Style section, define how data should appear when conditions are met:
Font style – Apply bold, italic, or underline
Font color – Change text color
Cell background – Highlight cells with color
Borders – Add custom borders
Icons or text – Display indicators or symbols
Hide values – Mask sensitive data when conditions are met
You can also:
Align icons within cells
Display only icons or text (hide values)
Apply formatting to charts or labels where applicable.

Use the Conditions section to specify when formatting is applied. You can combine multiple conditions using AND/OR logic.
Each condition contains the following components:
Measure or field
Select the measure or column to evaluate.
Operator
Define the comparison logic, such as Greater than, Less than, or Equal to.
Condition type
Specify the comparison source, such as Number, Data selection, Value, or Formula.
Value
Enter the comparison value or select a reference.
Supported condition types include:
Number - Apply formatting based on numeric thresholds.
Data selection - Reference another cell value dynamically.
Value - Compare against another measure or column.
Formula - Use expressions combining measures and values.
User selection - Apply formatting dynamically based on runtime user interaction.

Advanced conditional formatting can be done by selecting Add Condition.
Add multiple conditions and combine them using AND/OR logic.
Apply complex business rules across dimensions.

Last updated
Was this helpful?
Was this helpful?