Pivots

Pivots help you analyze specific parts of your dataset using features like dimensions, measures, filters, and report styles. To create a pivot, you need to use fields that are already part of the underlying dataset.

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

You can create a pivot using workbook.createPivot(options). This method creates a workbook.Pivot object. To create a pivot, you'll need to provide these required parameters:

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

        

You can also provide these optional 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