Pivot Tables: To Create a Pivot Table on a Filter Tab

In this activity, you will learn how to create a pivot table as a filter tab and share it with other users.

Attention: This activity is based on the U100 dataset. If you are using another dataset, or if any system settings have been changed in U100, these changes can affect the workflow of the activity and the results of the processing. To avoid any issues, restore the U100 dataset to its initial state.

Story

Suppose that you are a technical specialist in your company who is working on simple customizations, including the creation and modification of generic inquiry forms and pivot tables. A warehouse manager of your company has asked you to create a pivot table that groups stock keeping units (SKUs) by item class and shows the total number of all units and the number of units in each class. Also, the pivot table should be viewed as a tab of the predefined Stock Items (IN2025PL) inquiry form, which has the IN-StockItem inquiry title and the Stock Items site map title specified on the Generic Inquiry (SM208000) form.

Configuration Overview

In the U100 dataset, the following tasks have been performed for the purposes of this activity:

  • The Inventory and Order Management feature has been enabled on the Enable/Disable Features (CS100000) form to provide support for the stock item functionality.
  • On the Item Classes (IN201000) form, multiple item classes have been defined.
  • On the Stock Items (IN202500) form, multiple stock items have been defined.
  • The Stock Items (IN2025PL) inquiry form, which displays the list of the stock items that have been created on the Stock Items (IN202500) form, has been set up as the substitute form that is opened when you click the Stock Items link in a workspace or a list of search results.

Process Overview

In the activity, on the Stock Items (IN2025PL) generic inquiry form, you will create the requested pivot table and save it as a shared filter tab of this inquiry form.

System Preparation

Launch the MYOB Advanced website, and sign in to a tenant with the U100 dataset preloaded as system administrator Kimberly Gibbs by using the gibbs username and the 123 password.

Tip: The gibbs user is assigned the Administrator role, which has sufficient access rights to manage the system configuration and to modify generic inquiries, advanced filters, pivot tables, and dashboards.

Step 1: Creating the Pivot Table on a Filter Tab

To create the pivot table as a filter tab, do the following:

  1. Open the Stock Items (IN2025PL) generic inquiry form.
  2. In the filtering area of the form, click the More button and then click Save as Pivot.
  3. In the Filter Settings dialog box, which opens, do the following:
    1. In the Filter Name box, type Items by Item Class.
    2. Select the Shared Configuration check box.
    3. Click OK to add the shared filter tab.

    The system opens the newly created tab in edit mode for the pivot table.

Step 2: Configuring the Pivot Table

To configure the pivot table, do the following:

  1. While you are still viewing the Items by Item Class filter tab of the Stock Items (IN2025PL) inquiry form in edit mode, to configure the rows of the pivot table, add fields to the pivot table as follows:
    1. Drag Item Class from the Fields pane to the Rows pane. The identifiers of the item classes will be displayed as row headers in the pivot table.
    2. Drag Inventory ID from the Fields pane to the Rows pane as a second row after Item Class. This will group stock items that belong to the same item class.
  2. In the Rows pane, click Item Class to display its properties in the Properties pane, and do the following in this pane:
    1. Make sure that the Show Total check box is selected. With this setting, the system will add the Total row at the bottom of the table, which will display the total number of items in stock for all item classes.
    2. Type Total SKUs in the Total Label box. With this setting, the system will change the caption for the Total row at the bottom of the table.
    3. Select the Collapsed check box. With this setting, the system will collapse item class groups by default.
  3. In the Rows pane, click Inventory ID to display its properties in the Properties pane. In this pane, clear the Show Total check box. The total number of stock items in a class will be displayed with the collapsed groups of item classes.
  4. To configure the values of the pivot table, add fields to the pivot table as follows:
    1. Drag Inventory ID from the Fields pane to the Values pane. The pivot table will display the number of SKUs aggregated by item class.
    2. While Inventory ID is selected in the Values pane, in the Properties pane, clear the Show Total check box.
  5. In the filtering area, click Edit Pivot Table to switch to view mode.

    The system will display the pivot table, which aggregates SKUs by item class. Item class groups are collapsed by default, and the total number of SKUs in the group is displayed in the Total column. The Total SKUs row is added at the bottom of the table and shows the total number of stock keeping units available. A user can expand a particular group by clicking the plus sign next to a group name or click the Expand All button at the bottom of the form (shown in the following screenshot) to expand all groups at once. The button next to Expand All is the Collapse All button.

    Figure 1. A pivot table with the groups collapsed