Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
Bubskim
Contributor II
Contributor II

concat

Please help me combine two emails into one so they show as one in my chart.

exampleemail

exampleemail@example.com

^ I would like these two above to show as exampleemail and be grouped together 

11 Replies
rutger_jansen
Contributor III
Contributor III

That's sample data. You might be taking yours from a database or flat file. In that case you put the following lines ('Preceding load'):

LOAD
subfield([email], '@', 1) as [fixed_email],
*;

above the load statement, e.g. for an Excel file:

LOAD
subfield([email], '@', 1) as [fixed_email],
*;
email:
LOAD
email, size
FROM
[..\emails.xlsx]
(ooxml, embedded labels, table is Sheet1);

or from a database:

LOAD
subfield([email], '@', 1) as [fixed_email],
*;
SQL Select
email, size
from database.table;

 

or for 

Brett_Bleess
Former Employee
Former Employee

Kimberly, did Rutger's final solution work for you?  If so, please be sure to give credit by using the Accept as Solution button on the post that best helped with things.  If you came up with a different solution, please consider posting that and mark it as the accepted solution so others will know for sure what worked in this case...

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.