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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

GetFieldSelections more than one value

i can't figure out the syntax for using more than one value with the GetFieldSelections function

GetFieldSelections(SECTOR)='CROSSOVER' AND GetFieldSelections(SECTOR)='CROSSOVER UPFRONTS'

i tried this but it doesn't work

any ideas?

Labels (1)
2 Replies
MK_QSL
MVP
MVP

TRY

=IF(GetFieldSelections(SECTOR)='CROSSOVER,CROSSOVER UPFRONTS',

     Condition for True,

     Condition for False)

Not applicable
Author

Try:

if(SubStringCount(GetFieldSelections(SECTOR,', ',5000),'CROSSOVER')>0 or SubStringCount(GetFieldSelections(SECTOR,', ',5000),'CROSSOVER UPFRONTS')>0,1,0)

With 5000 as your max values (change as needed).