Working with Filters in Query Designer

Applying filter is a good option to limit the data viewed without altering the design of the underlying object. Filter allows you to see only the data you want displayed.

Query Designer offers various filters that can be applied to the objects and query:
  • Object Filters: Simple Filter and Advanced Filter.
  • Query Filters: Advanced Filter

Applying Simple Filter to Your Query

Context

Use Simple Filter on an object to limit the records from one or more of its selected columns.

Procedure

  1. Select the object of your choice.

    A context menu appears.

  2. Select Add filters and choose Simple Filter.

    The Add Filter dialog appears.

  3. In the Search field select the required filter.

    The Select Members dialog opens.

  4. Under Available Members select your members and click OK.

Results

Simple filters are applied to your query.

Applying a Time Filter

If you want to retrieve data over a date range or as of a particular date, you can use the time filter on a table while building a query.

Context

You can use Time filters on schema tables, only while building queries. Time filters are applicable for Employee Central tables, and the tables connected to Employee Center schemas.

Procedure

  1. Click the table on which you want to apply the Time filter, and on the action menu that appears click .
  2. Select Time Filter.

    A pop-up to manage time filter appears, and <Today> is selected, by default. Please note that <Today> is available under the As of Date option of time filters.

  3. If you want a time filter other than <Today>, click Remove Filter.

    The <Today> filter option is removed, and the time filter pop-up shows two options - As of Date and Date Range.

  4. Choose an option.
    If you choose... then...
    As of Date Select either a <Fixed Date> or a <Dynamic Date>, and set a date value for the filter.
    Date Range Configure the date range values for the filter. For more information, see the "Configuring Date Range in Time Filter" topic.
  5. Click OK.

    A confirmation message indicating that the filter has been successfully set appears.

Results

Click and select Time Filter. The time filter settings that you applied appear on the pop-up for managing time filters along with Edit Filter and Remove Filter options. You can:
  • Edit the configuration of the applied filter using the Edit Filter option.
  • Remove the applied filter using the Remove Filter option.

Applying a Scope Filter

The scope filter allows you to decide the scope of the report in terms of the people you want to include in the report.

Context

The scope filter is a query filter, which applies to the primary schema table in the query.

Procedure

  1. After you've a table on the Query Designer canvas, on the Data menu above the canvas, click , and click to choose a query filter.
  2. Click the Scope Filtering option, and select the table for which you're applying the scope filter.

    The Scope Filters dialog appears.

  3. In the Start With list, define the starting point for the scope of the report. You can either select the default value of All Data Included, or select a user role from where you begin filtering the report data, like "Manager", "Human Resource","Matrix Manager", "Custom Manager", and "Second Manager".
  4. If you select a user role in Start With, in Up to, select the hierarchy levels under the selected user role to be included in the report.
    Option Description
    All Levels Selects all direct and indirect reports of the Start With user role.
    Direct Reports Selects only the direct reports of the Start With user role.
    Levels Allows you to define the hierarchy levels under the Start With user role that you want to include in the report.
  5. For data tables that support scope filtering by both Person and Position, select any one of them in the Who should be the subject of this report? section.
  6. Select any user or a position ID as the subject for the scope filter.
    For example,
    • If you select Logged In User (which belongs to the Person scope), the scope of the filter begins with the employee who runs the report, and if you select an employee, the scope of the filter begins with the selected employee.
    • Whereas, for the Position table of the Succession Nominations (MDF Position) schema, if you select Position and Position of Logged in User, the scope of the filter begins with the organizational position of the employee who runs the report.
  7. In the Who should this report include from this domain? section, use the options to further refine the selection of employees you want to include in the report.
    Option Description
    Include inactive users in the data Select this option to include inactive employees within the scope of the subject of this report.
    Include the subject data in the report Select this option to include the data of the subject of this report.
  8. Click OK.

Results

The scope filter has been successfully applied to the query, and it appears in a row above the Query Designer page. Click the query to edit it, or click the icon on the top-right of the query to delete it.

Advanced Filter

Advanced filtering allows you to filter multiple data fields by defining a set of logical conditions. To apply advanced filter, select the object of your choice. From the contexual menu, select Start of the navigation pathAdd Filter Next navigation step Advanced Filter Next navigation step Set Conditions for Advanced FilterEnd of the navigation path. Add new conditions from the button, choose either dimensions or operators to create nested filters.

Creating Input Parameters for Advanced Filtering

Make your data filtering more flexible using parameters in advanced filters.

Context

Parameters enable you to update your filter easily. Using Edit Prompts in Story, you can prompt users to provide filter inputs during story execution.

Procedure

  1. In Report Center, create a new Story report, or edit an existing Story report and go to Edit Datasource.

    The Query Designer page appears.

  2. Select {} (Input Parameter)

    The Input Parameter dialog box appears.

  3. Select to add an input parameter.
  4. Enter a suitable Input Parameter Name.
  5. Select Type of input parameter.
    While you can set the data type to either String, Numeric, Decimal, Integer, Date or Datetime, most of the fields in SAP SuccessFactorsl products are of type String, Decimal, and Datetime.
  6. Enter Default Value for the input parameter.
  7. Click OK.

Results

You've successfully created an input parameter that you can use in advanced filters.