Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Paknanarn23
Creator II
Creator II

Count of 0 in expression


I want to count only 0's in each Job_Order. I've tried this code, but the output value Some are right and some are wrong.

Count(TOTAL <StartTime> {<ParamName={'COUNTER'},Value = {'0'}>} WorkOrderNo)

I give an example in this Job_Order , I can count in excel all 4 but in Qlikview count 8 , what should I do ?

Excel

Paknanarn23_1-1689840376866.png

 

Qlikview

Paknanarn23_2-1689840398180.png

 

 

 

 

1 Solution

Accepted Solutions
Paknanarn23
Creator II
Creator II
Author

Count(DISTINCT{$<Counter = {0}>}[Time_Stamp])

View solution in original post

3 Replies
Mark_Little
Luminary
Luminary

Hi Try,

COUNT(IF(COUNTER=0,1,0))

Paknanarn23
Creator II
Creator II
Author

I've used the code you suggested. Value came out too much I want to count 0 in each WO.

Paknanarn23_0-1689903978052.png

 

Paknanarn23_1-1689903993578.png

 

Paknanarn23
Creator II
Creator II
Author

Count(DISTINCT{$<Counter = {0}>}[Time_Stamp])