Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
bashar_f
Partner - Creator
Partner - Creator

How to add a where clause to a variable definition

Hi,

I have a variable called vAdmissionsCount

The definition is supposed to be

count(emplid)  Where prog_action = ADMT or MATR

prog_action is a field, but when i enter the definition like this, I get red lines all over.

1 Solution

Accepted Solutions
tresesco
MVP
MVP

=Count( {<prog_action={'ADMT','MATR'}>}emplid)

View solution in original post

2 Replies
tresesco
MVP
MVP

=Count( {<prog_action={'ADMT','MATR'}>}emplid)

PabloOrtiz
Partner - Creator
Partner - Creator

Try this

=Count( {<$(vAdmissionsCount)>}emplid)


you have to create de var with this value


prog_action={'ADMT','MATR'}