workbook.Measure
Object Description |
A measure object which can be used when you create a section, a conditional filter, or a measure sort. Use workbook.createMeasure(options) to create this object. A measure object is used as a parameter in the workbook.createConditionalFilter(options), workbook.createDataDimension(options), workbook.createMeasureSort(options), workbook.createSection(options), workbook.createSortByDataDimensionItem(options) workbook.createSortByMeasure(options), methods. |
Supported Script Types |
Server scripts For more information, see SuiteScript 2.x Script Types. |
Module |
|
Methods and Properties |
|
Since |
2020.2 |
Syntax
The following code sample shows the syntax for this member. It is not a functional example. For a complete script example, see N/workbook Module Script Samples. Also see Full scripts in the Tutorial: Creating a Workbook Using the Workbook API topic.
// Add additional code
...
var myMeasure = workbook.createMeasure({
expression: myExpression,
aggregation: workbook.Aggregation.COUNT,
label: 'My Measure'
});
...
// Add additional code