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:
You can also:

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:
| Setting | Description |
|---|---|
| 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:

Advanced conditional formatting can be done by selecting Add Condition.
