Top.Mail.Ru
KPI List
CTRL+K

KPI List

In this article
  • KPI List
  • Widget Settings
  • Data Settings
  • Display Settings
  • Filtering Settings
  • Widget Configuration in YAML
  • Data Settings in YAML
  • Display Settings in YAML
  • Filtering Settings in YAML
  • Example of a Configured Widget in the YAML Editor

The widget allows you to add a panel with multiple indicators to a dashboard. Each indicator in the widget can use columns from tables that are not linked in the Data Model.

KPI list example

Widget Settings

In addition to common widget settings, this widget has unique settings.

Data Settings

In the Data tab, you can add measures to the widget. In addition to standard local indicator settings, you can configure predefined filtering (+ Filter button) and click actions for each measure.

Display settings for measures:

  • Title (can be hidden)
  • Color:
    • Auto
    • Solid
    • By rule (only rules with Solid or Custom mode are available for values)
    • Custom (by formula)
  • Display (Always / By variable / By formula)
Note

If too many horizontally arranged indicators are added, they automatically wrap to the next line within the same widget.

Display Settings

In addition to standard display settings, the following settings are available for this widget:

  • Measure title size
  • Title position (top / bottom)
  • Indicator size
  • Measure font weight
  • Alignment (left / center / right)
  • Layout (vertical or horizontal arrangement)

Filtering Settings

The widget supports common filtering settings.

Widget Configuration in YAML

You can edit the widget not only in the view but also in the YAML editor. The table below lists the keys and values available for configuration. For details on working with the value key, see Dimension and measure values in YAML. Supported data formats are described on the corresponding page. Common widget parameters are described on the page Widget configuration in YAML.

Data Settings in YAML

KeyTypeDefinition
titlestringTitle
showMarkdownbooleanDescription
markdownTextstringDescription text
markdownMeasuresMeasure in description
measures#Adding an indicator (measures key)Indicators

Adding an Indicator (measures key)

To add an indicator to the widget, use the measures block. The following keys are available within this block:

KeyTypeDefinition
namestringMeasure name
valueMeasure formula
dbDataTypeenumMeasure data type
formatenumFormat
formattingenumFormatting
formattingTemplatestringCustom formatting
Available only for CUSTOM formatting type
onClickClick actions
showTitlebooleanShow measure title
titleSizenumberMeasure title size
positionenumPosition:
- TOP — top
- BOTTOM — bottom
alignmentenumAlignment:
- LEFT — left
- CENTER — center
- RIGHT — right
fontWeightenumFont weight:
- NORMAL — normal
- BOLD — bold
fontSizenumberFont size
colorColor:
- AUTO — auto
- BASE — basic
- FORMULA — by formula
- RULE — by rule
displayConditionDisplay (display condition)
filtersPredefined filters

Display Settings in YAML

KeyTypeDefinition
paddingsstringSide paddings
titleSizenumberTitle size
titleColorTitle color:
- AUTO — auto
- BASE — basic
titleWeightenumTitle font weight:
- NORMAL — normal
- BOLD — bold
displaySignenumLayout:
- HORIZONTAL — horizontal
- VERTICAL — vertical
markdownTextSizenumberDescription text
Specifies the Markdown description text size. Available only if the Description toggle is enabled

Filtering Settings in YAML

KeyTypeDefinition
ignoreFiltersbooleanIgnore filters
filtersPredefined filters
stateNamestringState

Example of a Configured Widget in the YAML Editor

widgets:
  - key: kpi-list
    apiVersion: "17"
    type: KPI_LIST
    settings:
      title: ""
      titleSize: 14
      titleColor:
        mode: AUTO
      titleWeight: NORMAL
      showMarkdown: false
      markdownMeasures: []
      markdownText: ""
      measures:
        - name: Store Count
          value:
            mode: FORMULA
            formula: "#{Store Count}"
          format:
            value: NUMBER
            mode: BASE
          formatting:
            value: AUTO
            mode: BASE
          color:
            mode: AUTO
          dbDataType: Int64
          showName: true
          displayCondition:
            mode: DISABLED
          filters: []
          onClick: []
        - name: Product Count 
          value:
            mode: TEMPLATE
            tableName: product
            columnName: Product
            templateName: countDistinct
          format:
            value: NUMBER
            mode: BASE
          formatting:
            value: AUTO
            mode: BASE
          color:
            mode: AUTO
          dbDataType: Int64
          showName: true
          displayCondition:
            mode: DISABLED
          filters: []
          onClick: []
        - name: Sales Amount
          value:
            mode: TEMPLATE
            tableName: sale
            columnName: Sales Amount
            templateName: sum
          format:
            value: NUMBER
            mode: BASE
          formatting:
            mode: TEMPLATE
            value: "#,###[$]"
          color:
            mode: BASE
            value: "#6636c0"
          dbDataType: Float64
          showName: true
          displayCondition:
            mode: DISABLED
          filters: []
          onClick: []
        - name: Profitability
          value:
            mode: FORMULA
            formula: (sum("sale"."Sales Amount")  - sum("sale"."Cost of Goods Sold")) /
              sum("sale"."Sales Amount") * 100
          format:
            value: NUMBER
            mode: BASE
          formatting:
            value: x.x[%]
            mode: BASE
          color:
            mode: BASE
            value: "#ff9f43"
          dbDataType: Float64
          showName: true
          displayCondition:
            mode: DISABLED
          filters: []
          onClick: []
      stateName: null
      filters: []
      sorting: []
      measuresTextWeight: NORMAL
      measuresTextSize: 30
      alignment: FULL
      ignoreFilters: false
      maxRowsName: 1
      paddings: 8
      markdownTextSize: 14
      orientation: HORIZONTAL
      measuresNamePosition: TOP
      measuresNameSize: 12
      textAlignment: CENTER
    localApiVersion: "3"

Was the article helpful?

Yes
No
Previous
Percentage KPI
We use cookies to improve our website for you.