# KPI properties

These are the properties used by Qlik Sense KPI objects.

## Properties

### showTitles

Type: Boolean

Show title for the visualization.

Default: true.

### showDetails

Type: Boolean

Sets if visualization details should be shown.

Default: false

### title

Type: String | qStringExpression

Visualization title shown if "showTitles": true.

### subtitle

Type: String | qStringExpression

Visualization subtitle shown if "showTitles": true.

### footnote

Type: String | qStringExpression

Visualization footnote shown if "showTitles": true.

### disableNavMenu

Type: Boolean

Disables the hover menu in the visualization.

Default: false

### qHyperCubeDef

Type: Object

The hypercube definition used by most visualizations.

A subset of the properties available in the qHyperCubeDef is presented here. For complete documentation of all available properties, see [Engine API: HyperCubeDef](https://help.qlik.com/en-US/sense-developer/November2025/Subsystems/EngineJSONAPI/Content/models-hypercubedef.htm).

Properties

#### qDimension

Type: Array

Description: Extends NxDimension, see [Engine API: NxDimension](https://help.qlik.com/en-US/sense-developer/November2025/Subsystems/EngineJSONAPI/Content/models-nxdimension.htm).

Additional properties

* **qDef**

  Type: Object

  Description: Extends NxInlineDimensionDef, see [Engine API: NxInlineDimensionDef](https://help.qlik.com/en-US/sense-developer/November2025/Subsystems/EngineJSONAPI/Content/models-nxinlinedimensiondef.htm).

  qDef properties

  | Name | Type | Description |
  | --- | --- | --- |
  | autoSort | Boolean | Set to automatically sort the dimension.<br><br>Default: true |
  | cId | String | ID used by the client. Must be unique within the current chart. |
  | othersLabel | StringExpressionContainer | String expression container. |

* **qAttributeDimensions**

  Type: Array

  Description: Extends NxAttrDimDef, see [Engine API: NxAttrDimDef](https://help.qlik.com/en-US/sense-developer/November2025/Subsystems/EngineJSONAPI/Content/models-nxattrdimdef.htm).

  id

  Type: String

  One of:

  * colorByAlternative: colors the chart using different dimensions. Can be used together with color.mode="byDimension" for attribute dimensions.
  * colorByExpression: used together with color.mode="byExpression".

#### qMeasures

Type: Array

Description: Extends NxMeasure, see [Engine API: NxMeasure](https://help.qlik.com/en-US/sense-developer/November2025/Subsystems/EngineJSONAPI/Content/models-nxmeasure.htm).

Additional properties:

* **qDef**

  Type: Object

  Description Extends NxInlineMeasureDef, see [Engine API: NxInlineMeasureDef](https://help.qlik.com/en-US/sense-developer/November2025/Subsystems/EngineJSONAPI/Content/models-nxinlinemeasuredef.htm).

  Additional properties:

  * **autoSort**

    Type: Boolean

    Description: Set to automatically sort the measure. Default: true.

  * **cId**

    Type: String

    Description: ID used by the client. Must be unique within the current chart.

  * **isCustomFormatted**

    Type: Boolean

    Description: Set to true to toggle off the default client formatting.

  * **numFormatFromTemplate**

    Type: Boolean

    Description: When enabled, the number format to use can be selected from multiple predefined formats based on the desired type: number or date. Default: true.

  * **conditionalColoring**

    Type: Object

    Description: Coloring settings.

    * **useConditionalColoring**

      Type: Boolean

      Description: Set if the object should use conditions to color the object.

      Default: false

    * **singleColor**

      Type: Integer

      Description: Deprecated. Use paletteSingleColor instead. Set to reference a color in the color palette.

      Default: 3

    * **paletteSingleColor**

      Type: Integer

      Color information structure. Holds actual color and index in palette.

      paletteSingleColor properties

      | Name | Type | Description |
      | --- | --- | --- |
      | index | Integer | Index in the palette.<br><br>The default Qlik Sense color palette:<br><br><ul> <li><span>-1</span>: set to use custom color that is not in the palette.</li> <li><span>0</span>: No color</li> <li><span>1</span>: White, HEX: <span>#ffffff</span></li> <li><span>2</span>: Light green, HEX: <span>#46c646</span></li> <li><span>3</span>: Green, HEX: <span>#276e27</span></li> <li><span>4</span>: Light blue, HEX: <span>#b6d7ea</span></li> <li><span>5</span>: Blue, HEX: <span>#7db8da</span></li> <li><span>6</span>: Dark blue, HEX: <span>#4477aa</span></li> <li><span>7</span>: Purple, HEX: <span>#8e477d</span></li> <li><span>8</span>: Yellow, HEX: <span>#ffcf02</span></li> <li><span>9</span>: Orange, HEX: <span>#f8981d</span></li> <li><span>10</span>: Red, HEX: <span>#f93f17</span></li> <li><span>11</span>: Brown, HEX: <span>#633d0c</span></li> <li><span>12</span>: Light gray, HEX: <span>#b0afae</span></li> <li><span>13</span>: Gray, HEX: <span>#7b7a78</span></li> <li><span>14</span>: Dark gray, HEX: <span>#545352</span></li> <li><span>15</span>: Black, HEX: <span>#000000</span></li> </ul><br><br>Default: 6 |
      | color | String | Color as HEX string.<br><br>Mandatory if "index": "-1". |

    * **segments**

      Type: Object

      Segment settings.

      segments properties

      | Name | Type | Description |
      | --- | --- | --- |
      | limits | Array | Color gradient limitations.<br><br><ul> <li><strong>value</strong>: <p><span>Type: ValueExpressionContainer</span></p>Description: Value expression container.</li> <li><strong>gradient</strong>: <p><span>Type: Boolean</span></p>Description: Set to use gradient between segments.</li> </ul> |
      | paletteColors | Object | Replaces segment colors and provides ability to set custom colors. Overrides segment.colors when set.<br><br><ul> <li><strong>color</strong>: <p><span>Type: String</span></p>Description: Color as hex string (mandatory if index: -1)</li> <li><strong>index</strong>: <p><span>Type: Integer</span></p>Description: Index in palette. Default: <span>6</span></li> <div> <li><strong>icon</strong>: <p><span>Type: String</span></p>													Description: Name of icon.</li> </div> </ul> |
      | colors | String | Color value for individual segment.<br><br><ul> <li><strong>color</strong>: <br><span>Type: Integer</span><br>Color of segment. Default: <span>3</span><div></div></li><li><strong>icon</strong>: <p><span>Type: String</span></p>													Description: Name of icon.</li> </ul> |

  * **measureAxis**

    Type: Object

    Set the limits for the range.

    measureAxis properties

    | Name | Type | Description |
    | --- | --- | --- |
    | min | ValueExpressionContainer | Set the min value for the range. |
    | max | ValueExpressionContainer | Set the max value for the range. |

* **qAttributeExpressions**

  Type: Array

  Description: Extends NxAttrExprDef, see [Engine API: NxAttrExprDef](https://help.qlik.com/en-US/sense-developer/November2025/Subsystems/EngineJSONAPI/Content/models-nxattrexprdef.htm).

  * **id**

    Type: String

    Description: If set to `\"bullet-target\"` the expression will be interpreted as the target for the specific measure. If set to `\"bullet-segment\"` the expression will be interpreted as a segment limit.

#### qLayoutExclude

Type: Object

#### customErrorMessage

Type: Object

Set to define custom error messages.

* **calcCondition**

  Type: String

  Description: Deprecated. Use qCalcCondition.qMsg instead. Set to customize the calculation condition unfilled message.

### style

Type: Object

Description: Set background to a color .

* background
  * useColorExpression

    Type: Boolean

    Description: Defines if a color expression is used.

    Default: false

  * color

    Type: Object

    Description: Set to specify color.

    Index: -1

    Color: null

  * colorExpression

    Type: String

    Description: An expression string that defines the color.

    Default: ''

### showMeasureTitle

Type: Boolean

Sets if the main title of the first measure should be displayed.

Default: true

### textAlign

Type: String

Aligns the text in the KPI object. Can be one of:

* left
* center
* right

Default: center

### layoutBehavior

Type: String

Sets the layout mode for the font in the KPI object. Can be one of:

* Fixed. The font size is always the same. The font size is independent of the box size and the length of the KPI text. Overflows with (…) if the text is too long.
* Fluid. The font size adapts to the size of the box. Overflows with (…) if the text is too long.

  Information noteMake the KPI boxes the same size to keep the same font size.
* Responsive. Text always fits. The font size adapts to the size of the box and the length of text.

### fontSize

Type: String

Sets the font size of the main value. Can be one of:

* S (small)
* M (medium)
* L (large)

Default: M

### useLink

Type: Boolean

Set if the KPI will link to another sheet when clicked.

Default: false

### sheetLink

Type: String

The sheet id (as a string) of the sheet to link to if "useLink": true.

### openUrlInNewTab

Type: Boolean

Sets if the KPI opens in another tab when clicked. If false, it will only redirect from the current page.

Default: true

### color

Type: Object

Controls if colors encoded in master items should be used.

color properties

| Name | Type | Description |
| --- | --- | --- |
| useBaseColors | String | Use colors encoded in master items. One of:<br><br><ul> <li><span>off</span> </li> <li><span>measure</span> </li> </ul><br><br>Default: measure |