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: 
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?

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).