Skip to main content
Announcements
Qlik Introduces a New Era of Visualization! READ ALL ABOUT IT
cancel
Showing results for 
Search instead for 
Did you mean: 
quickqlik2
Contributor II
Contributor II

Exclude Values in a Filter

I've got a table that tracks sales across various stores and regions. One of my filters is on the "Store ID". I want to exclude the following three values from my "Store ID" filter:

  1. "280-NEI hidden"
  2. "414-XUE hidden"
  3. "783-VTO hidden"

I can't exclude these in the data load, I have to do it with set analysis. I've tried this but I get an "Expression error" error when writing the "Store ID" filter function in the listbox properties:

={< [Store ID] -={"280-NEI hidden", "414-XUE hidden", "783-VTO hidden"} >}

 

Labels (4)
1 Solution

Accepted Solutions
rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

Your set needs to be in an aggregation function, eg Only(). Try this:

=Aggr(
Only({< [Store ID] -={"280-NEI hidden", "414-XUE hidden", "783-VTO hidden"} >} [Store ID])
,[Store ID])

-Rob

View solution in original post

2 Replies
marksouzacosta
Partner - Creator III
Partner - Creator III

Hi @quickqlik2,

Set Expressions only work with Measures.

I personally don't like this, but you can create this calculated Dimension:

If(Not Match([Store ID],'280-NEI','414-XUE','783-VTO'),[Store ID])

 

Read more at Data Voyagers - datavoyagers.net
rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

Your set needs to be in an aggregation function, eg Only(). Try this:

=Aggr(
Only({< [Store ID] -={"280-NEI hidden", "414-XUE hidden", "783-VTO hidden"} >} [Store ID])
,[Store ID])

-Rob