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

Announcements
Q&A with Qlik - Qlik Cloud Migration: Questions about migrating to Qlik Cloud? Catch the latest replay!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Exists/Contains/Match in Qlikview

For one person_key there are multiple QST_ID's and ANS_ID's.

In Progress Outcomes chart i am checking the following condition for Quit Y/N?

IF for that person_key  we have QST_ID=1472 and ANS_ID=6429 it should show 'Y'.

But because of mutiple QST_ID's for a person_key i am not getting desired output.Any Help?

Error.jpg

Labels (1)
6 Replies
swuehl
Champion III
Champion III

Maybe like this (assuming you've selected one PERSON_KEY):

if( count({<QST_ID = {1472}, ANS_ID ={6429} >} PERSON_KEY) > 0,'Y','N')

Not applicable
Author

No it din help.

In sql server we have IN anything similar to that in Qlikview?

tried Match still didnt work

tresB
Champion III
Champion III

Try something like:

If (

         FindOneOf(Concat(Distinct QST_ID,'/'), '1472') And FindOneOf(Concat(Distinct ANS_ID,'/'), '6429')

, 'Y', 'N'

)

Or,

if( count({<QST_ID = {1472}> *<ANS_ID ={6429} >} PERSON_KEY) > 0,'Y','N')  // just tweaking Stephans''stuff a bit.

swuehl
Champion III
Champion III

Are your tables properly linked? Could you upload a small sample that demonstrates this issue?

Not applicable
Author

tried both still not working

Not applicable
Author

hey Treseco,

Thanks a lot !!

Second condition worked !!