Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME 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.