Back to Devexpress

MultiDimensionalData.GetValue(MeasureDescriptor) Method

dashboard-devexpress-dot-dashboardcommon-dot-viewerdata-dot-multidimensionaldata-dot-getvalue-x28-devexpress-dot-dashboardcommon-dot-viewerdata-dot-measuredescriptor-x29.md

latest3.7 KB
Original Source

MultiDimensionalData.GetValue(MeasureDescriptor) Method

Gets the summary value for the specified measure.

Namespace : DevExpress.DashboardCommon.ViewerData

Assembly : DevExpress.Dashboard.v25.2.Core.dll

NuGet Package : DevExpress.Dashboard.Core

Declaration

csharp
public MeasureValue GetValue(
    MeasureDescriptor measure
)
vb
Public Function GetValue(
    measure As MeasureDescriptor
) As MeasureValue

Parameters

NameTypeDescription
measureMeasureDescriptor

A MeasureDescriptor object that contains the measure metadata.

|

Returns

TypeDescription
MeasureValue

A MeasureValue object that contains the measure value and display text.

|

Remarks

Use the MultiDimensionalData.GetMeasures method to obtain measures available in the current MultiDimensionalData object.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the GetValue(MeasureDescriptor) method.

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.

wpf-dashboard-how-to-embed-devexpress-control/CS/GanttSample/GanttViewModel.cs#L85

csharp
keys.Add(currentKey);
data.GetSlice(row).GetValue(measures[0]);
tasks.Add(new GanttTask() {

wpf-dashboard-how-to-embed-devexpress-control/VB/GanttSample/GanttViewModel.vb#L95

vb
keys.Add(currentKey)
data.GetSlice(row).GetValue(measures(0))
tasks.Add(New GanttTask() With {.Id = keys.IndexOf(currentKey), .ParentId = keys.IndexOf(parentKey), .Name = row.GetDimensionValue(dimension).DisplayText, .Start = DirectCast(data.GetSlice(row).GetValue(measures(0)).Value, Date), .Finish = DirectCast(data.GetSlice(row).GetValue(measures(1)).Value, Date)})

See Also

GetMeasures()

MultiDimensionalData Class

MultiDimensionalData Members

DevExpress.DashboardCommon.ViewerData Namespace