Creating Pivots with Numeric Data

Objective

After completing this lesson, you will be able to create pivots with numeric data in SAP SuccessFactors Canvas Reports.

Pivot Charts and Pivot Tables

A List Report can be pivoted and then displayed as either a table or chart. Pivot charts and pivot tables summarize published data visually in the Page Designer tool.

A pivot in Canvas Reports can work with both numeric data and textual data.

Create a pivot chart or table from a list report.

When working with numeric data, you will choose an aggregate function to apply to the data. An aggregate function takes multiple values and returns a single value. Examples include Sum, Average, Count, and Last. If you include fields (dimensions) in your pivot, it will perform that calculation for every unique value of that field.

For example, you could get the average performance rating for a company’s geographic locations. For each unique location, it would take all the performance rating values and get the average. This data can be charted if desired. Therefore, the pivot has "summarized" the data.

Sample pivot chart data.

When working with textual data, you will also choose an aggregate function to apply to the data, but they do not perform a calculation. The function still takes multiple values and returns a single value. Examples include Concatenate, Count, First. If you include fields (dimensions) in your pivot, it will perform a summarization for every unique value of that field.

Screenshot of a sample pivot chart.

For example, you could list an employee dependents names in a single cell, regardless of the number they have by utilizing the concatenate function in a pivot.

Creating a Pivot Component

Steps to create a pivot component.

Pivot Query Designer

Sample Pivot Query Designer.

The Pivot Query Designer allows you to pivot data around certain fields in a query. To build the pivot:

  1. Decide what you want to measure and drag the appropriate data columns onto the canvas. You can include more than one Pivot Measure.Screenshot of the Pivot Measure Function dialog.
  2. Decide how you want to pivot the data and use the Pivot Measure Function box to select the Pivot Function from the dropdown menu. Pivot function options vary based on the types of fields you are using. Functions include the following: Count, Distinct Count, First, Last, Sum, Average, Minimum, Maximum, Concatenate, and Distinct Concatenate.
  3. Add fields to define how to aggregate/summarize the data by adding fields onto the columns and rows.
Sample columns display.

For example, to create a report that displays the average salary analyzed by job code and location, you would create a query that includes the job code, location, and salary data. When creating the pivot table, you would add the job code to the column heading, location to the row heading, and drag the salary to the data section. When prompted, select the "average" function.

When you are finished, save your pivot so that you can add it into a pivot table or chart component.

Pivot Query Designer Views

The Pivot Query Designer allows you to pivot data around certain fields in a query. There are three basic steps to take after you choose ToolsPivot Query Designer:

When you are finished, save your pivot so that you can add it into a pivot table or chart component.

The Design View is shown.

You can toggle between Show Design View, which shows what is in the columns and rows, and the TableView, which displays the data in a table.

If you need to edit the measures, columns, or rows, choose Show DesignEdit or Remove.

Screenshot of the Pivot Dimension Edit window.

Depending on the desired outcome, it is possible to include the 'overall' value of a measure in the table. For example, when creating a pivot to display average salaries analyzed by Job Code and Location, you may wish to also display the average salary for a location, regardless of the job code. This 'overall' value needs to be enabled.

This option is accessed in Show Design ViewDimensionEdit. Select a qualifier that includes the selected element to include the value:

Option to Include/Exclude Nulls in Pivot Calculations

Depending on the desired outcome, it is possible to include or exclude null results when aggregating data in a Pivot Table or Chart.

This option is accessed in Show Design ViewMeasuresEdit. Checking the box will exclude cells that contain no data; leaving the box unchecked will include them.

Exercise: Chart Data from Different Modules

Business Example

In this exercise, you will pivot data in your performance rating query to show the average rating for each location.

Summary

  • Create pivot tables and charts to visually summarize and analyze numeric or textual data within report pages.
  • Apply Aggregate Functions like Sum, Average, or Count to return single values from multiple data points.
  • Use the Pivot Query Designer to define measures, columns, and rows for your data aggregation.