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

Announcements
Posting on Qlik Community is temporarily paused. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
master_student
Creator III
Creator III

like

Hello Guys,

I need a function that do like that : if Location like %RESTO%

is there any function that do that?

Thanks

Labels (1)
1 Solution

Accepted Solutions
sunny_talwar
MVP
MVP

Yes, it should be like this

If(Location LIKE '*RESTO*', TrueCondition, FalseCondition)

View solution in original post

7 Replies
sunny_talwar
MVP
MVP

Yes, it should be like this

If(Location LIKE '*RESTO*', TrueCondition, FalseCondition)

Anil_Babu_Samineni
MVP
MVP

You can use directly like operation or WildMatch(Location,'*RESTO*')

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
stigchel
Partner - Master
Partner - Master

Can you also use % as wildcard character? From the help:

likeString comparison with wildcard characters. The operation returns a boolean true (-1) if the string before the operator is matched by the string after the operator. The second string may contain the wildcard characters * (any number of arbitrary characters) or ? (one arbitrary character).

Examples:

'abc' like 'a*' returns true (-1)
'abcd' like 'a?c*' returns true (-1)
'abc' like 'a??bc' returns false (0)
Anonymous
Not applicable

Like others have said, WILDMATCH is the way to go!

Anil_Babu_Samineni
MVP
MVP

If you got the Correct Answer. Please flag the correct answer and helpful

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
master_student
Creator III
Creator III
Author

Hello Guys,

Thanks for your reactions ) I appericiate your help. I have an other request, I have a filed TIME on second I would like to convert it into Hours / minute

ANY IDEA please?

sunny_talwar
MVP
MVP

May be like this

Time(Time#(Field, 'ss'), 'h:mm') as Field