How to use the preparation action Filter Datasource Field

How to use the preparation action Filter Datasource Field

 FIRST CREATED ON 4 Nov 2026  I  AUTHOR Emma Camacho

Let's do some examples for Qlik Sense, both Server and SaaS.

1) Filter a direct value

If you want to set a direct filter for the field [Fiscal Year], you can use the following:


You can use the icon  to get all the values in that particular field, in this case, there are 3. You can selected the one you want to add.


If you want to add years to the filter, it will look like this


2)  Filter a direct value that is dynamic

Follwing the previous example, if you want to  filter the [Fiscal Year] field to last year and the year before the last, you have 2 options, asking Qlik for the years, or asking the operating system

Using a Qlik expression



Using a Vb.net expression


The preferred option is using a Vb.net expression. It is faster and more efficient as we don't want to disturb Qlik for information we can get from the operating system.

3) Filter a direct value that is received in a parameter

The parameter is defined at the Report level

and you can add it using the Insert Value icon


The preparation action will look like this


4) Filter a field using Perform Match Filter

a. Fields declared as DUAL 

Setting a filter with a direct value requires that the value matches the data type of the field, but when setting a filter to a DUAL field, it is easier to do so using the Perform Match Filter to use the TEXT representation of the value, for example, when setting a filter to a Date field.



b. Wildcards

 Another use case to use the option Perform Match Filter is when you want to use wildcard, for example, you want to filter all the months before the current month, you can use this


or you want to filter all the Sales Rep Names that their first name starts with A


Info
Looking for Additional Guidance?

If you require more detailed information or further assistance, please visit our comprehensive Online Documentation. Our resources are designed to help you navigate all features and functionalities effectively.