Skip to main content
Announcements
Live today at 11 AM ET. Get your questions about Qlik Connect answered, or just listen in. SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

If expression checking if the field starts with some letters

Hey everyone,

I would like to know how to write a expression that will check if a particular expression start with the given letters.

For example i would like to check if my [Project Name] field starts with "CPM_" .

I don't know how to express this.

Thank you for your help

1 Solution

Accepted Solutions
MayilVahanan

Hi

Try like this

= Count({<ProjectName = {'CPM_*'}>}Sales)

Or

If(WildMatch(ProjectName,'CPM_*'), ProjectName)

Hope that helps

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.

View solution in original post

4 Replies
MayilVahanan

Hi

Try like this

= Count({<ProjectName = {'CPM_*'}>}Sales)

Or

If(WildMatch(ProjectName,'CPM_*'), ProjectName)

Hope that helps

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
Anonymous
Not applicable
Author

Arnaud

Use the WILDMATCH function.

Best Regards,     Bill

CELAMBARASAN
Partner - Champion
Partner - Champion

Use WildMatch

WildMatch([Project Name], 'CPM_*')

Not applicable
Author

Thank all of you for you help.

I used this expression : sum(If(WildMatch([Project Name],'CPM_*'),1,0))  to know the number of projects starting with CPM_.