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: 
Gabe_Miller
Contributor II
Contributor II

Unique Filter Options

Hello, I am needing to create a filter for a dimension with multiple options as described below:

field:
a,
ab,
abc,
abcd,
b,
bc,
bcd

How do I create a filter to show:
a
b
c
d

So selecting option 'b' would bring up all values that include b?

Labels (1)
1 Reply
Taoufiq_Zarra

@Gabe_Miller 

In Script you can do for example :

 

Data:

Load
       field,
       mid(field,IterNo(),1) as UniqueField
While iterno()<=Len(field);

load * inline [
field
a
ab
abc
abcd
b
bc
bcd
]

 

output:

Taoufiq_Zarra_0-1614027341791.png

 

Taoufiq_Zarra_1-1614027360788.png

 

Regards,
Taoufiq ZARRA

"Please LIKE posts and "Accept as Solution" if the provided solution is helpful "

(you can mark up to 3 "solutions") 😉