Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
aheavy95
Creator
Creator

count boolean field

Hi all
For a KPI, I need to count the number of occasions when a certain flag (boolean field) equlas "true"

I tried this formula, I get an "OK" in the expression window, but there is still an error with the expression

=count({<IsChatMissed={"True"}>}IsChatMissed) 

 

These are the values of the flag 

aheavy95_0-1660813598484.png

 

Thanks 

Labels (3)
3 Replies
PrashantSangle

Can you provide some more information, what is id field in that table?

what is error you are getting with your expression?

Regards,

Prashant Sangle

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
Or
MVP
MVP

If these are actual boolean values from Qlik, try checking on -1 which is the underlying value for true().

=count({<IsChatMissed={'-1'}>}IsChatMissed)

 

marcus_sommer

In regard to the hint from @Or to real boolean values it could be simplified with:

-sum(IsChatMissed)

- Marcus