Enhanced Filtering

 

There are multiple types of filters in KPIWorX. The filters that existed previously, which could be applied in presentation mode by selecting parts of a widget, are now called "runtime filters". In addition to runtime filters, KPIWorX can now have widget-level filters and dashboard-level filters (sometimes referred to as global filters).

 

Widget-level filters and dashboard-level filters work in similar ways. They are configurable in edit mode only. They can only work with data coming from AnalytiX-BI. They both require the user to choose a column, select either a basic or advanced filter, and choose the filter properties. They both can filter on more than one column at a time.

 

If more than one filter type is active at once, data must match all active filters in order to be shown.

Widget-Level Filter

Widget-level filters are configured on the Widget Property panel in the Filters section. Drag a column into the field and configure it as either a basic or advanced filter. More than one column can be added at a time. Widget-level filters are static (no aliases or dynamic data sources).

 

Widget-level filters are designed to give users an easy way to remove unwanted data from certain widgets without having to create new AnalytiX-BI views or dataflows for each unique widget.

Dashboard-Level Filter

Dashboard-level filters are configured from the filter button in the Home menu's Edit section. Drag a column onto the page and configure it as either a basic or advanced filter. Dashboard-level filters can filter based on the logged-in user. (See the Filter Based on Security Context section below.)

 

Filter Button (Circled)

 

Dashboard-level filters are designed to focus a dashboard on a particular area, such as a particular point in time or a particular asset.

 

Dashboard-level filters differ from runtime filters (the type of filters available prior to 10.96) in several ways. Runtime filters require a widget, whereas dashboard-level filters do not. Dashboard-level filters cannot be changed in presentation mode, and do not appear as part of the filters panel. Runtime filters will persist if the user follows a link to a new dashboard, dashboard-level filters will not.

Runtime Filter Panel

Runtime filters, previously the only type of filter available for KPIWorX, now have a filter panel that shows all active runtime filters.

 

Active Runtime Filters

 

This panel is available in the header next to the security login and edit/presentation mode buttons. The number next to the icon shows the number of filters currently applied. The filter panel can be used to see the active runtime filters, undo or redo filters, clear specific filters, or clear all filters at once.

Filter Based on Security Context

Dashboard-level and widget-level filters in advanced mode can take advantage of two new aliases:

Advanced Mode Filtering

 

These aliases are case-insensitive and cannot be combined with any other characters when used in a filter.

 

An example use case for these filters is to create a database table that maps usernames or custom identifiers to assets in your AssetWorX tree, then add that table into your AnalytiX-BI data model. You can then add a dashboard-level filter to restrict the dashboard to only the assets relevant to the logged-in user.

Relative Datetime Filters

Filters on a datetime column can use dates and times relative to the current time.

 

Select a widget that includes a datetime column, then go to the Widget Settings panel. Add a filter for your datetime column, set its filter type to Advanced, select the calendar icon for one of the condition fields, then select Presets. You can choose from presets such as "Today" or "Last Week" and can apply an offset such as "2 days". This allows for the creation of dashboards that always load showing relevant data, instead of having to be hard coded for a specific date range that may quickly become the past.

 

The relative datetime functionality is also available on dashboard-level filters. The icon to access dashboard-level filters has been moved to the BI tab. Select the BI tab, then select the filter icon. Add a filter for a datetime column and observe the same preset dates in the advanced filter settings.

Filter Types Comparison

This table provides an overview of the three types of filters and how they can be used.

 

Characteristic

Runtime

Dashboard-Level

Widget-Level

Scope

Entire dashboard

Entire dashboard

Widget only

Configuration

From presentation mode, select value in widget

Home > Filter

Widget Settings panel

Changeable in edit mode

x

Changeable in presentation mode

x

x

Can be saved with dashboard

Persist when following dashboard links

x

x

Visible in filter panel

x

x

Filter based on security context

x

Presets

Presets have been added to the dashboard filtering criteria, allowing users to quickly set a time period criteria for filtering (including Now, Today, Current Week, Last Week, Current Month, Last Month, Current Year, or Last Year) and an Offset (by Count and/or Interval [Year, Month, Week, Day, Hour, Minute, Second]).

 

Presets (Highlighted)

 

The following image shows Preset-based filter criteria (highlighted in red) using "Now - 24 Year" with results shown in the middle cell of the KPIWorX dashboard.

 

Preset-based Filter

 

See Also:

KPIWorX Overview