dashboard-devexpress-dot-dashboardcommon-dot-kpielement-6569df61.md
Gets or sets a measure that provides data for calculating the target value.
Namespace : DevExpress.DashboardCommon
Assembly : DevExpress.Dashboard.v25.2.Core.dll
NuGet Package : DevExpress.Dashboard.Core
public Measure TargetValue { get; set; }
Public Property TargetValue As Measure
| Type | Description |
|---|---|
| Measure |
A Measure object that provides data for calculating the target value.
|
The KpiDashboardItem<TKpiElement> descendants, such as the CardDashboardItem or GaugeDashboardItem, are used to present KPI data. These dashboard items display a number of individual elements (cards and gauges respectively) that show the difference between the actual and target values of a particular parameter. To provide data for each of these elements, you need to specify a pair of measures, where one of these measures contains data used to calculate the actual value, and the other provides data for the target value.
Use the TargetValue property to specify a measure that will be used to calculate the target value. To specify a measure for the actual value, use the KpiElement.ActualValue property.
The following code snippets (auto-collected from DevExpress Examples) contain references to the TargetValue property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.
winforms-dashboard-bind-card-item-to-data-in-code/CS/DXApplication1/ViewerForm1.cs#L38
card.ActualValue = new Measure("RevenueQTD (Sum)");
card.TargetValue = new Measure("RevenueQTDTarget (Sum)");
cards.Cards.Add(card);
wpf-dashboard-olap-data-provider/CS/WpfDashboard_OlapDataProvider/MainWindow.xaml.cs#L42
card.ActualValue = new Measure("[Measures].[Internet Sales Amount]");
card.TargetValue = new Measure("[Measures].[Sales Amount]");
cardItem.Cards.Add(card);
winforms-dashboard-bind-card-item-to-data-in-code/VB/DXApplication1/ViewerForm1.vb#L36
card.ActualValue = New Measure("RevenueQTD (Sum)")
card.TargetValue = New Measure("RevenueQTDTarget (Sum)")
cards.Cards.Add(card)
wpf-dashboard-olap-data-provider/VB/WpfDashboard_OlapDataProvider/MainWindow.xaml.vb#L37
card.ActualValue = New Measure("[Measures].[Internet Sales Amount]")
card.TargetValue = New Measure("[Measures].[Sales Amount]")
cardItem.Cards.Add(card)
See Also