Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Limited filter box values

Hi,

I have a column "Category" and there are many values. I would like to have them limited to be viewed in my filter box to those that starts with "Sales". What is the way to get it?

Maciej

1 Solution

Accepted Solutions
Anil_Babu_Samineni

May be this to show only sales  data

if(Wildmatch(Category,'Sales*'),Category) as  field

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful

View solution in original post

6 Replies
jpenuliar
Partner - Specialist III
Partner - Specialist III

Hi Maciej,

you can add a new field (in Script) like below:

If(Wildmatch(Category),'*Sales*',Category,'Others') as AnotherCategory

Anonymous
Not applicable
Author

Hi Jonathan,

I apologise for a long time to give you feedback. It works, thanks for your help. I only had to made some impovementst because ther was little mistake in the code. It should look like this:

if(Wildmatch(Category,'Sales*'),Category,'Others') as AnotherCategory.


Can I get on the filter list only those 'Sales*' without Others? The data in my visualization only refers to the Sales and there won't be no others.?

Anil_Babu_Samineni

May be this to show only sales  data

if(Wildmatch(Category,'Sales*'),Category) as  field

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
Anonymous
Not applicable
Author

You're right Anil, thanks. 🙂

MarcoWedel

Hi,

maybe one solution could be:

QlikCommunity_Thread_240637_Pic1.JPG

QlikCommunity_Thread_240637_Pic2.JPG

QlikCommunity_Thread_240637_Pic3.JPG

hope this helps

regards

Marco

Anonymous
Not applicable
Author

I've checked it and it also works fine and it's very nice. Thank you Marco :-).