Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Count "Text" in a Textbox

Hi,

I've got al Listbox

System | on_off

------------------------------

System3 | on

System1 | off

System33 | on

System78 | on

System133 | off

Now I want to crate a textbox where i can count all systems which are 'on'.

=count(on_off =1) & 'Systems are on'

Doesn't work, where is the problem??

Thanks

1 Solution

Accepted Solutions
swuehl
MVP
MVP

try either

= count(if (on_off = 'on', on_off)) & ' Systems are on'

or

=count({<on_off = {'on'}>} on_off) & ' Systems are on'

hope this helps,

Stefan

View solution in original post

2 Replies
Not applicable
Author

Try it this way

=count(if(on_off=1, system))

You could count either column.

swuehl
MVP
MVP

try either

= count(if (on_off = 'on', on_off)) & ' Systems are on'

or

=count({<on_off = {'on'}>} on_off) & ' Systems are on'

hope this helps,

Stefan