# Field Value

### What is Field value?

{% hint style="success" %}
Field Value is a conditional formatting feature that lets you drive formatting rules from your underlying dataset. Instead of hard-coding colors, formatting is controlled dynamically by the underlying data.

You can use field values to apply colors directly from measures, ensuring truly data-driven reports.
{% endhint %}

You can assign fields from your dataset and apply conditional formatting based on the specified color. Let's consider a Benchmark dataset - each benchmark is represented by a designated color, which is part of the source data.

<figure><img src="/files/NsHPWx9FbSpWVNKRzdEd" alt=""><figcaption><p>Dataset with colors assigned</p></figcaption></figure>

### How to setup field value formatting

Let's look at how to configure conditional formatting based on a field from your data source.

Assign the text column containing the color scheme to the visual. You'll see a **Field value** option in the **Format by** dropdown. Select the text field that will be used to assign colors from the **Based on** dropdown.

<figure><img src="/files/mP9IOh9nDw04yfRpCnxQ" alt=""><figcaption><p>Selecting the field to drive the colors</p></figcaption></figure>

#### **1. Format font color**

The font color for the Actuals measure is changed based on the *Benchmark identifier* text field. To apply conditional formatting on the font color, select the **Font** option from the **Color for** dropdown.

<figure><img src="/files/AKQfAJO1vLXIHLXSwLOy" alt=""><figcaption><p>Font color updated based on source data</p></figcaption></figure>

#### **2. Format background color**

To change the cell background color, select **Background** from the **Color for** dropdown.

<figure><img src="/files/jhZbFkpM59XfsbBFaemI" alt=""><figcaption><p>Applying a background color based on a source field</p></figcaption></figure>

#### **3. Using auto font color**

When the **Auto font color** option is checked, Plan internally assigns a font color that will have maximum visibility against the background color.

Uncheck this option to assign a custom font color from the **Format** menu.

<figure><img src="/files/aAMGAZN9JHoVtZ7FpcKz" alt=""><figcaption><p>Setting a custom font color</p></figcaption></figure>

#### **FAQs**

**Q1: How does Field Value handle dynamic data changes?**

Field value formatting in Plan is fully data-driven. When the underlying field or measure changes, the formatting updates automatically. This ensures your visuals always reflect the latest business logic in your semantic model.


---

# 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/field-value.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.
