Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
jgraunke77
Contributor II
Contributor II

Loading from csv and want to creat a new column and sort the data in every field alphabetically

Hi there,

I'm loading some data from a csv-file. One of the columns includes email-addresses. Now I want to create a new column and want to delete every double characters and sort the rest alphabetically.

For example...

LOAD id,
             timestamp,
             email
FROM C:test.csv
(txt, utf8, embedded labels, delimiter is ',', msq);

I want:

LOAD id,
             timestamp,
             email, 
             sortedmail
FROM C:test.csv
(txt, utf8, embedded labels, delimiter is ',', msq);

in the first row there is in column "email" the value: waynetrain@whateverest.com...
I want in same row in column "sortedmail" the value: aeinrtwy

3 Replies
saar_lorena
Contributor III
Contributor III

jgraunke77
Contributor II
Contributor II
Author

Thanks for your reply... I think, I've explained it wrong... 

I'm loading:

 

IDTimestampemail
3842019-06-26 06:35:41waynetrain@whateverest.com

 

and I want:

 

IDTimestampemailsortedmail
3842019-06-26 06:35:41waynetrain@whateverest.comaeinrtwy
Brett_Bleess
Former Employee
Former Employee

I think you may need to attach what you have in the way of qvw file and possibly the csv file(s) as well on this one for someone to further help you.

Regards,
Brett

To help users find verified answers, please do not forget to use the "Accept as Solution" button on any post(s) that helped you resolve your problem or question.
I now work a compressed schedule, Tuesday, Wednesday and Thursday, so those will be the days I will reply to any follow-up posts.