Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

not equal in expression

I need to create a where condition in an expression: shiow "STATO" when it is different to "ANNULLATO"

only({<[STATO]<>{'ANNULLATO'}>}STATO)

This expression not accept '<>'

Someone can help me?

1 Solution

Accepted Solutions
rajni_batra
Specialist
Specialist

only({<[STATO]-={'ANNULLATO'}>}STATO)

or

only({<[STATO]={'*'}-{'ANNULLATO'}>}STATO)

View solution in original post

8 Replies
nilesh_gangurde
Partner - Specialist
Partner - Specialist

Use this Expression:

only({<[STATO] -={'ANNULLATO'}>}STATO)

Regards

Nilesh Gangurde

rajni_batra
Specialist
Specialist

only({<[STATO]-={'ANNULLATO'}>}STATO)

or

only({<[STATO]={'*'}-{'ANNULLATO'}>}STATO)

uttamdwibedy
Contributor
Contributor

Hi, here is another one:-

if(match([STATO],'ANNULLATO')=0)

Not applicable
Author

This works .... Thanks!

only({<[STATO]={'*'}-{'ANNULLATO'}>}STATO)

Not applicable
Author

And if i want replace "STATO" with an operation as: CASH-COSTS how can i do?

If I write

only({<[CASH-COSTS]={'7'}>}STATO)

I receive error for CASH-COST

rajni_batra
Specialist
Specialist

ur expression is perfect just check if making any spelling mistake or any kind of mistake in field name

Not applicable
Author

no mistake...it not accept the subtraction CASH - COSTS

rajni_batra
Specialist
Specialist

oh is this the subtrcation?? i thought this a field name...

i dont think this kind of subraction gonna work in set