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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
chiso_chiso
Creator
Creator

Filtering using expression

I have a crosstable with a fields called Question and Answer. I want to filter only questions with a specific word and count the number of responses.

Example, I want Overall Availability, Coke Availability, 20l Coke Availability, 40l Coke Availability seperately.

See Attached

1 Solution

Accepted Solutions
jyothish8807
Master II
Master II

Hi Harrison,

PFA.Hope this is what you are looking for.

Regards

KC

Best Regards,
KC

View solution in original post

24 Replies
jagan
Partner - Champion III
Partner - Champion III

Hi,

Try like this using wild card characters in set analysis

=Count({<Question={'*Availability*'}>} Answer)

Regards,

jagan.

Colin-Albert
Partner - Champion
Partner - Champion

You may need to load the question/answer data as uppercase or lowercase to ensure that you count all values of a word if the case varies.

chiso_chiso
Creator
Creator
Author

Is it possible to also filter for 'Yes' answers only as in to say Overall Availability got 5 Yes answers?

jagan
Partner - Champion III
Partner - Champion III

Hi,


Try like this


=Count({<Question={'*Availability*'}, Answer={'Yes'}>} Answer)


Regards,

Jagan.

chiso_chiso
Creator
Creator
Author

For some reason when i change the filter word i.e. from availability to say visibility, the result is not changing which is not a true reflection. any ideas why it may be so?

ashfaq_haseeb
Champion III
Champion III

Check this

Regards

ASHFAQ

chiso_chiso
Creator
Creator
Author

Thanks guys. Further, help if I want to get average of each answer

ashfaq_haseeb
Champion III
Champion III

Hi,

Check this

Regards

ASHFAQ

chiso_chiso
Creator
Creator
Author

I am successful, thanks to you colleagues.