Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Match function not working

Hi,

I have the following expression:

=if(match(chr(39)&'07-Senior'&chr(39),chr(39) & Concat(distinct [Student Level], chr(39) & ', ' & chr(39)) & chr(39)),1,0)

Where, Student Level has multiple values, like 07-Senior, 01-Junior and so on. If I select 07-Senior alone as the Student Level, the ablove expression returns 1. But, if I select 07-Senior and 01-Junior, the above expression returns 0, where as it has to return 1.

Please suggest!

1 Solution

Accepted Solutions
sunny_talwar

Try this instead

=SubStringCount(Concat(DISTINCT '|' & [Student Level] & '|', ', '), '|07-Senior|')

View solution in original post

3 Replies
Not applicable
Author

Hi,

Could you upload a sample if possible?

Thanks!

sunny_talwar

Try this instead

=SubStringCount(Concat(DISTINCT '|' & [Student Level] & '|', ', '), '|07-Senior|')

Not applicable
Author

Thank you Sunny. Can you explain me why the expression in the question was not working?