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: 
QSense
Creator II
Creator II

set analysis not include

Hi ,

I have a set analysis expression

my expression is that

COUNT({$<Field1={">=$(=0) <$(=31)"},Field2={'*value1*value2*','*value2*value1'},Field2-=''>}fiedl3)

note: is another value

In expression side It  says ok but when I checked  it doesn not work correctly

I think the problem can be with Field2-='' (I try to exclude values )

Thanks for advance

4 Replies
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

You need to use the curly brackets: Field2 -= {'M'}

Also, the expression editor has a bug to causes it to flag the -= as wrong. But it is correct nonetheless.


talk is cheap, supply exceeds demand
Not applicable

try Field2-={M}

QSense
Creator II
Creator II
Author

Hello Gysbert and qlik_techie,

Field 2 includes values with such as examp1, examp2

I mean  some field2 values include at the front , end

Not applicable

i think in ur script u can create a field Field3 as :

if(left(Field,7)='',Field2) as Field3

and use this Field3 in set analysis as Field3={*}

or from the ref manual u can also use;

Field-={"*"}