Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE

How To Validate And Troubleshoot Section Access Reduction

100% helpful (1/1)
cancel
Showing results for 
Search instead for 
Did you mean: 
ToniKautto
Employee
Employee

How To Validate And Troubleshoot Section Access Reduction

Last Update:

May 10, 2022 3:23:50 PM

Updated By:

Jamie_Gregory

Created date:

Dec 31, 2014 12:18:50 AM

QlikView's Section Access can be used to reduce data based on the current user. 

 

Environment:

QlikView 
Qlik Sense Enterprise on Windows 
Qlik Cloud 
Qlik Sense Business 

 

If the data reduction appears incorrect, the section access table content and logic need to be validated.

This validation can be done in two steps:

  1. Validate the Section Access table content, see article How To Validate Section Access Table Content 
  2. Validate the reduction field, see below.


Load Section Access as a normal table

  1. Comment the Section Access keyword:
    //Section Access;​
  2. Comment the Section Application keyword
    //Section Application;​
  3. Reload the application 
  4. Open table viewer (Ctrl+T) 
  5. The data model now has a table consisting of the section access table, and this is linked to the data model.

    INFED 1 INFED.png

NOTE: If the section access table links to the synthetic table, this approach will most likely not work.


Validate reduction field format

The reduction field must be in upper case to comply with section access requirements, see QlikView Reference Manual for details. 

  1. Add a list box showing the reduction field
    COUNTRY 1.png
  2. Add an expression to the list box to indicate values not in upper case, for example as 
    Upper(FIELDNAME)<>FIELDNAME​
  3. The incorrect format values will be indicated with -1 (TRUE), based on the logical comparison
    COUNTRY 2.png


Correct the incorrect format in reduction field

The incorrect formats must be changed to match the section access tables Upper case formatting. There are two possible paths to address the format.

  1. The reduction field is used in the presentation, and the format can not be changed due to presentation requirements
    1. During load create a duplicate of the reduction field. Keep the original field name, but add a prefix to indicate it is a key field.
      MYREDUCTIONFIELD.png
    2. Force upper case on the new reduction field by using Upper() function 
    3. Rename the reduction field in the Section Access table, to it matches the new reduction field name
    4. Reload the application
    5. The data model should now indicate a section access link over the new reduction field
      MY DATA INFED.png
    6. There is no need to change front end application, since the old reduction field still is the same
  2. The format of the upper field does not affect presentation or application expressions
    1. Force upper case on the new reduction field by using Upper() function 
    2. Reload the application

 
Select the user to evaluate

  1. Add a list box showing the user names, either from USERID field or NTNAME field
    USERID.png
  2. Add a list box showing the reduction field.
    COUNTRY.png
  3. Select the user that has unexpected results
  4. The available values in the reduction field will be the reduction linked to the user
    USERID COUNTRY.png
  5. The current data set is no identical to the user's reduction value. Validate that the same issue exists as when the user logs in through section access. 
  • The reduction value is incorrect. Investigate further if the section access definition is incorrect. 
  • Sheet object calculation is incorrect. Evaluate if the expression is incorrect compared to the desired calculation. 
  • Sheet object calculation is correct. Consider if an alternate state or set expression is involved in the calculation. Notice that the current document has the full data set in memory, compared to a reduced data set through section access. 
Labels (1)
Version history
Last update:
‎2022-05-10 03:23 PM
Updated by: