The Dashboard Designer provides you with the capability to apply formatting to dashboard item elements whose values meet a specified condition. This feature allows you to highlight specific elements using a predefined set of rules.
To learn more about the specifics of using a conditional formatting feature for different dashboard items, see the following topics.
The current topic describes the following common concepts.
Comparison rules used in conditional formatting can be divided into the following groups.
You can apply conditional formatting to measure or dimension values. The table below lists format conditions that can be applied to different types of data items.
Supported Format Conditions
Value with the condition type set to Equal To, Not Equal To or Text that Contains
A Date Occurring for dimensions with the continuous date-time group interval
To create a new rule used to apply formatting according to the required condition, do the following.
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.
This invokes the dialog that depends on the selected format condition and the type of the dashboard item. For instance, the image below displays the Greater Than dialog corresponding to the Value format condition for the Grid dashboard item.
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.
Specify the data item and its values to which 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.
Different dashboard items can provide additional capabilities for creating a new format rule. To learn more, refer to documentation for the required dashboard item.
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.
The Appearance tab allows you to choose the predefined background color/font.
The Icons tab allows you to add the predefined icon.
Use the Custom Appearance area in the Appearance tab to add presets containing custom appearance settings. To add a new preset, click an empty square. This invokes the Custom Style Settings dialog, allowing you to specify the required appearance settings.
In this dialog, you can specify the background/foreground colors and font settings. Click Create to add a preset. The created preset will be displayed in the Custom Appearance area.
To edit format rules for the selected dashboard item, click the Edit Rules button in the Home ribbon tab.
As an alternative, use the Edit Rules data item's menu item or the corresponding item in the dashboard item's context menu.
This invokes the Edit Rules dialog containing existing format rules for this dashboard item.
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.
Dashboard items that support conditional formatting expose the FormatRules property providing access to a collection of the DashboardItemFormatRule descendants.
To create a new rule, do the following.
Finally, add the created format rule to the FormatRules collection exposed by the dashboard item. To learn more, see the Conditional Formatting topic for the required dashboard item.