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

Announcements
Independent validation for trusted, AI-ready data integration. See why IDC named Qlik a Leader: Read the Excerpt!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

syntax error in expression


Hi,

I have one field value 'Supervisor's Opinion. when I am trying to use this MixMatch I am getting syntax error. could anyone tell mw how can I write this without error.

 

=

if(MixMatch([Error Types],'Supervisor's Opinion'

7 Replies
vikasmahajan

Please type your expression to help you  better , you are giving incomplete information , While posing in community you should create dummy qvw along with your post so that other person can help you soon..................

vikas

Hope this resolve your issue.
If the issue is solved please mark the answer with Accept as Solution & like it.
If you want to go quickly, go alone. If you want to go far, go together.
tresesco
MVP
MVP

If you are using the braces properly, then this could be because of the single quote in the string.

er_mohit
Master II
Master II

try this way

=Count({<[Error Types]={"Supervisor's Opinion"}>}[Error Types])

or try this way

if(MixMatch([Error Types],'Supervisor'&chr(39) &'s' &' ' & 'Opinion'),your expression)

Not applicable
Author

hi

try this

=

MixMatch([Error Types],'Supervisor & chr(39) & 's Opinion')

***********************************

The mixmatch function performs a case insensitive comparison.

Example:

mixmatch( M, 'Jan','Feb','Mar')

returns 1 if M = jan


*************************************

Not applicable
Author

try chr(39)  in

=

MixMatch([Error Types],'Supervisor & chr(39) & 's Opinion')

nizamsha
Specialist II
Specialist II

Load * inline [

Country

AUSTRALIA

INDIA

US

];

=MixMatch(COUNTRY,'AUSTRALIA','INDIA',US)

if the string AUSTRALIA,INDIA,US matches the country then it will return one else it will return o

Not applicable
Author

Not sure, if it is the actual mistake, but in the case the formula is correct don't forget to close the brackets, so

=if(MixMatch([Error Types],'Supervisor's Opinion'))