New to Kendo UI for jQueryStart a free 30-day trial

Measures

methods

Gets or sets the measures configuration.

Parameters:valArray

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

Returns:Array

—The current measures configuration.

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

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

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>
Not finding the help you need?
Contact Support