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.

Steps

  1. Add a Chart Based on Published Data component to the bottom half of the page.

  2. Select Edit Query.

  3. Select the Pivot Queries tab.

  4. Select New Query.

  5. Confirm Detailed Reporting is selected in the New Data Source screen.

  6. Choose Select.

  7. Drag and drop the desired fields to add them to the query. For this exercise, select the following:

    1. Add Employee ProfileEmployee InformationUser Sys ID.

    2. Add Employee ProfileManager InformationManager Last Name.

  8. Choose Show Preview.

  9. Choose EditPeople Scope.

  10. Choose People.

  11. Set the Team View to All Levels. and choose OK twice to return to the Query Designer.

  12. Drag and drop the desired fields to add them to the query. For this exercise, select the following:

    1. Add Performance ManagementPerformanceSubject User ID.

    2. Add Performance ManagementPerformanceOverall Performance Rating.

  13. Choose EditRelationship Scope.

  14. Change the 2nd Column Name to be Subject User ID and select OK to return to the Query Designer.

  15. Choose Performance Management under Manage Configuration.

  16. Select Talent Review and choose OK.

  17. Choose Manage Filters.

  18. Choose Add Filter.

  19. Add the following filter:

    1. Select Performance > Status as the Filter Field

    2. Select Report Values under Value

    3. Select Completed and choose Select to add to the Selected Values.

    4. Verify the Operator is In.

    5. Select OK.

  20. Choose OK on the Filter Designer to return to the Query Designer.

  21. Choose FileSave.

  22. Choose Return to open the Pivot Designer.

  23. Set up the pivot by dragging fields onto the Rows, Columns, and Measures boxes according to where you want them to appear. For this exercise, do the following:

    1. Drag Overall Performance Rating to the white space for Measures.

    2. The Pivot Measure Function box appears after you add a measure.

    3. Use Average Overall Performance Rating as the Pivot Measure Name.

    4. Choose the Pivot Function of Average and choose OK.

    5. Drag Manager Last Name to Columns.

  24. Select Show Preview.

  25. The Pivot Query Designer screen shows how the table will populate in Page Designer. It displays the average performance rating by the manager.

  26. Choose OK to return to Page Designer.

  27. The chart is populated with your data.

Summary