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

Wildmatch Expression Error?

So I am trying to group the data in a dimension to either IAA or EPA. I was using the following link as a guide:

Qlik Sense - Dimension Grouping (video)

The final expression from the video is as follows:

  1. if(wildmatch(PRODNAME,'*Sony*'),'Sony'
  2. if(wildmatch(PRODNAME,'*Toshiba*'),'Toshiba'
  3. if(wildmatch(PRODNAME,'*Samsung*'),'Samsung','Other')))

I followed everything exactly, but I get an Error in Expression saying: Expecting ')'

I have simplified the expression to the one below:

If(wildmatch(Contracting Office Type,'*IAA*'),'IAA','EPA')

Can anyone tell me where I am going wrong? Most appreciated!

1 Solution

Accepted Solutions
sunny_talwar

I don't know if this is just a copy, but you don't have Square Brackets around your field name:

If(WildMatch([Contracting Office Type],'*IAA*'), 'IAA', 'EPA')

View solution in original post

3 Replies
sunny_talwar

I don't know if this is just a copy, but you don't have Square Brackets around your field name:

If(WildMatch([Contracting Office Type],'*IAA*'), 'IAA', 'EPA')

Not applicable
Author

Thank you so much, I knew that had to be issue, I just did not see the brackets in the example.

sunny_talwar

Yup . The example did not have it was because the field name did not have spaces and/or some special characters. Anytime you have spaces and special characters you need square brackets.