measures

Gets or sets the measures configuration.

Parameters

val Array

The measures configuration. Accepts the same values as the measures option.

Returns

Array—The current measures configuration.

Example - set the measures

<script>
var dataSource = new kendo.data.PivotDataSourceV2({
  type: "xmla",
  transport: {
    connection: {
        catalog: "Adventure Works DW 2008R2",
        cube: "Adventure Works"
    },
    read: "https://demos.telerik.com/olap/msmdpump.dll"
  }
});

dataSource.measures(["[Measures].[Internet Order Lines Count]"]);
</script>

Example - get the measures

<script>
var dataSource = new kendo.data.PivotDataSourceV2({
  type: "xmla",
  measures: ["[Measures].[Internet Order Lines Count]"],
  transport: {
    connection: {
        catalog: "Adventure Works DW 2008R2"
    },
    read: "https://demos.telerik.com/olap/msmdpump.dll"
  }
});

var measures = dataSource.measures();
/* The result can be observed in the DevTools(F12) console of the browser. */
console.log(measures);// [{ name: "[Measures].[Internet Order Lines Count]" }]
</script>
In this article