Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Count IF equal to Text

I am attempting to make a stacked bar chart, but I am having difficulty in appropriately doing a Count IF. The two Count IFs I need to do are Count IF = 'Pass' and Count IF = 'Fail'.

If I understand correctly Qlik does not support the COUNTIF function, but I still can not seem to get the syntax correct to get the appropriate answer

1 Solution

Accepted Solutions
robert_mika
Master III
Master III

Try

=count({<Your Dimension={'Fail'}>} Your Dimension)

=count({<Your Dimension={'Pass'}>} Your Dimension)


or for both


=count({<Your Dimension={'Pass','Fail'}>} Your Dimension)

View solution in original post

3 Replies
m_woolf
Master II
Master II

You didn't say what you wanted to count or the field name containing the Pass/Fail text.. Try:

count({$<YourPassFailField = {'Pass'}>} FieldToCount)

count({$<YourPassFailField = {'Fail'}>} FieldToCount)

robert_mika
Master III
Master III

Try

=count({<Your Dimension={'Fail'}>} Your Dimension)

=count({<Your Dimension={'Pass'}>} Your Dimension)


or for both


=count({<Your Dimension={'Pass','Fail'}>} Your Dimension)

Not applicable
Author

Oh that was not my expression in the original post merely my thought process. I simply want to count the number of 'Pass' and 'Fail' separately to create a stacked bar chart.

I apologize for my poor explanation.