Pivot table reports
FollowWhat a pivot table report is
A pivot table report shows aggregated data in a cross-tab layout: the values of one field make up the rows, the values of another field make up the columns, and the totals sit at the intersections, just like an Excel pivot table.
It is useful when you want to compare a measure across two dimensions at once, for example the sum of compensations by employee (rows) and by year (columns).
Creating a pivot report
You can create a pivot report from two sections:
- Report > Report list: the reports section, where you can create reports only
- User interface > Forms & Views, in the settings that open when you click the gear icon at the top: the configuration section, usually reserved for administrators, where you can create views of any type
The procedure is the same in both sections:
- Open the section and click New
- Enter the View name
- In Type of view select Report, and in View subtype select Pivot table
- In Starting table select the table that holds the data you want to analyse
- Tick Publish if you want other users to see the report as well
- Click Save
After saving, the view design surface opens with three areas:
- Rows: the fields whose values make up the table rows
- Columns: the fields whose values make up the table columns
- Values: the aggregation fields (for example Sum, Count, Average) calculated at the intersections
Drag the fields into the desired areas as in an ordinary report. Only fields with an aggregation function belong in the Values area; fields without aggregation belong in the Rows and Columns areas. If the configuration does not follow this rule, a warning appears when you save and the report is displayed as a plain table.
For the general procedure see also the articles Creating and editing reports and Creating a view.
How the report is displayed
- One column is created for each distinct value of the fields in the Columns area, in ascending order: dates chronologically, numbers from smallest to largest, text alphabetically
- Intersections with no data show 0 for Sum and Count functions, and stay blank for Average, Minimum and Maximum
- Items with no value in the column field are grouped under a Not specified column, shown last
- With two fields in the Columns area, the headers show the combined values on multiple lines
- Pivot reports are not paged: they are always displayed in full
Export and API
Exporting to Excel or CSV reproduces exactly the cross-tab displayed on screen, with the same columns and the same headers.
If you expose the view through the API, REST API v3 returns the same data in the same layout: one property for each column of the cross-tab. The other API versions return the aggregated data row by row instead, without cross-tabulating it. For more information see the article How to expose a view in the API.
Permissions
A pivot table report follows the same rules as any other report: it needs no additional permission or right.
To create or copy a report, your company contract must include custom reports: otherwise, when you save, a message tells you that there are not enough credits to proceed.
From the Report section
You need the permissions on the Report object, assigned to your user account:
- Read: see the section and run reports
- New and Write: create a report and save its design
- New: copy a report
- Delete: delete a report, together with the Create lists right
If you do not see the Report section in the menu, check the permissions assigned to your user account with your administrator: the section can also be hidden for the whole company.
From the Forms & Views section
You need the permissions on the Setup object, assigned to your user account. These are the same permissions that govern access to the entire configuration area.
- Read: see the section
- New and Write: create the report and save its design
- Delete: delete the report, together with the Create lists right
The Create lists right in the Report section
- Without the Create lists right: you run the reports you see, but you cannot reopen their design, delete them or use the Actions menu
- With the Create lists right: you can reopen the design of the reports you see and use the Actions menu; with the Write and Delete permissions you can also edit and delete public reports created by other users
Export and scheduling
To export a report you need the Export data from the platform right. Scheduling is set up from the report design, so it also requires the Create lists right.
Which reports you see in the Report section
- The reports you create are private: only you can see them, until you tick Publish
- Public reports are visible to every user who accesses the Report section
- System reports cannot be edited or deleted: you can copy them and edit the copy
Comments
0 comments
Please sign in to leave a comment.