# 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="https://3132984990-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbOoZhPvC57Z0CNgep4Ib%2Fuploads%2Fq4qqvQxgiN0HRTA7yruY%2Fimage.png?alt=media&#x26;token=d1a09a2b-dd5f-432b-ab50-17a1162326b4" 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="https://3132984990-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbOoZhPvC57Z0CNgep4Ib%2Fuploads%2Fq4FB68tPYO1lpt2sppZi%2Fimage.png?alt=media&#x26;token=3c5f97da-013d-4c22-8d89-7816bfceb78c" 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="https://3132984990-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbOoZhPvC57Z0CNgep4Ib%2Fuploads%2FYsf81CzOWQePoXNun1te%2Fimage.png?alt=media&#x26;token=7e3f75a0-7c06-47c9-94d9-cce55e913559" 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="https://3132984990-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbOoZhPvC57Z0CNgep4Ib%2Fuploads%2FN00u55FYORVuva0ttyar%2Fimage.png?alt=media&#x26;token=73e6f2c5-876d-4eee-bddd-52170869d5e5" 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="https://3132984990-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbOoZhPvC57Z0CNgep4Ib%2Fuploads%2FuCZ5Xko3hrOBowuuJx27%2Fimage.png?alt=media&#x26;token=be219491-24bf-4fc6-a795-d97597620497" alt=""><figcaption><p>Conditional formatting for insight charts</p></figcaption></figure>
