Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
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'

Labels (1)
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