Aaron McCausland
10/28/2025, 9:15 PMCeligo AI
10/28/2025, 9:16 PMAI generated answer (using internal Slack threads):To get the maximum of a column in a SuiteAnalytics Dataset, you can use the
Column.aggregate function in combination with Column.groupBy. The Column.aggregate function allows you to perform aggregate operations such as SUM, COUNT, AVG, MIN, MAX, etc., on a column in a dataset.
Here is a sample code snippet:
javascript
var myColumn = myDataset.columns[0];
myColumn.aggregate = 'MAX';
In this example, myDataset.columns[0] is the column you want to get the maximum value from. The aggregate property is set to 'MAX' to get the maximum value.
Remember to group your data appropriately using Column.groupBy to ensure you're getting the maximum value within the correct context. For example, if you're looking for the maximum quantity sold per item, you would want to group by the item.
Please note that this is a JavaScript example using SuiteScript, which is the scripting language used in NetSuite. If you're not familiar with SuiteScript, you may want to look into the NetSuite Help Center or SuiteAnswers for more information.
******
Disclaimer:
This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes.
******Celigo AI
10/28/2025, 9:16 PMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.800720215
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.800170958
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.799987853
Celigo AI
10/28/2025, 9:16 PM