Filter a NetSuite Workbook Pivot to One Quarter and Split It by Month

Build a sales-order pivot in a NetSuite workbook, filter it to one year and quarter, split the quarter into months, group customers under their sales rep and add a Grand Total column.

The quick answer

In a workbook on a sales-order dataset, choose Pivot and drag the amount into Measures, Entity into Rows and Date into Columns. The date starts at Date (Year). Filter that level to 2021, click the plus to add Date (Quarter) and filter it to 4, then click the plus again to add Date (Month). Drop Sales Rep on Entity to group customers under each rep, choose Show Grand Total on a column field, and Save.

The screenshots show sample data. The company, person, dataset, sales reps, customers and amounts are fictional. The layout, defaults and wording described here were observed in one account and release, so check them against your own.

Before you start

A pivot reads its rows from a dataset. This guide starts from a Transaction dataset called Transaction Dataset whose criteria keep only sales orders (Type is Sales Order). Its fields are Date, Document Number/ID, Entity, Sales Rep, Total Amount (Transaction Currency), Transaction and Type. It is already open in a new workbook; building the dataset is not repeated here.

SuiteAnalytics Workbook must be enabled in the account, and your role needs access to it and to the Transaction record and fields the dataset uses. The pivot only shows what that role is allowed to see, and fields, menu labels and defaults vary with role, enabled features, subsidiary restrictions and release.

Check two things in your own dataset before you trust the totals. Total Amount (Transaction Currency) is each order's amount in its own currency, not a consolidated one, so summing orders in different currencies gives a mixed figure; limit the dataset to one currency or convert the amounts first. And the dataset needs one row per order: joining one-to-many records such as transaction lines repeats an order total on every line.

01. Choose a pivot

On Choose visualization type for current dataset click Pivot, the middle of the three choices after Table and before Chart. The Layout panel opens with three empty drop areas: Rows, Columns and Measures.

Click Pivot to start a pivot on the sales-order dataset.

02. Add the measure, rows and date columns

Drag Total Amount (Transaction Currency) into Measures, Entity into Rows and Date into Columns. The amount becomes a Sum, each customer is a row, and Date (Year) shows one column for 2021 and one for 2022.

A date field starts at the year level. When you drop Entity, NetSuite can ask how to show its parent-child hierarchy in a Configure hierarchy dialog; the default, Show child level only, is the choice to keep here. That dialog was not part of the recording.

Customers in rows, with a Total Amount column for 2021 and one for 2022.

03. Filter the year to 2021

Open the menu of Date (Year) in the Layout panel and choose its filter entry, which opens the Filter Date (Year) dialog. In the account reviewed that entry reads Filter Date (Year); in the live 26.2 release it sits under Filter Date, next to an Advanced choice. Click 2021 to move it to the selected values on the right and click Apply.

The dialog also has Add all and Remove all links, an any of dropdown, a search box over each list, and Cancel and Reset buttons. After Apply the filter bar reads 1 filter applied with Date (Year) any of 2021, and only the 2021 column is left.

2021 sits in the selected values; Apply keeps only that year.

04. Add the quarter level and filter it to 4

Click the plus beside Date (Year) in Columns to add Date (Quarter). Open its menu, choose its filter entry to open Filter Date (Quarter), click 4 and click Apply.

The filter bar now reads 2 filters applied, joined by AND: Date (Year) any of 2021 and Date (Quarter) any of 4. The pivot keeps only Q4, so its totals cover the orders dated in the fourth quarter of 2021, not every order shown under a Q4 heading.

These two filters are value filters on the date levels, which is why they combine. The field menu in the live release also has an Advanced choice under Filter Date for a date range. A visualization takes only one date-range filter, so if you would rather filter once, use one range of 1 October to 31 December 2021 and then add the month level.

Two filters joined by AND leave a single Q4 column.

05. Split the quarter into months

Click the plus beside Date (Quarter) to add Date (Month). Under Q4 the pivot now shows the months 10, 11 and 12. A blank cell means that customer had no sales order that month. For example, 523 Dunmore Tooling shows 32,960.97 in month 10, 29,314.44 in month 11 and 22,576.77 in month 12.

The levels are calendar groupings of the transaction date, so the quarter is a calendar quarter, not a fiscal one. If the analysis must follow fiscal quarters or accounting periods, use a period field or an explicit date range instead. An empty cell means no matching orders, not a stored zero.

Month columns 10, 11 and 12 under Q4.

06. Group the rows by sales rep

Drag Sales Rep from the Transaction Dataset panel into Rows and release it on Entity, so Sales Rep sits above Entity in the Layout panel. Each sales rep now opens as a group with that rep's customers underneath. Dorian Walsh has 312 Brightwater Dairy, 381 Evergreen Clinics, 457 Calder Freight and 523 Dunmore Tooling.

Sales Rep here is the value stored on each order. If two orders for one customer carry different reps, that customer appears under each of them.

Each sales rep heads a group of customers.

07. Add a Grand Total column

Open the menu of Date (Year) in the Layout panel and choose Show Grand Total. The menu also lists the sort and Filter Top/Bottom entries, Rename, a Date hierarchy section with Year, Quarter, Month and Day, and Remove. A Grand Total column then totals each row across the months. The Totaling sigma button in the pivot toolbar is the other place to set subtotals and grand totals, and the menu entry can differ by release.

Show Grand Total is on the column field menu.

For 523 Dunmore Tooling the column reads 84,852.18, the sum of its three monthly cells. In the sample the new column header reads Grand Total above the measure name; the exact label may differ in your release. For a Sum measure the grand total adds the qualifying orders, which is why it ties to the cells here. It is recalculated over the underlying rows, so an average, median, ratio or calculated measure does not total the visible cells.

The finished pivot with a Grand Total column.

Check the result

  1. The filter bar reads 2 filters applied: Date (Year) any of 2021 and Date (Quarter) any of 4.
  2. Q4 shows months 10, 11 and 12 and a Grand Total column, and each sales rep groups its customers.
  3. 523 Dunmore Tooling reads 84,852.18, the sum of 32,960.97, 29,314.44 and 22,576.77.

08. Save the workbook

Click Save, type the name Q4 Sales Order Pivot in Save Workbook As: and click Save. The confirmation reads Workbook has been saved, and the workbook title changes to the name you chose.

Name the workbook, then click Save.
The title changes to the saved name and the confirmation appears.

The filters belong to this pivot. They do not change the dataset, which keeps its own criteria. The filter bar shows the active filters and has a Remove all link.

Common questions

How do I filter a NetSuite workbook pivot to one quarter?

Put the date field in Columns or Rows, add the quarter level with the plus beside the year level, open the menu of Date (Quarter), choose its filter entry and pick the quarter. Filter the year as well, because quarter 4 occurs in every year. Alternatively, use one Advanced date-range filter for the quarter.

Why does my pivot start at Date (Year), and how do I add Quarter and Month?

A date field starts at the year level. The plus beside the deepest level adds the next one: quarter, then month, then day. The Date hierarchy section on the field menu lists the same levels. These are calendar levels, not fiscal quarters or accounting periods.

Do the year and quarter filters work together?

Yes. Value filters on two date levels are joined by AND, so the pivot holds orders dated in that quarter of that year, and the totals cover only those orders. A date-range filter is a different kind, and a visualization takes only one of those.

Does a pivot filter change the dataset?

No. The filter applies to this pivot. The dataset keeps its criteria, and Remove all in the filter bar clears the pivot's filters.

Why does one customer appear under two sales reps?

Sales Rep is the value stored on each order, not the rep on the customer record. If a customer's orders carry different reps, the customer shows under each one.