Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Section Access - Multiple Fields

Hi there,

I am attempting to apply Section Access to my Qlikview document. 

I need to apply Section Access based on Company and Branch Access.  Some users will see all companies and branches (*), some will see specified companies.  Of those who see specified companies some will see all branches (*), others will see specified branches.

I am able to apply seciton access if limited to CBS_Company as a restriction.  When I attempt to extend Section Access to include CBS_Branch, section Access no longer works for some of the users.  The users that have access to * companies and * braches appear to be working.  Users that have access to specified companies (eg. ximenas), data reduction doesnt link the CBS_Company and CBS_Branch to the BROKERCODEKEY and BRANCHCODEKEY in the Income Table.

The tables are as follows.

COMPANY_BRANCH.CSV

CBS_UserIdCBS_CompanyCBS_BranchNTNAMEACCESS
sashj**sashj@austbrokers.com.auUSER
ximenasABT*XimenaS@aeitransport.com.auUSER
ximenasAEI*XimenaS@aeitransport.com.auUSER
alisonrCCATUGalisonr@abcentralcoast.com.auUSER


Section_Access:

LOAD   Trim(Upper([ACCESS])) as ACCESS,

            Trim(UPPER(NTNAME)) as NTNAME,

            Trim(Upper(NTNAME)) as USER_KEY

FROM

$(vDataPath)Company_Branch.csv

(txt, codepage is 1252, embedded labels, delimiter is ',', msq);

STORE Section_Access into $(vDataPath)Section_Access.qvd (qvd);

drop table Section_Access;

SECTION Access;

SectionAccessTable:

LOAD      [ACCESS],

               NTNAME,

               USER_KEY

FROM

$(vDataPath)Section_Access.qvd

(qvd)

Where 1=1;

Section Application;

Star is *;

User_Section:

LOAD      Trim(Upper(CBS_Company)) as BROKERCODEKEY,

               Trim(Upper(CBS_Branch)) as BRANCHCODEKEY,

               Trim(Upper(NTNAME)) as USER_KEY,

FROM

$(vDataPath)Company_Branch.csv

(txt, codepage is 1252, embedded labels, delimiter is ',', msq);

DataTable:

LOAD      Company,

               Company as BrokerCode,

                       Company as BROKERCODEKEY,

               Branch,

               Branch as BRANCHCODEKEY

FROM

$(vDataPath)Income.qvd

(qvd);

Labels (1)
0 Replies