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: 
Not applicable

request

hi

i want to execute this request in qlik:

select count(field_1) where field2='var1'

1 Solution

Accepted Solutions
Not applicable
Author

Hi youssef

you can use the

count({$<field2={'var1'}>}Field_1) --if you use the static value.

if its a varaible then you should try

count({<field2={$(var1)}>}Field_1)


with regards

Harshita Gaur

View solution in original post

3 Replies
ashwanin
Specialist
Specialist

Hi,

Please try

Count({$<Field_2={'var1'}>}Field_1)

Not applicable
Author

Try this if you want to do it in the script:


Load
     
count(field_1) as Count_Field1,
where field2='var1'
group by field2
;

Not applicable
Author

Hi youssef

you can use the

count({$<field2={'var1'}>}Field_1) --if you use the static value.

if its a varaible then you should try

count({<field2={$(var1)}>}Field_1)


with regards

Harshita Gaur