Skip to main content
Announcements
Qlik Introduces a New Era of Visualization! READ ALL ABOUT IT
cancel
Showing results for 
Search instead for 
Did you mean: 
jpjust
Specialist
Specialist

Expression - domain\user.name to user.name@domain.com

All,

I have a field like below.

UserID

domain\user.name

domain\user.name2

I want a new field like below.

emailID

user.name@domain.com

user.name2@domain.com

I am looking forward for an solution on both UI expression and script expression.

Here is the code on the script.

LOWER(userDirectory & '\' & userId) AS UserId,

Thanks

 

1 Solution

Accepted Solutions
anat
Master
Master

load subfield(UserID,'\',2)&'@'& subfield(UserID,'\',1)&'.com' as emailID,*;

load * inline [

UserID

domain\user.name

domain\user.name2
];
exit script;

View solution in original post

2 Replies
anat
Master
Master

load subfield(UserID,'\',2)&'@'& subfield(UserID,'\',1)&'.com' as emailID,*;

load * inline [

UserID

domain\user.name

domain\user.name2
];
exit script;

jpjust
Specialist
Specialist
Author

Thank you so much, it works.