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

Announcements
Join us in NYC Sept 4th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Separate email domain and extension

Hi,

I'm interested in separating the email domain and extension. Any ideas on how this can be done in both set analysis (if possible) and on import into qv?

So for example, if I have a field value mattsies@gmail.com I want to create 2 fields: mattsies and gmail.

Any tips on how to do this would be greatly appreciated.

Best,

Matt

1 Solution

Accepted Solutions
sivarajs
Specialist II
Specialist II

SubField('mattsies@gmail.com','@',2) ---mattsies

subfield(SubField('mattsies@gmail.com','@',2),'.',1)--gmail

View solution in original post

3 Replies
sivarajs
Specialist II
Specialist II

SubField('mattsies@gmail.com','@',2) ---mattsies

subfield(SubField('mattsies@gmail.com','@',2),'.',1)--gmail

Not applicable
Author

An other way to get the email domain is:

=Left(Right(Email, Len(Email) - Index(Email, '@')), Index(Right(Email, Len(Email) - Index(Email, '@')), '.') - 1)

Not applicable
Author

Thanks to you both for the help!