# Create rule

In this section, we'll cover some basic settings required to configure conditional formatting.

**STEP 1:** To create a new rule, select Conditional Formatting -> Create Rule from the Home ribbon. The conditional formatting side pane opens as shown.

<figure><img src="/files/AEJp4GVDYsOBBQwYYBbw" alt=""><figcaption><p>Create rule</p></figcaption></figure>

**STEP 2:** The rule can be renamed by editing the **Title** field.

**STEP 3:** You can apply conditional formatting to the row headers, rows, column headers, or columns/measures. Choose the desired option in the **Apply to** field. For example, if you opt to apply conditional formatting for row headers, you will be able to select the row dimensions that will be impacted by conditional formatting.

<figure><img src="/files/8fcslrh66IkIe78Mf0kB" alt=""><figcaption><p>Conditional formatting for row headers</p></figcaption></figure>

**STEP 4:** You can apply conditional formatting to values and totals, totals only, or values only. By default, Values only will be selected. Customize as required using the **Row hierarchy levels** field.

<div><figure><img src="/files/9Ohsxk7q9j0n4RGxoup4" alt=""><figcaption><p>Apply to - Options</p></figcaption></figure> <figure><img src="/files/wzpxTJvyPHyuJercLKUc" alt=""><figcaption><p>Row hierarchy levels - Options</p></figcaption></figure></div>

**STEP 5:** There are several conditional formats you can use to create rules. You can select the desired format using the **Format by** field. The available options are Rules (If Conditions), Color Scale, Classification, and Ranking.

<figure><img src="/files/PfRmKKHnQV49E3QjW7Gr" alt=""><figcaption><p>Format by - Options</p></figcaption></figure>

In the next section, we'll be covering [Rules (If conditions)](/planning-sheets/how-tos/adding-business-logic-and-formulae/5.-conditional-formatting/create-rule-basic-settings/rules-if-conditions.md).


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.fabricplan.com/planning-sheets/how-tos/adding-business-logic-and-formulae/5.-conditional-formatting/create-rule-basic-settings.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
