Pivots

Pivots let you analyze different subsets of your dataset query results using analytical features such as data dimensions, measures, filters, and report styles. You can only create pivots using fields that have been added to the underlying dataset.

For more information about pivots in SuiteAnalytics Workbook, see Workbook Pivot Tables.

To create a pivot, use workbook.createPivot(options). This method creates a workbook.Pivot object. When you use this method, you must provide the following parameters:

          var myPivot = workbook.createPivot({
    columnAxis: myColumnAxis,
    dataset: myDataset,
    id: 'MyPivot',
    name: 'My Pivot',
    rowAxis: myRowAxis
}); 

        

Optionally, you can provide the following parameters for workbook.createPivot(options):

          var myPivot = workbook.createPivot({
    aggregationFilters: myAggregationFilters,
    columnAxis: myColumnAxis,
    dataset: myDataset,
    filterExpressions: myFilterExpressions,
    id: 'MyPivot',
    name: 'My Pivot',
    portletName: 'My Pivot as a Portlet',
    reportStyles: [myFirstReportStyle, mySecondReportStyle],
    rowAxis: myRowAxis
}); 

        

Related Topics

General Notices