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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
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?

1 Solution

Accepted Solutions
swuehl
MVP
MVP

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
MVP
MVP

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!