The KPI Card
widget allows you to measure trends through key performance indicators (KPIs) such as value and goal. Key metrics like revenue vs investment, target vs current value, and stocks vs demand are typically displayed in the KPI Card widget.
The visualization of the KPI card widget is customizable, and you can format the values displayed in the widget using the provided options.
KPI Card series view:
KPI card single view:
NOTE: Before adding the card widget to the design layout, ensure that you have created the data source. You can refer to this section to learn how to create a new data source.
IMPORTANT: In order to showcase a KPI Card, a minimum requirement of both actual and target values is necessary.
After creating a data source, follow the steps below to configure the data into the card widget:
KPI Card
control icon from the toolbox into the design panel. You can find the control in the toolbox by searching.properties
button as shown in the image.properties pane
will now open.ASSIGN DATA
. The data pane will open with the list of available measures
and dimensions
from the added data sources.Drag the required field into the Actual Values
section.
You can adjust aggregation type
, filter
, and format
the data using options in the settings menu. To open the settings
menu, click the settings
icon.
Now, the menu will be shown.
Changing the aggregation type:
You can change the summary type of the dropped measure field by clicking the summary types listed in the menu. Refer to the Aggregating Value Columns for more details on aggregation types.
Measure filtering:
You can use the Filter
option to filter the data by specifying the filter condition. Refer to this page for detailed instructions on how to apply the measure filter.
Measure formatting
Select the Format
option to define the display format for the values in the column using the Measure Formatting window. To learn more about measure formatting, refer to the measure format.
Drag the required field into the target value
section.
Now the KPI card widget will be rendered.
NOTE: The measure formatting option is not provided in the Target Value’s settings menu, and the measure formatting applied for the actual value will also be applied to the target value.
Drag a dimension field into the series section to render a series of KPI Cards.
Now, the KPI card will be rendered as shown in the following image.
You can filter and sort the records using the settings menu items.
Sorting: You can customize the sorting
behavior of dimension fields in the KPI Card widget. You can also order them based on alphabet or value, data source (default), or field. Refer to the Sort for detailed steps.
Refer to this page to learn how to apply measure filter.
Filtering: You can use the Filter
option to filter
the data by specifying the filter condition.
Refer to this page to learn how to apply measure filter.
You can use the Sparkline
section to showcase the variation of measurement in the KPI Card widget.
The image
section allows you to configure the image data for each KPI card or records. The image data may be the direct URL for the records or contain a part of the URL.
In the following example, each country flag is displayed in the KPI card by configuring the Country Image field. The Country Image column from the data source contains the full URL of the country flag.
Data screenshot
Follow the given steps to display the country image in the KPI card series:
Country Image
field into the Image
section.pattern
text is properly updated in the Properties
pane image section.If your data source contains partial data of the URL, you need to enter the URL text with the proper patterns.
For example, consider the following data source:
It contains the Players name and part of their image URL in the above columns.
The full image URL for Cristiano Ronaldo
is https://upload.wikimedia.org/wikipedia/commons/thumb/8/8c/Cristiano_Ronaldo_2018.jpg/345px-Cristiano_Ronaldo_2018.jpg
and the Player Image Column contains the information is commons/thumb/8/8c/Cristiano_Ronaldo_2018.jpg/345px-Cristiano_Ronaldo_2018.jpg
. So you need to enter the URL as https://upload.wikimedia.org/wikipedia/{0}
Where the {0} indicates the first field in the Image
IMPORTANT: 1) You can add any number of fields in the image section and need to append {0}, {1} for the first, second fields configured in the image section. IMPORTANT: 2) If more than one data is available for the record, the first record with the highest measure will be used to display in the KPI Card widget.
For example, if you try to show the goals of each team and configure the player image in the image section, it will show the top scorer image of each team as shown in the following screenshot.
Configure Image section:
Ensure pattern
Series view
NOTE: The image will be hidden automatically if the width of the KPI card is low. An information icon will display the image as highlighted in the following image.
Like the image option, you can configure the background image of the KPI Card.
You can format the KPI Card for better illustration of the view through the settings available in the Properties tab.
To format the KPI card, follow the given steps:
Drag the KPI card into the canvas and resize it to your required size.
Configure data into the KPI card.
Focus the KPI card and click the settings icon.
This option allows you to change the title
for the KPI card.
This option allows you to provide the subtitle
for the KPI card.
NOTE: Subtitle will be shown only when the series section is configured.
This option allows you to provide the description
about the KPI Card.
Header properties
KPI card with the customized title, subtitle and description
This option allows you to toggle the visibility of the tooltip in a card.
You can set the value label status to High is Good
or Low is Good
. The default setting is High is Good
. This option is enabled only when you configured the actual value and target value.
You can customize the color values for the high, medium,
and low
colors using the provided color pickers.
Allows you to change the separator
color.
By enabling the advanced settings
in formatting, you can customize the color, styles, and highlight the data based on the conditional range values.
In the properties pane, check the Advanced Setting
check box located under the formatting
section.
This will open the Conditional Formatting
dialog box.
You can customize more than one property using the rule-based conditional formatting:
You can choose the field from the Based On section to apply the conditions from the highlighted drop-down.
You can select the summary type for the selected measure field.
The value type drop-down allows you to choose whether you are going to apply the direct value (specific number like 3 goals, order ID 10248) or percentage (values above 30% or 50%).
You can give a meaningful name to the applied conditions using the highlighted text box.
Choose the condition for the measure field from the highlighted conditions.
If you have selected the dimension as a based-on field and want to use text condition, the following text-based conditions are available.
NOTE: The text-based condition type will be enabled only when the dimension configured in the series field is used as the based-on field.
Enter the condition value.
Allows you to choose the title font style (Bold, Italic, Underline, and Superscript).
For dimensions, a case-sensitive
option is provided to choose whether the entered value is case-sensitive or not.
Select the checkbox provided near the options to customize the properties, and click Font Style icons for applying them.
Figure: The KPI card series view with the applied conditional formatting.
Allows you to choose whether the title needs to be shown or not in the KPI Card.
The following screenshot shows the title
for single card.
It allows you to hide the title
by unchecking the show title property.
You can enter the value for the KPI card title.
Allows you to choose the KPI Card title value color.
On enabling this property, the font size of the KPI card title varies based on the screen resolution.
Use Case:
If we have created a dashboard with KPI card which can be viewed by different clients of different screen resolution and we wants the title to be adjusted with respect to their resolution then we can use this option.
You can customize the font size of the KPI card title by unchecking Auto Font Size
.
Figure: KPI card with customized title color and font size.
The Series settings
option enabled only when you configure the series in Assigned Data
tab.
If you enable the Fixed rows and columns, you can customize the rows and columns based on the container size and the card size of the KPI card.
By enabling Row Count
, you can set the count of the rows.
By enabling the Column Count,
you can set the column count.
Note: If invalid columns and rows are given, the rows and columns reset to their default value. For example: If you give the number of rows as 6 and number of columns as 5 but your data count is only 20, the rows and columns will reset to their default value.
It animates the measure values when you enable the Enable Animation
.
The animation duration property specifies how long the animation cycle should last. The time can be specified in seconds or milliseconds.
This option allows you to toggle the visibility of the KPI value
in the KPI card.
The type drop-down menu allows you to select the value that should be displayed as the KPI value. The available options are:
Figure: KPI card with different KPI types.
This feature allows you to customize the color of the KPI value.
On enabling this property, the font size of the KPI card title varies based on the screen resolution.
Use Case:
If we have created a dashboard with KPI card which can be viewed by different clients of different screen resolution and we wants the title to be adjusted with respect to their resolution then we can use this option.
Provides the option to change the KPI value font size by unchecking Auto Font Size
.
This feature allows you to toggle the visibility of icons
for the KPI values.
Provides the option to customize the icon colors.
Direction color: The colors from the direction settings will be applied.
Custom color: You can customize the color values for the High, Medium
, and low
colors using the provided color pickers.
You can customize the indicator for the high, low, and neutral
values from the set of different indicators.
Figure: Selecting the shape for the indicators.
Figure: After customizing the indicator
On enabling this property, the font size of the KPI card title varies based on the screen resolution.
Use Case:
If we have created a dashboard with KPI card which can be viewed by different clients of different screen resolution and we wants the title to be adjusted with respect to their resolution then we can use this option.
Provides the option to change the font size of the indicators by unchecking Auto Font Size
.
The type drop-down allows you to choose the value, which needs to be shown as the left side value. The available options are:
Allows the options to toggle the visibility of the left value.
Provides the option to customize the left value colors.
The colors from the direction settings will be applied.
You can customize the left value color using the provided color pickers.
On enabling this property, the font size of the KPI card title varies based on the screen resolution.
Use Case:
If we have created a dashboard with a KPI card that can be viewed by different clients with different screen resolutions and we want the title to adjust with respect to their resolution, then we can use this option.
The option to change the left value font size by unchecking Auto Font Size
.
Allows you to choose whether to show the caption for the left value or not.
Provides the option to modify the caption for the left value.
Provides the option to customize the left value caption colors.
From the provided color pickers, you can customize the right value caption color.
On enabling this property, the font size of the KPI card title varies based on the screen resolution.
Use Case:
If we have created a dashboard with KPI card which can be viewed by different clients of different screen resolution and we wants the title to be adjusted with respect to their resolution then we can use this option.
The option to change the left value caption font size by unchecking Auto Font Size
.
After customizing the Left Value in KPI card
The type drop-down allows you to choose the value that needs to be shown as the right-side
value. The available options are:
Allows the options to toggle the visibility of the right value.
Provides the option to customize the right value colors.
The colors from the direction settings will be applied.
You can customize the right value caption color using the provided color pickers.
On enabling this property, the font size of the KPI card title varies based on the screen resolution.
Use Case:
If we have created a dashboard with KPI card which can be viewed by different clients of different screen resolution and we wants the title to be adjusted with respect to their resolution then we can use this option.
The option to change the right value font size by unchecking Auto Font Size
.
Allows you to choose whether to show the caption for the right value or not.
Provides the option to modify the caption for the right value.
Provides the option to customize the right value caption colors.
You can customize the right value caption color using the provided color pickers.
On enabling this property, the font size of the KPI card title varies based on the screen resolution.
Use Case:
If a dashboard with a KPI card is viewed by clients with different screen resolutions and the title needs to adjust accordingly, this option can be used.
The option to change the right value caption font size by unchecking Auto Font Size
.
After customizing the Right Value in KPI card
Provides the option to change the visibility of the image within the KPI Card widget.
Allows you to choose the image mode.
Default - Displays the image in its original size.
Fill - Fills the image in the available space.
Uniform to fill - Fills the image uniformly in the space. But, the image gets clipped, if it is larger than control.
Uniform - Sets the image size proportionally (without clipping) to fit to the widget area.
Provides three different options to select the image source:
Browse Image: Selects the image from the local
disk.
Direct URL: Enter the URL
of the image source.
Pattern: Enter the URL consists of pattern text {0}
denoting the fields configured in the image data section.
After customizing the Image in KPI card
Provides the option to change the visibility of the background image within the KPI Card widget.
Allows you to choose the image mode from the options Default, Fill, Uniform to fill, and Uniform
.
Provides the following three different options to select the image source.
Browse Image: Selects the image from the local
disk.
Direct URL: Enter the URL
of the image source.
Pattern: Enter the URL which consists of pattern text {0}
denoting the fields configured in the image data section.
Allows you to choose the background color for the KPI Card widget.
NOTE: If both the background image and background color are enabled in the widget, then based on the transparency of the background image and the selected image mode, either the background image alone will appear in the widget or both the background color and image will appear in the KPI Card.
You can change the transparency of the color.
After customizing the Image in KPI card
Provides the option to choose whether to show the sparkline in the KPI Card or not.
Allows you to customize the sparkline color in the KPI Card.
You can change the opacity of the sparkline color.
You can enable linking and configure to navigate to a general URL with or without parameters. For more details, refer to linking URLs.
The KPI Card widget can be set to act as a master widget by checking the Act as Master Widget
checkbox. Enabling the Ignore Filter Actions
checkbox allows the KPI card widget not to be filtered by any other master widgets during the interaction time in both preview and published modes.
NOTE: The Act as Master Widget checkbox will be enabled only when the Series section is configured.
You can create fixed target value and actual value in KPI Card using expressions.
The following steps illustrates how to add the fixed value:
fx expression
in the Assign Data.Save
.Value(s)
section.Fixed Value for Number card
On enabling Auto Font size, the font size of the title will be adjusted automatically if the resolution of the screen varies.
Font Size
This allows you to apply the specified font size to the widget title, if the Title Auto Font Size
is disabled. The value ranges between 10 and 44.
On enabling Auto Font size, the font size of the subtitle will be adjusted automatically if the resolution of the screen varies.
Font Size
This allows you to apply the specified font size to the widget title, if the Subtitle Auto Font Size
is disabled. The value ranges between 10 and 32.
This allows you to toggle the visibility of the border that surrounds the widget.
This allows you to apply the specified radius to the widget corners, if the Show Border
is enabled. The value ranges between 0 and 10.
This allows you to enable or disable the widget title of the KPI Card widget.
The visibility of the maximize icon
in the widget header will be defined based on the settings in the viewer.
This allows you to enable or disable the CSV export
option for the KPI Card widget. Enabling this allows you to export the summarized data of the widget view to CSV format in the viewer.
This allows you to enable or disable the Excel export
option for the KPI Card widget. Enabling this allows you to export the summarized data of the widget view to (.xlsx or .xls)
format in the viewer.
This allows you to enable or disable the image export
option for the KPI Card widget. Enabling this allows you to export the view of the widget to image format (.jpg), (.png), or (.bmp)
in the viewer.
This allows you to enable or disable the PDF export
option for the KPI Card widget. Enabling this allows you to export the view of the widget to pdf format in the viewer.
This allows you to enable or disable comment
for the dashboard widget. For more details, refer to the Commenting Widget.
This allows you to visualize the raw data associated with a widget at runtime.
This allows you to pin the widget.
Blog post - Turn on Insights Using the Right Card Widget
We hide the widget elements based on the size of the widget for better readability.
Depending on the size of the widget, the card will be displayed either in Default or Horizontal or Vertical Layout.
When the card width is more than ‘447 px’ and its height is less than ‘296 px’, the card will be shown in a horizontal layout.
When the card height is more than ‘296 px’, the card will be shown in a vertical layout.
If the size of the card does not have enough space to show all the elements, it will hide the elements with respect to the size based on the following order: Sparkline, Actual and Target value container. The card title is shown in the image.