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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
bhanu99
Contributor II
Contributor II

How to restrict my data in the filter object

The following is a example data 

Channel folder subfolder
US MAIN JRM
US IMP UIO
US SEMI POK
GLOBAL MAIN MOP
GLOBAL IMP JIL
GLOBAL SEMI ENT
CH  MAIN LUK
CH  IMP AVU
CH SEMI PLI

 

I need to have two filters in my sheet, first filter should have values channel (just the field name), MAIN and SEMI. For this i created a inline code :

Load *
Inline
[
Filterdim,dimID
Channel,1
MAIN,2
SEMI,3
];

now my second filter has to be dependent on my first filter . if 'Channel' is choosed in my first filter i should get values of my channel column and if MAIN is selected then the respective values in subfolder (JRM,MOP,LUK) should come in my second filter , same goes for SEMI. how to achieve this

Labels (2)
2 Replies
edwin
Master II
Master II

the qlik data model takes care of that for you:

edwin_0-1694614576784.png

 

bhanu99
Contributor II
Contributor II
Author

my first filter is 'channel''MAIN' and 'SEMI'.

bhanu99_0-1694615062059.png

 

If i select ' channel' then US,GLOBAL,CH should come in second filter. if i select 'MAIN ' then JRM,MOP,LUK in the second