Skip to main content

Dynamic data reduction

Qlik Sense supports the dynamic data reduction feature, by which some of the data in an app can be hidden from the user, based on the section access login:

  • Fields (columns) can be hidden by using the system field OMIT.
  • Records (rows) can be hidden by linking the section access data with the real data: The selection of values to be shown/excluded is controlled by having one or more fields with common names in section access and section application. After user login, Qlik Sense will attempt to copy the selections in fields in section access to any fields in section application with exactly the same field names (the field names must be written in UPPER CASE). After the selections have been made, Qlik Sense will permanently hide all data excluded by these selections from the user.
Information noteAll field names used in the transfer described above and all field values in these fields must be upper case, because all field names and field values are, by default, converted to upper case in section access.

Example:  

section access;
LOAD * inline [
ACCESS, USERID,REDUCTION, OMIT
USER, AD_DOMAIN\ADMIN,*,
USER, AD_DOMAIN\A,1,
USER, AD_DOMAIN\B, 2,NUM
USER, AD_DOMAIN\C, 3, ALPHA
USER, INTERNAL\SA_SCHEDULER,*,
];
section application;
T1:
LOAD *,
NUM AS REDUCTION;
LOAD
Chr( RecNo()+ord(‘A’)-1) AS ALPHA,
RecNo() AS NUM
AUTOGENERATE 3;

The field REDUCTION (upper case) now exists in both section access and section application (all field values are also upper case). The two fields would normally be totally different and separated, but using section access, these fields will link and reduce the number of records displayed to the user.

The field OMIT, in section access, defines the fields that should be hidden from the user.

The result will be:

  • User ADMIN can see all fields and only those records other users can see in this example when REDUCTION is 1,2, or 3.
  • User A can see all fields, but only those records connected to REDUCTION=1.
  • User B can see all fields except NUM, and only those records connected to REDUCTION=2.
  • User C can see all fields except ALPHA, and only those records connected to REDUCTION=3.
Information noteThe INTERNAL\SA_SCHEDULER account user is required to enable reload of the script in a Qlik Management Console task.

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – please let us know!