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

Announcements
Qlik Connect 2026! Turn data into bold moves, April 13 -15: Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to change the expression to get pass values


Hi,

I have a expression as below in Straight table

count({<Result={'Fail'}>}DISTINCT Reference) so that I will get Number of Failures.

If I want to get Number of Pass how can I change the above expression.

Could anyone help me.

Thanks.

4 Replies
Nicole-Smith

count({<Result={'Pass'}>}DISTINCT Reference)

or

count({<Result-={'Fail'}>}DISTINCT Reference)

Not applicable
Author

Thanks. I am getting the same figures which is having for Number of Failures. Is this something because of the data in source file or do I need to change anything else?

iktrayanov
Creator III
Creator III

Remove the Distinct from your expression.

Nicole-Smith

If you're getting the same values, I would think you have the same numbers for both Pass and Fail...

Have you calculated by hand what it should be?  Without knowing what it should be, I can't say whether it is correct or not.