Skip to main content
Announcements
Live today at 11 AM ET. Get your questions about Qlik Connect answered, or just listen in. SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
crystles
Partner - Creator III
Partner - Creator III

Separate String and combine into one field

I have a field that we are pulling from Active Directory that they are using to store user roles for a separate program.

I need to use these fields in a document, but the problem is, if the user has more than one role, it just adds them to the field with a space and comma separating them. See example

AD UserNameRoleID
JohnAdmin
SallyAdmin, Update
BobUpdate

Looking at the example, the user "John" and "Bob" would not be a problem. However, Sally has two roles, and they are both listed in the same field.

What I need my report to look like, in order to feed it into the Qlikview document we have, is for it to look like the example below instead. Any help or advice would be greatly appreciated.

AD UserNameRoleID
JohnAdmin
SallyAdmin
SallyUpdate

Bob

Update
1 Solution

Accepted Solutions
sunny_talwar

Try like this:

LOAD [AD UserName],

           Subfield(RoleID, ', ') as RoleID

FROM ....

View solution in original post

2 Replies
sunny_talwar

Try like this:

LOAD [AD UserName],

           Subfield(RoleID, ', ') as RoleID

FROM ....

crystles
Partner - Creator III
Partner - Creator III
Author

That worked perfectly! Thank you!