Probably the most common way of filtering, components can used independently by business users in Apps to apply View filters. In general, all filters applied using components apply to the entire View.
Filter components are components with the specific function to apply customized View filters. In edit mode, you can easily find them in the “Filter components” category. Each filter component has its specific use and can be configured accordingly. Therefore, it is up to you to build and position the filter components appropriately for the business users.
Similar to other components, you simply have to specify the data you’d want the business users to be able to filter. Let’s look at an example of a configured dropdown filter component.
Filter components can be built in both a View, as well as in a Filterbar, once it has been enabled.
The filterbar is simply an extended layout on the right of a View to insert the relevant filter components to the dashboard. In this extended layout, you can only add filter components, input components, buttons, and other design elements.
Let’s now build a filterbar for your business user. Let’s say they want to be able to filter the order status, sales order, and customer. Build and design a filterbar using the following information:
Order Status Quick Filter component PQL Query 1: FILTER "o_celonis_SalesOrder"."OverallProcessingStatus" = 'B'; Display Name 1: Open PQL Query 2: FILTER "o_celonis_SalesOrder"."OverallProcessingStatus" = 'A'; Display Name 2: Closed Selection: Single
Sales Order Dropdown component 1 PQL Query: "o_celonis_SalesOrder"."ID" Name: Sales Order ID
Date Range component PQL Query: "o_celonis_SalesOrder"."CreationTime" Show quick date range selections: Enabled Calendar Layout: Double Placeholder Text: Creation Date
Dropdown component 2 PQL Query: "o_celonis_SalesOrder"."SalesOfficeText" Name: Processing Location
Customer Dropdown component 1 PQL Query: "o_celonis_Customer"."Name" Name: Name
Dropdown component 2 PQL Query: "o_celonis_Customer"."Country" Name: Country
Optionally, you could use the text box component to organize the filter components and design the filterbar based on the aforementioned groups. That way, your business user will clearly understand the function of the components.
After you’re done, have the apply to all tabs setting enabled so that you can use the filterbar in both tabs.
Here’s how you’d do it…
Filters are very useful but they can also cause trouble, depending on the structure of the Data Model. As a best practice, you should always aim to create dashboards only with the necessary filtering capabilities. Most business users have little to no knowledge of the data structure. As a result, you can’t really predict how the business users will use the filters and interpret the results they get on the dashboard.
Let’s test the dashboard you’ve created so far using Interactive Mode.
How many open sales orders are left from 2022 and 2023? A. 0 B. 1,284 C. 35,547
Let’s say the business user claims that their Munich office made a little less than 60M€ from about 6,000 sales orders in 2023. Is this true or false? A. True B. False
Apart from filter components, business users can interact with many other components to apply View filters (e.g., charts, table, process explorer). You can make exceptions for specific components via their respective component settings, under interactions.
Exclude from user filtering excludes the component from being subjected to View filters applied by the business user. Predefined filters will still affect the component.
Can’t be used to set filters stops any filtering possibility from the component. Most of the time, this prevents business user interaction on the component.
_Media:_
- https://fast.wistia.net/embed/iframe/znseqkfn58?seo=true&videoFoam=true
- https://fast.wistia.net/embed/iframe/8wg0v3isvj?seo=true&videoFoam=true