# One click rules for tables

In this section, we'll discover the single-click conditional formatting options for tables. Selecting a single-click rule will open the Conditional Formatting side pane. By default, single-click rules will use the AC (Actuals) measure. The configurations are automatically set but you can modify them as required. We'll learn more about configuring rules in later sections.

### 1. Value

You can highlight positive/negative values using this option. You can also set a threshold and highlight values that are lesser or greater than the custom threshold.

In this example, we chose the **Negative** rule and modified the condition to use variance instead of the default AC measure.&#x20;

<figure><img src="https://3132984990-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbOoZhPvC57Z0CNgep4Ib%2Fuploads%2FkRXmcUrXp0xyT0XKLMU5%2Fimage.png?alt=media&#x26;token=102cb2b5-280a-4a8e-a68c-0f47e0146d4a" alt=""><figcaption><p>Conditional formatting applied to highlight AC where variance is negative</p></figcaption></figure>

### 2. Comparison value

You can use the comparison value option to quickly highlight data based on comparing 2 columns. Analytics+ offers two methods to highlight data based on column comparisons:

* Greater/less than a benchmark
* Ranges

#### 2.1. Greater/less than benchmark

You can highlight values with a single color when the measure is greater or lesser than the benchmark measure.&#x20;

In the table, we have used the **Greater than benchmark** to highlight the AC values when AC > PL, the PL measure being the benchmark.

<figure><img src="https://3132984990-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbOoZhPvC57Z0CNgep4Ib%2Fuploads%2FuQ4rz2uYrxZX5BuBPYkD%2Fimage.png?alt=media&#x26;token=0acfcf42-6db5-4438-81ce-bcd3f3dc262e" alt=""><figcaption><p>Greater than benchmark option</p></figcaption></figure>

#### 2.2 Ranges

You can use a heatmap to highlight values when the benchmark measure falls within a specified range.  Analytics+ dynamically calculates the range - enabling you to apply conditional formatting in a single click. You can also override the pre-calculated ranges and specify custom values.

We have used the **Ranges** option to highlight the AC values based on the variance from the Plan.

<figure><img src="https://3132984990-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbOoZhPvC57Z0CNgep4Ib%2Fuploads%2F1uTeNjh12W8SVI9y07lF%2Fimage.png?alt=media&#x26;token=0c8c4e4e-207c-42e1-a8b9-141257a37e8e" alt=""><figcaption><p>Conditional formatting with ranges</p></figcaption></figure>

### 3. Color scales

Based on your data, you can apply different color scales: sequential, qualitative, and diverging.&#x20;

When a heatmap is used, the font colors are automatically adjusted to be in contrast with their backgrounds for enhanced readability.

{% hint style="info" %}
For Inforiver to automatically adjust the font color, enable the Canvas > Auto color property.
{% endhint %}

In the table, we've used a sequential heatmap for the AC measure.

<figure><img src="https://3132984990-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbOoZhPvC57Z0CNgep4Ib%2Fuploads%2F1NNOqEz84CfbWVtGhQPH%2Fimage.png?alt=media&#x26;token=ebd979cd-bca1-4c40-8494-a439744f523b" alt=""><figcaption><p>Sequential heatmap</p></figcaption></figure>

The minimum and maximum values to determine the value ranges can be calculated at an individual panel or table level.

Choose the **Column wise** option to calculate the minimum and maximum values for each panel and set the color scale within each panel. Choose the **Table wise** option to apply the heatmap based on the minimum and maximum values in the entire table.

<div><figure><img src="https://3132984990-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbOoZhPvC57Z0CNgep4Ib%2Fuploads%2FTnfPjE5i7BzbdVhuwoLs%2Fimage.png?alt=media&#x26;token=9a3f28ca-01d6-4657-a7c3-94c5e93d0e4f" alt=""><figcaption><p>Table wise heatmap</p></figcaption></figure> <figure><img src="https://3132984990-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbOoZhPvC57Z0CNgep4Ib%2Fuploads%2F6kL0buNiQWdGWDpPhuBC%2F2024-05-22_11h41_45.png?alt=media&#x26;token=446e83e5-a0b9-4838-ac39-0b8dce73e5fb" alt=""><figcaption><p>Column wise heatmap</p></figcaption></figure></div>
