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: 
aj_954
Contributor III
Contributor III

how to exclude a value from being plotted in QLIK bar graph

Hi,

I have a data set that has the following:

Requesting Agency and Servicing Agency

I am trying to plot the count of  times of servicing agency, when the requesting agency = 'JAY'. 

 

Here is my code:

=if([Requesting Agency] = 'JAY',count([Servicing Agency]),1).

It works fine, however, if the Servicing Agency is = "jay" it also plots it. How do I exclude that value from being plotted. 

1 Reply
chris_djih
Creator III
Creator III

For this simple if statement, try to use set analysis:

Count( {<Requesting Agency={'JAY'}>} [Servicing Agency])

If you found help, mark the correct answer and give some likes to ALL contributors, that tried to help.