# Configuring rules for cards

## 1. Configuring conditional formatting rules&#x20;

Inforiver provides the options outlined below to configure conditional formatting rules.

**i) Title:** Custom name to uniquely identify the rule.

**ii) Format by**: To drive conditional formatting based on rules or color scales,  select the respective option.

**v) Color impacts on:** You can choose the element (like chart/data label/background/ KPI value/ KPI title) to which the formatting will be applied.

**vi) Condition:** Define conditions to drive the conditional formatting.

**vii) Add condition:** Use this link to add additional And/Or conditions.

#### Conditional formatting for charts

In this example, we have used a conditional formatting rule to highlight the bars where 2023 Actuals > 2022 Actuals.

<figure><img src="/files/o3WINFfWlzFw69xUcNo8" alt=""><figcaption><p>Conditional formatting rule for cards</p></figcaption></figure>

When you choose Color impacts on > Chart, you can set a color and fill style (solid, outline, hatched).

<figure><img src="/files/VWCPVaFShDfhgH3LZwJ5" alt=""><figcaption><p>Conditional formatting with chart fill styles</p></figcaption></figure>

#### Setting a custom background color for panels that satisfy the conditional formatting rule

&#x20;In this example, when the total sales for a particular region is less than 400m, the background color is changed.

<figure><img src="/files/Vg07bVI36fC0bRvv7ufA" alt=""><figcaption><p>Background color applied based on CF rule</p></figcaption></figure>

#### Conditional formatting for KPI titles

You can apply a custom color to the KPI title for panels that satisfy the CF rule. Notice how the EMEA and East regions have a different color in the report below.

<figure><img src="/files/zszdPtCOrroFS4j9rdM0" alt=""><figcaption><p>Conditional formatting for titles</p></figcaption></figure>

#### **Conditional formatting for insight charts**

Highlight trends by applying conditional formatting rules to insight charts. Choose the"Kpi Insight Chart" for the **Impacts on** option to apply formatting to the insight chart.

<figure><img src="/files/EjU6CSm46Adpieva0xza" alt=""><figcaption><p>Conditional formatting for insight charts</p></figcaption></figure>


---

# 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.inforiver.com/analytics+/working-with-analytics+/9.-conditional-formatting/configuring-rules/configuring-rules-for-cards.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.
