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

Help

Hi all,

I need one help

I have one Email field.that consist all emails Dvision ,region and Branch wise.But what i want is,i want to divide that email foeld into Division , region and Branch wise.

How to do that ?

can any one help me ......

Regards,

Naga

6 Replies
arulsettu
Master III
Master III

can you post sample data

Not applicable

I guess, subfield() will help, but I agree with Arul, can you provide some rows of your data?

Not applicable

You can use SubField() function if the email has any delimiter or left/Mid function if the email has fixed number of character for each category.

If you post any sample data will help to find the exact problem.

avinashelite

if you have a separator for all the  fields than try like this:

subfield(fieldname,separator,position of the field)

eg:

subfield(fieldname,'-',2)

here separator is - , similarly it can be , - : anything

2, if the position after the separator  

jagan
Luminary Alumni
Luminary Alumni

Hi,

Try like this

Note: assuming that - as separator of email IDS

LOAD

*,

Subfield(EmailID,'-',1) AS Dvision ,

Subfield(EmailID,'-',1) AS region,

Subfield(EmailID,'-',1) AS  Branch

FROM DataSource;


Hope this helps you.



Regards,

jagan.

thimma_paul
Contributor III
Contributor III

Hi Can you please give some sample data, so that, we can look on it.