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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
BI_Dev
Creator II
Creator II

Section access

I have 2 tables as below.

TM ID, TM Confidential

1, Yes

2, No

3 No

];

PM ID, PM Confidential

100, No

200, Yes

300, No

];

I want to apply section access to Hide PM Confidnetial = 'Yes' and TM Cofidential = 'Yes' from  ABC@qlik.com.How an I acheive that ?

Labels (5)
5 Replies
Muthukumar_77
Contributor III
Contributor III

Hi,

You can use OMIT in section access, Below Eg:

TM ID, TM Confidential
1, Yes
2, No
3 No
];


PM ID, PM Confidential
100, No
200, Yes
300, No
];

Section Access;

LOAD * INLINE [
ACCESS, USERID, PASSWORD, OMIT
ADMIN, ADMIN, ADMIN123
USER, USER1, USER123, TM ID
USER, USER1, USER123, PM ID
];

Section Application;

Thanks Regards,
Muthukumar P
Qlik Developer
BI_Dev
Creator II
Creator II
Author

But section access should have the common field with the other tables right ? 

In section access table you dont have the PM Confiddential/TM Confidential specified.How does it know on data reduction ?

rubenmarin

Hi, you can add a new field to each table, wich will be used to reduction with SA.

Table1Final:
LOAD
  [TM ID], 
  [TM Confidential],
  Upper([TM Confidential]) as SA_TM
Resident Table1;

DROP Table1;

And then apply section access like:

Section Access;
Load * INLINE [
    ACCESS ,USER.EMAIL     ,SA_TM ,SA_PM
    USER   ,ABC@qlik.com   ,NO    ,NO
];

 You can also add a value that has all the value values related so you can use a value like ALL

Concatenate (Table1Final)
LOAD
  [TM ID], 
  [TM Confidential],
  'ALL' as SA_TM
Resident Table1Final;
Section Access;
Load * INLINE [
    ACCESS ,USER.EMAIL     ,SA_TM ,SA_PM
    ADMIN  ,Admin@qlik.com ,ALL   ,ALL
    USER   ,ABC@qlik.com   ,NO    ,NO
];
BI_Dev
Creator II
Creator II
Author

@rubenmarin Thank you.
But I have 2 different tables with 100+ fields.

Table1:
TM ID, TM Confidential
1, Yes
2, No
3 No
];

Table2:
PM ID, PM Confidential
100, No
200, Yes
300, No
];

Muthukumar_77
Contributor III
Contributor III

You can try this,

TM:
Load *,Upper("TM Confidential") as TM_CONFIDENTIAL_SA_KEY Inline [
TM ID, TM Confidential
1, Yes
2, No
3 No
];

PM:
Load *,Upper("PM Confidential") as PM_CONFIDENTIAL_SA_KEY Inline [
PM ID, PM Confidential
100, No
200, Yes
300, No
];

Section Access;

LOAD * INLINE [
ACCESS, USERID, PASSWORD, TM_CONFIDENTIAL_SA_KEY,PM_CONFIDENTIAL_SA_KEY
ADMIN, ADMIN@QLIK.COM, ADMIN123,*,*
USER, ABC@QLIK.COM, USER123, NO,NO
];

Section Application;

Thanks Regards,
Muthukumar P
Qlik Developer