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

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
hopkinsc
Partner - Specialist III
Partner - Specialist III

comparing string to email field

hi all. i am trying to compare a 'FirstName' field to an 'Email' field in a chart.

all i want to do is to check if the email field contains the first name but i cant get this to work.

does anyone have any ideas please?

Labels (1)
1 Solution

Accepted Solutions
swuehl
Champion III
Champion III

Maybe something like

=Sum( If( Email LIKE '*'&FirstName&'*', 1,0))

Or use other string comparison functions like  Wildmatch().

But it's hard to suggest anything specific without knowing the context you want to use it (data model, chart dimensions / expressions etc.)

View solution in original post

2 Replies
swuehl
Champion III
Champion III

Maybe something like

=Sum( If( Email LIKE '*'&FirstName&'*', 1,0))

Or use other string comparison functions like  Wildmatch().

But it's hard to suggest anything specific without knowing the context you want to use it (data model, chart dimensions / expressions etc.)

hopkinsc
Partner - Specialist III
Partner - Specialist III
Author

thats great, thanks for your help Stefan. its the '*'&FirstName&'*' that i couldnt get right!

obvious now!