Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Passing a set of filters in qlikview

Hi all ,

I have this below given requirement to display as a table in the qlikview document with the set of filters passed for filtering the data.

surveyprod ctgcharchar typerate 1rate 2rate 3volume
s1catg 1factor1type 1846100
s1catg 1factor2type2766200
s1catg 1factor3type 3978300
s2catg 1factor1type 1957400
s2catg 1factor2type2977500
s2catg 1factor3type 3989600
s2catg 2factor4type 1747700
s2catg 2factor2type2867800
s2catg 2factor3type 3989900

the filters given on the report are :

1.survey

2.prod ctg

3.char

4. char type

5. range slicer(0-10)

output table displays the following columns

1.survey

2.prod ctg

3.char

4.char type

5.volume

the requirement is that the user must be allowed to pass 6 sets of filter.

set of filters include one from the available 5 filters(survey,prod ctg,char,char type,range slicer value)

OR condition needs to be applied when the filter values are passed.

for example: set1 filters OR set2 filters (output will now diplay the data for both the filters selected in set 1 and set 2 )

as i am new to qlikview , i have no idea how to solve this..

can this be handled by setanalysis ? if not then how can this be handled.

Kinldy help with any supportive expressions.

will be greatfull for any kind of help on this post .

thanks.

50 Replies
Anonymous
Not applicable
Author

Hi Stefan ,

in the below given expression ,

= If( len(GetCurrentSelections('','','',1,'Filter1'))

+ len(GetCurrentSelections('','','',1,'Filter2'))

+ len(GetCurrentSelections('','','',1,'Filter3'))

+ len(GetCurrentSelections('','','',1,'Filter4'))

+ len(GetCurrentSelections('','','',1,'Filter5'))

     =0, '$',

if(len(GetCurrentSelections('','','',1,'Filter1'))>0, 'Filter1+','')

& if(len(GetCurrentSelections('','','',1,'Filter2'))>0, 'Filter2+','')

& if(len(GetCurrentSelections('','','',1,'Filter3'))>0, 'Filter3+','')

& if(len(GetCurrentSelections('','','',1,'Filter4'))>0, 'Filter4+','')

& if(len(GetCurrentSelections('','','',1,'Filter5'))>0, 'Filter5+','')

& '0')

the variable set is accepting all values when no filter is passed , how can we instruct the filter set to be set to none when no filter is set and to filter only when the filters are passed ,

Kindly suggest on the same..

Thanks