# KPI Tile: Comparative Tile

{% hint style="success" %}
*Check out the given walk-through on how to set the KPI Tile Comparative Tile chart properties.*
{% endhint %}

{% embed url="<https://files.gitbook.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq1Y2nC9XDrWcLwg1gpYr%2Fuploads%2FQPbfTIg8HkzOXi9HUkpF%2FKPI%20Comparative%20Tile.mp4?alt=media&token=18e83549-96cc-464f-bd9d-a4b3b3a720fd>" %}
***Using the KPI Comparative Tile chart***
{% endembed %}

A KPI Comparative Chart is a type of data visualization that displays key performance indicators and their corresponding values in a comparative manner. It is designed to showcase the performance of multiple KPIs side by side, allowing viewers to quickly compare their values and identify trends, patterns, and variations between different periods, categories, or entities.

{% hint style="info" %}
*<mark style="color:green;">Please Note:</mark> KPI comparative Tile compares one measure value against the other selected measure value.*
{% endhint %}

## Properties <a href="#properties" id="properties"></a>

*The KPI Comparative Tile contains General Settings, View Filter, and Primary Value Axis like KPI Tile, but it has additional properties such as Show Trend, Secondary Value Axis, and Rule to insert comparative approach.*

* Navigate to the ***Design Workspace***.
* Select the ***KPI Comparative Tile*** component from the list of charts.
* Drag a ***Measure*** value to the workspace from the selected Data Store.
* The selected value appears on the workspace.

<figure><img src="/files/EQLDbKd8GDGuliglRjnr" alt=""><figcaption><p><em><strong>Displaying the selected Measure in the KPI Comparative Tile</strong></em> </p></figcaption></figure>

* Open the ***Chart*** ***Properties*** tab.

<figure><img src="/files/Hbw7qvBoJewoisUpFOsn" alt=""><figcaption><p><em><strong>Chart Properties icon</strong></em></p></figcaption></figure>

* The ***Chart Properties*** tab opens displaying the various properties for the KPI Comparative Tile chart. Set the required properties for the KPI Comparative tile using this tab.

<figure><img src="/files/PWEoRrUUNz3BoDCqkdBs" alt=""><figcaption><p><em><strong>The Chart Properties tab for the KPI Comparative Tile</strong></em></p></figcaption></figure>

### **General Settings**

* **Exclude Global Filter**: Use a checkmark in the box to exclude the Global filter conditions.

### **View Filter**

* **Filter:** Choose a view filter condition from the drop-down menu.

### **Label**

* **Label**: Insert text to be displayed as Label.
* **Label Font Size**: Select the font size for the displayed label using the drop-down menu.
* **Label Color**: Select the Label colour using the menu.

<figure><img src="/files/5VIZ7cHIAkgaOvc5zHBe" alt=""><figcaption><p><em><strong>General Settings, View Filter and Label Properties</strong></em></p></figcaption></figure>

### **Primary Value Properties**

* **Font Size:** Select a font size from the drop-down menu.
* **Format Type**: Select a desired format type from the drop-down menu (the provided options for this field are: None, Auto, Percent, Thousand, Lacs, Crore, Million, Billion, Trillion, Quadrillion).
* **Currency Type**: Select a currency symbol to be displayed in the view (the provided options for this field are: None,  Rupees, Euro, Pound, USD, Yen, Cent).
* **Precision**: Set the after-decimal value (It displays up to 5 precision).

<figure><img src="/files/v364DWepy9c1MNXslE9l" alt=""><figcaption><p><em><strong>Primary Value Properties</strong></em></p></figcaption></figure>

### Secondary Value Properties&#x20;

* Provide the ***Secondary Value Properties*** to avail the second value for the comparison.
  * **Secondary Value:** Select a custom field from the drop-down menu.
  * **Font Size:** Select a font size from the drop-down menu.
  * **Format Type**: Select a desired format type from the drop-down menu (the provided options for this field are: None, Auto, Percent, Thousand, Lacs, Crore, Million, Billion, Trillion, Quadrillion).
  * **Currency Type**: Select a currency symbol to be displayed in the view (the provided options for this field are: None,  Rupees, Euro, Pound, USD, Yen, Cent).
  * **Precision**: Set the after-decimal value (It displays up to 5 precision).

### Trend

* Navigate to the ***Trend*** properties option.
* **Show Trend**: Use a checkmark in the box to display the trends.
* Click the **Rules** icon.

<figure><img src="/files/iw2THozMXBf4mNXEGg50" alt=""><figcaption><p><em><strong>Secondary Value Properties &#x26; Trend</strong></em></p></figcaption></figure>

* The ***Rules*** window opens prompting the user to set new rules for comparison.

<figure><img src="/files/kSRHvbHptwUF6zueQG0c" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
*<mark style="color:green;">Please Note:</mark>*&#x20;

* *The **Trend** option appears, only after configuring the **Secondary Value Properties**.*
* &#x20;*The user can set multiple rules using the **Rules** configuration window.*  &#x20;
  {% endhint %}

## **Setting Rules** <a href="#setting-rules" id="setting-rules"></a>

Follow the given steps to set Rules for comparison:

* Once the user clicks on the ***Rules*** icon, the Rules window opens redirecting the users to set rules for displaying the comparative values.
* Configure the required ***Rules*** fields, as shown in the following image:
  * **Primary Operator**: Select an option from the drop-down menu.
  * **Operation**: Select an operation from the drop-down menu to be applied as a condition on the selected Primary Operator.
  * **Secondary Operator**: Select an option from the drop-down menu.
  * **Primary  Color**: Select a color for the primary value field.
  * **Secondary Color**: Select a color for the Secondary Value field.
  * **Trend Direction:** Select a trend direction using the drop-down menu.
  * **Trend Color**: Select a color for the trend icon from the menu.
* Click the ***Apply*** option to apply the configured Rule.

<figure><img src="/files/OamjVg0jtwtXJEZeQIhN" alt=""><figcaption><p><em><strong>Setting Rule for the KPI Comparative Tile</strong></em></p></figcaption></figure>

{% hint style="info" %}
*<mark style="color:green;">Please Note:</mark>*

* ***Remove** : Selecting this option removes the added rules.*

* ***ADD**: Selecting this option adds a new row to be configured as a rule.*
  {% endhint %}

* The Primary and Secondary values get displayed in the selected colors with Trend directed to upward if the rule condition is met.     &#x20;

<figure><img src="/files/zxfPIOakrgFQgpm6H9Oe" alt=""><figcaption></figcaption></figure>

* The user can set multiple **Rules** by configuring the required fields.
* Click the ***Add*** icon.
* Set another rule where the ***Primary Value*** is selected as Greater than or equal to the ***Secondary Value***, and the ***Trend*** direction is downward.
* Click the ***Apply*** option.

<figure><img src="/files/XEr4hZpbKkREjVZo49VG" alt=""><figcaption><p><em><strong>Setting Multiple Rules using the Properties of the KPI Comparative KPI Tile</strong></em></p></figcaption></figure>

* The ***KPI Comparative Tile*** reflects the crucial changes when the conditions are met as per the set rule. ​

<figure><img src="/files/p00UrmWWf2jtU9lgF3S6" alt=""><figcaption></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.bdb.ai/self-service-visualization-4/chart-gallery/kpi-tile-comparative-tile.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.
