Filtering in Qlik Sense External Reports
This article provides details on how to configure filtering in Qlik Sense External Reports.
Qlik Sense Filters can be added by:
- Retrieving Filter Names from Qlik Sense (auto-retrieval of all Filters/Filter Values from Qlik Sense)
- Loading Filter Values from Qlik Sense (auto-retrieval of a single Filter and its Values from Qlik Sense)
- Loading Filter Values from a Dataset (auto-loading of Filter Values from a Dataset in Metric Insights)
- Mapping to Dimension Values in Metric Insights (auto-mapping of Filter Values in Qlik Sense to Dimension Values in Metric Insights)
- Entering Filter Values Manually
PREREQUISITES:
[6.1.1 new feature] If your External Report Viewer is displaying duplicate Filters based on your BI Tool defaults, your Admin can reset the default behavior to remove the Metric Insights filters from Viewer display - How to omit Filters from External Reports.
Once filters are added to an Element for the first time, they will be automatically added to all new respective Elements with the same Data Source.
NOTE:
- External Filters are tied to Qlik Sense Sheets, not Metric Insights' Objects/Elements. This allows Filters to be reused multiple times.
- Redundant Filters or Filter Values can be set to "ignore".
Most of the data displayed by Qlik Sense Objects can be filtered by the offered criteria.
As exemplified by the image below, data in the corresponding charts has been refined by selected Filter values:
- Product Category: wine
- Product Subcategory: red wine, white wine
These Filters can either be automatically loaded to Metric Insights or added manually as needed.
1. Define a Source Object for an External Report
By specifying a Qlik Sense source element, Users will be able to fetch Filters applied to that element.
In the External Report Editor > Configuration tab:
-
Select a Plugin Connection Profile that will be used for data collection
- For details on how to create a Plugin Connection Profile, refer to Establish Connectivity to Qlik Sense
- Click [Select Object] to access the list of available Qlik Sense Objects
- Click the [Object Name] for it to be selected as a data source in Metric Insights
- If you do not see the required item, use Refresh
2. Add Qlik Sense Filters to Metric Insights
The Filter Management option allows Users to add Filters and access the related functionality.
For External Reports, to properly pass filter parameters to Qlik Sense, set Append dimension filter to External URL as: to "URL body part" in the corresponding External Report Type Editor.
For more information, refer to Create a New External Report Type.
Selecting this option means that all Filters and Filter Values will automatically be fetched from Qlik Sense.
Filters added automatically cannot be deleted if the "Retrieve Filter Names from Qlik Sense" option is activated.
To enable auto-retrieval:
- Activate the Auto-Retrieval option
- The loaded Qlik Sense Filters will appear in a list below
- Refresh the Filters' list as needed
- To edit a Filter, use the Edit (Gear) icon
- For details refer to Edit Filter Properties
- Click [Done] to proceed
This option gives more control over which Filter Values to load to Metric Insights. Filters are added one by one, enabling Users to determine how many Filters will be fetched.
To automatically load a Filter:
- Specify the Name of the Qlik Sense Filter that needs to be loaded
- Optionally, specify a Display Name to override the original Name of a Qlik Sense Filter
- Select the Type of Filter:
- Single Value allows choosing one Filter Value in Viewer
- Multi-Value allows choosing several Filter Values simultaneously and showing visualizations for the selected Values
- Optionally, restrict certain Filter Values to specific Users with the "Constrain via User Map" setting
- Save your entries
Loading Filter Values from a Dataset involves using a selected Dataset column as a source of Filter Values and mapping it to a specified Qlik Sense Filter Name.
To use a Dataset as a source of Filter Values:
- Input the Name of the Qlik Sense Filter (exactly as it is spelled in Qlik Sense)
- Optionally, specify a Display Name to override the original Name of a Qlik Sense Filter
- Select the Type of Filter:
- Single Value allows choosing one Filter Value in Viewer
- Multi-Value allows choosing several Filter Values simultaneously and showing visualizations for the selected Values
- Choose Dataset as a source of Filter Values
- Specify Dataset & View from which Values will be loaded
- Select a Dataset Column that will be mapped to the specified Qlik Sense Filter
- Save your entries
Qlik Sense Filters can also be mapped to Dimensions in Metric Insights.
PREREQUISITES:
To map a Qlik Sense Filter to a preconfigured Metric Insights' Dimension:
- Input the Name of the Qlik Sense Filter (exactly as it is spelled in Qlik Sense)
- Optionally, specify a Display Name to override the original Name of a Qlik Sense Filter
- Select the Type of Filter:
- Single Value allows choosing one Filter Value in Viewer
- Multi-Value allows choosing several Filter Values simultaneously and showing visualizations for the selected Values
- Filter Values: choose "Map to Dimension Values"
- Select a Dimension whose Values will automatically be loaded to the Values list
- Save your entries
Using the manual setting, Users have full control over which Filters and Filter Values are added to an Object/Element in Metric Insights.
To enter Filter Values manually:
- Input the Name of the Qlik Sense Filter (exactly as it is spelled in Qlik Sense)
- Display Name will allow you to override the original Filter name; this Name will be used in Metric Insights
- Select the Type of Filter:
- Single Value setting will allow you to choose only one Filter Value in Viewer
- Multi-Value setting enables the display of data in the External Report Viewer for several Filter Values at once
- Filter Values: choose "Enter Manually"
- Click [+Add Value] to add Values by hand
- Save your entries
3. Customize the Filter Order with Sorting
You can specify the order in which the Filters will be displayed in External Report Viewer.
To set custom order in which the Filters will be displayed in Viewer:
- Click [Sort Filters]
- Drag & Drop rows to sort
4. Edit Filter Properties
Having added the Filters, Users can make custom changes to their settings.
To edit a Filter:
- Click [Manage Filters]
- Choose the Filter that needs changing and click the Edit (Gear) icon
5. Set Filter Defaults
While configuring Filters, it is possible to apply default settings that are the same of everyone, or customize them with a User Map.
6. Delete Filters
To delete some of the added Filters:
- Click [Manage Filters] next to the name of a Qlik Sense Object
- In the pop-up window, use the Trashbin icon in the respective row