View on GitHub

dotnet-eud

.NET Controls End-User Documentation

Conditional Formatting

The Dashboard Designer provides the capability to apply formatting to dashboard item elements whose values meet the specified condition. This feature allows you to highlight specific elements using a predefined set of rules.

To learn more about specifics of using a conditional formatting feature for different dashboard items, see the following topics.

BlogDashboard_ConditionalFormatting

The current topic describes the following common concepts.

Conditional Formatting Overview

Comparison rules used in conditional formatting can be divided into the following groups.

You can create comparison rules for measures or dimensions. The list below shows format conditions that can be applied to different types of data items.

Create a Format Rule

To create a new rule used to apply formatting according to the required condition, do the following.

  1. Choose a measure/dimension by whose values a format condition will be calculated. Click the measure/dimension menu button, select Add Format Rule and choose the condition.

    AddFormatRule_ValueItem

  2. This invokes the dialog that depends on the selected format condition and the type of dashboard item. For instance, the image below displays the Greater Than dialog corresponding to the Value format condition for the Grid dashboard item.

    GreaterThanDialog

    In this dialog, specify settings specific for the selected condition (for instance, specify a value to compare with dimension/measure values). To learn more, see the documentation for the required condition.

  3. Specify appearance settings applied to elements whose values meet the specified condition.
  4. Specify the data item to whose values conditional formatting is applied using the Apply to combo box. Thus, you can create a format rule for one data item and apply new appearance settings to the other data item. You can also create format rules for hidden measures and apply formatting to values of visible data items.

    [!NOTE] Different dashboard items can provide additional capabilities for creating a new format rule. To learn more, refer to documentation for the required dashboard item.

Specify Appearance Settings

When creating a new format rule, you can select the required appearance settings applied according to the current format condition. All format conditions allow you to customize appearance settings in a similar manner. For instance, the Value format condition allows you to specify appearance settings in the following way:

Edit a Format Rule

To edit format rules for the selected dashboard item, click the Edit Rules button in the Home ribbon tab.

EditRules_Ribbon

As an alternative, use the Edit Rules data item’s menu item or the corresponding item in the dashboard item’s context menu.

EditRulesMenuItem

This invokes the Edit Rules dialog containing existing format rules for this dashboard item.

EditRulesDialog

This dialog allows you to perform the following actions.

To clear all rules for the specified data item, use the Clear Rules button in the data item’s context menu.