PivotIntersection Object Members Reference for SuiteScript
The PivotIntersection object in SuiteScript provides crucial members for managing pivot data intersections, enhancing data analysis capabilities.
The PivotIntersection object is essential for handling data intersections within pivot tables in NetSuite's SuiteScript. Understanding its members allows developers to work effectively with data dimensions and measure values in reports and analytics.
What Is the PivotIntersection Object?
The PivotIntersection object represents the intersection of rows and columns in a pivot table. It is particularly useful in data analysis scenarios where multiple dimensions are evaluated simultaneously. When calling the Workbook.runPivot(options) method, an array of PivotIntersection objects is returned, enabling developers to access specific data efficiently.
Key Members of the PivotIntersection Object
The following table outlines the primary members available within the PivotIntersection object:
| Member Name | Return Type / Value Type | Supported Script Types | Description |
|---|---|---|---|
| PivotIntersection.column | workbook.DataDimensionValue or workbook.SectionValue | Server scripts | The value for the column dimension. |
| PivotIntersection.measureValues | workbook.MeasureValue[] | Server scripts | An array of measure values at the intersection. |
| PivotIntersection.row | workbook.DataDimensionValue or workbook.SectionValue | Server scripts | The value for the row dimension. |
Properties and Behavior
- Column and Row Properties: Both the column and row properties yield a
workbook.DataDimensionValueorworkbook.SectionValue, providing insights into specific data points within the pivot's structure. - Measure Values: The
measureValuesproperty returns an array of MeasureValue objects, representing numerical data calculated at the intersection point, crucial for detailed analytics.
Error Handling
When working with the PivotIntersection object, it's important to note that attempting to modify a property after the object has been created will result in a READ_ONLY_PROPERTY error. This ensures data integrity during processing and analysis.
Conclusion
Utilizing the PivotIntersection object effectively can yield deeper insights into business data, making it a pivotal component for developers working in SuiteScript on analytics and reporting tasks.
Key Takeaways
- The PivotIntersection object aids in data analysis by representing row-column intersections in pivot tables.
- Key members include
column,row, andmeasureValues, each serving distinct data functions. - Understanding read-only properties is essential to avoid common errors in scripting.
Frequently Asked Questions (4)
Can the properties of a PivotIntersection object be modified after initialization?
What are the main properties of the PivotIntersection object useful for analytics?
Which script types support the PivotIntersection object?
What does the measureValues property of the PivotIntersection object return?
Was this article helpful?
More in SuiteScript
- SuiteScript 2.1 Enhancements in NetSuite February Updates
SuiteScript 2.1 now supports async features and PATCH method. Discover the latest API and SuiteProcurement improvements.
- Scheduling Map/Reduce Script Deployments in NetSuite
Learn to schedule map/reduce script submissions, including one-time and recurring options in NetSuite.
- Binary File Support in N/https Module for SuiteScript
SuiteScript enhances capabilities with binary file support in the N/https module, allowing improved data handling in external communications.
- API Governance Units Calculation in NetSuite 2026.1
NetSuite 2026.1 introduces examples illustrating API governance unit calculations for both user event and scheduled scripts.
