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: 
Karim_Khan
Creator III
Creator III

~ exclude how it will work in expression

HI Team,

I wanted to exclude the Sales level 2  value from my Expression but its not working.

=sum({$<~[Sales Level 2]={$(vSel2)},[Fiscal Year] = {$(=only([Fiscal Year]))},[Month in Fiscal Year] = {'<=$(=only([Month in Fiscal Year]))'},CATEGORY={'IOT'},[Sales Level 1]={$(vSel1)}>} [Net Bookings])

Regards,

KK

KK
13 Replies
sasiparupudi1
Master III
Master III

hi

the - syntax will show the expression in red but the expression should work fine as long as it is showing expression ok message

hth

Sasi

jonathandienst
Partner - Champion III
Partner - Champion III

Qv versions prior to 11.20 SR11 incorrectly flag the -= as an error, but it is valid syntax and it should work.  Your use of the ~ was not valid syntax.

If it still does not work, then tell us how vSel1 and vSel2 are defined as these could be causing the error.

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
Karim_Khan
Creator III
Creator III
Author

ok got it

KK
Karim_Khan
Creator III
Creator III
Author

ok got it

KK