Creating Static and Runtime Filters

Objective

After completing this lesson, you will be able to create static and runtime filters in SAP SuccessFactors Canvas Reports.

Static and Runtime Filters

Introduction

Filters allow you to limit the data you view in a report or query. In detailed reporting queries with a live data source, there are two types of filters you can set:

The Filter Designer screen, filtered by department.
  • Static Filter: Filters rows based on a value of a specified field: When it is added, it is permanently applied to a query.
  • Runtime (user prompted) Filter: Filters rows based on the fields selected, allowing report consumers to choose the filtered value for fields

For example, supposing your report needs to reflect only the Sales department. You could go back to the query and apply a static filter on all rows from the Sales department. Alternatively, you can set up a runtime filter in the Department field, allowing report consumers to choose Sales or Marketing before running the report.

Sample list of Runtime Filters.

Reports with runtime (user prompted) filters, people scope, and/or date options, will prompt the user to make filter selections prior to displaying results. The user will see a popup on top of the report page with filter criteria before seeing report results.

Note: If the report does not have any runtime filters, people scope, or date options enabled, there will be no prompt for the report consumers.

Add a Static Filter

To add a static filter on the query building screen, navigate to Applied Filters on the left side of the screen and choose Manage Filters. You can then define the filter field, operator, and value.

With the value you can enter a value, select a dynamic variable, or select a report value from the database for that specific field.

From the Custom filter list, select a dynamic variable.
Sample Report Value filters.

Filter Search Values

When setting up a filter in Canvas, you may enter any part of the value and the Filter Designer will permit you to select the desired value from the list of results.

Sample filter search results.

Filter Groups

It is possible to add multiple filters to a query. These filters can be grouped using the Filter Designer. When adding multiple filters, you can toggle between the AND / OR clause by clicking on the AND / OR statement. By doing this, you can create Filter groups:

Sample with multiple filters added to a query.

Runtime Filters

In the Runtime Filter Designer, select the fields that will be used for filtering.

To add a runtime filter on a query building screen, complete the following steps:

  1. Choose EditManage Runtime Filters.
  2. From the Available Columns list, select the fields which will be used for filtering.

    Note

    If you are using pivot charts or tables with list reports that have a runtime filter, be sure to create the pivot charts or tables after adding the runtime filter. When you create a pivot chart, it uses data that existed at the time of creation. If you add the runtime filters after creating a report, return to Page Designer, edit the component to make modifications to the report, and re-pivot the data using the Pivot Query Designer. When you apply the runtime filter, data reflected in the pivot chart will also be filtered.

Exercise: Work with Filters

Business Example

In this exercise, you will work with filters. You will customize a query to include two levels below the logged in user in your Employee Information query. You will add a static filter and a runtime filter.

Steps

  1. On the query building screen, choose the Edit dropdown menu and select People Scope.

  2. Select the group you would like to customize the query around. For this exercise, choose People.

  3. Select Logged in User.

  4. Change the Team View to Direct Reports.

  5. Change the Team View to ‘2 below’ and choose OK.

  6. Choose OK on the People Scope screen to confirm.

  7. Change the rows per page to 1 and click GO.

  8. Notice the number of pages listed (up to 100). This is the number of records returned.

  9. Choose FileSave.

  10. Navigate to Applied Filters on the left side of the screen and choose Manage Filters.

  11. Choose Add Filter.

  12. Scroll down and select Employee InformationNew to Position.

  13. Under Value, (if necessary) choose Report Values.

  14. Highlight the Yes and choose Select (you many have to scroll down to see Select).

  15. Under Operator, choose the Not In.

  16. Choose OK.

  17. Choose OK on the Filter Designer screen to confirm.

  18. The number of records returned is reduced.

  19. Save your query by navigating to FileSave.

  20. On the query building screen, navigate to the Edit dropdown menu.

  21. Select Manage Runtime Filter.

  22. Under Manager Information, select Manager Last Name.

  23. Choose OK.

  24. Save your query by navigating to File → Save.

  25. Set the rows per page to 10 and click GO.

Summary