Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
kodyjameson
Contributor II
Contributor II

Count if or/and

Hello Qlik Wizards,

I'm trying to figure out how to filter a dimension within a bar chart. My current measure formula is below and I'd like to add a Division filter to it as well. 

Count({<CODE = -{null} ,CODE = -{''} , NEW_CODE = CODE , DIVISION = {'FA*'} >} NEW_CODE)

Within the DIVISION field there are multiple values. I only want to show data that falls under divisions that begin with "FA".

Any help is appreciated!

Labels (1)
1 Solution

Accepted Solutions
Zapparoli
Creator II
Creator II

Hi @kodyjameson 

What you are trying to is called a "Advanced Search" on Qlik, and for that to work, you need to use Double quotes like this:

Count({<CODE = -{null} ,CODE = -{''} , NEW_CODE = CODE , DIVISION = {"FA*"} >} NEW_CODE)

Also check this post that explains more:
https://community.qlik.com/t5/Design/Quotes-in-Set-Analysis/ba-p/1471824

Let me know if this helps.

-Zapparoli

Check my Youtube Channel for more Qlik Content
https://www.youtube.com/@ZappaAnalytics

View solution in original post

3 Replies
Zapparoli
Creator II
Creator II

Hi @kodyjameson 

What you are trying to is called a "Advanced Search" on Qlik, and for that to work, you need to use Double quotes like this:

Count({<CODE = -{null} ,CODE = -{''} , NEW_CODE = CODE , DIVISION = {"FA*"} >} NEW_CODE)

Also check this post that explains more:
https://community.qlik.com/t5/Design/Quotes-in-Set-Analysis/ba-p/1471824

Let me know if this helps.

-Zapparoli

Check my Youtube Channel for more Qlik Content
https://www.youtube.com/@ZappaAnalytics

BrunPierre
Partner - Master
Partner - Master

Try.

Count({$<Field = {"=Len(Trim(CODE )) > 0"}, NEW_CODE ={"=NEW_CODE=CODE "}, DIVISION = {"FA*"} >} NEW_CODE)

kodyjameson
Contributor II
Contributor II
Author

@Zapparoli Thanks for the quick response! This worked like a charm!