Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
azmeerrehan
Partner - Creator
Partner - Creator

GetFieldSelection Isssue

I have the below statement

If(GetFieldSelections(MYField)='A' and GetFieldSelections(MYField)='B', 1,0).

So If I am making a selection A and B in MYField this statement is returning 0 means False.  It works fine with or but my requirement is and

What am I doing wrong here

18 Replies
azmeerrehan
Partner - Creator
Partner - Creator
Author

I can see the two values seperated by the comma

vishsaggi
Champion III
Champion III

Can you share a sample you are working on to check at our end please...?

azmeerrehan
Partner - Creator
Partner - Creator
Author

Which space after the comma you are talking about

Anonymous
Not applicable

just try this  If(is null(GetFieldSelections(MYField)='A' ,B',1,0))
atoz1158
Creator II
Creator II

The space after the comma and before the B

azmeerrehan
Partner - Creator
Partner - Creator
Author

Can you please resend me the expression showing the space with some symbol

krishnacbe
Partner - Specialist III
Partner - Specialist III

Please check the attached, it is working.

atoz1158
Creator II
Creator II

If(GetFieldSelctions(MyField)='A,%B',1,0)


Where the % is the space

azmeerrehan
Partner - Creator
Partner - Creator
Author

I can see its working on ur sample, but it doesnt work on my APP for some reason