> Documentation index: https://www.gooddata.ai/docs/gooddata-ui/llms.txt lists every page of these docs as Markdown.

# ConditionalFormattingValue

- Package: [@gooddata/sdk-model](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-model/index.md)
- Kind: type-alias
- Stability: alpha
- Source: https://github.com/gooddata/gooddata-ui-sdk/blob/rel/11.64/libs/sdk-model/src/conditionalFormatting/index.ts

> **Alpha API.** Initial API, highly likely to change outside SemVer. Don't build on it in production. See [API maturity](https://www.gooddata.ai/docs/gooddata-ui/latest/integrations/platform/api-maturity/index.md).
> 

The operand a condition compares against. Discriminated so range / no-operand / date / (future column-reference) shapes stay valid by construction.

Date values target date attributes and express a period; a single date is a period whose bounds coincide. "Is on" (EQUAL\_TO) means the cell's period lies within the value period; "Is after" (GREATER\_THAN) means after the period ends; "Is before" (LESS\_THAN) before it starts.

**Signature:**

```typescript
export type ConditionalFormattingValue = {
    kind: "none";
} | {
    kind: "literal";
    value: string | number;
} | {
    kind: "literalRange";
    from: number;
    to: number;
} | {
    kind: "absoluteDate";
    from: string;
    to: string;
} | {
    kind: "relativeDate";
    granularity: DateFilterGranularity;
    from: number;
    to: number;
};
```
**References:** [DateFilterGranularity](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-model/sdk-model.datefiltergranularity/index.md)
