Qlik Community

QlikView Scripting

Discussion Board for collaboration on QlikView Scripting.

Announcements

Breathe easy -- you now have more time to plan your next steps with Qlik!
QlikView 11.2 Extended Support is now valid through December 31, 2020. Click here for more information.

agrimroquette
Not applicable

Separator

Hi all,

I want to get “ROSE Hervé” from below value,

CN=ROSE Hervé,OU=Users,OU=0025,OU=Lestrem

This is what I did in script :-

SubField("Manager" ,   ','   ,1) as "ManagerName",

   SubField("Manager",   ','   ,2) as USER,

   SubField("Manager",   ','   ,3) as "OU Number",

But here is one more separator that is  ‘=’ and I don’t want CN=ROSE Hervé I want only “ROSE Hervé” as result.

Thanks

1 Solution

Accepted Solutions
loveisfail
Not applicable

Re: Separator

May be this?

SubField(SubField("Manager",',',1),'=',-1) as "ManagerName",

Life is so rich, and we need to respect to the life !!!
1 Reply
loveisfail
Not applicable

Re: Separator

May be this?

SubField(SubField("Manager",',',1),'=',-1) as "ManagerName",

Life is so rich, and we need to respect to the life !!!