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

Announcements
Qlik Connect 2026 Agenda Now Available: Explore Sessions
cancel
Showing results for 
Search instead for 
Did you mean: 
prabuj
Contributor III
Contributor III

How to count the length of a string and add @gmail.com based on the filter condition

Hi Team, @nthampi @TRF

SOURCE: Column " NAME" ____> TARGET: COLUMN "EMAIL "

If the length of the name is less than 7 , then add NAME@gmail.com

If the length of the name is greater than 7 or equal to 7 , then add NAME@msn.com

Expected results:

NAME EMAIL

PRA PRA@gmail.com

DDKFJKD

DDKFJKD@msn.com

How to do it ? Please help ASAP

Thanks in advance.

Labels (3)
1 Solution

Accepted Solutions
Anonymous
Not applicable

Hello,

You can the below expression:

column_name.length()<7 ? column_name+"@gmail.com": column_name+"@msn.com"

View solution in original post

1 Reply
Anonymous
Not applicable

Hello,

You can the below expression:

column_name.length()<7 ? column_name+"@gmail.com": column_name+"@msn.com"