Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
cancel
Showing results for 
Search instead for 
Did you mean: 
fashid
Specialist
Specialist

Subfield issue

Hi Everybody,

I have an issues with subfield operation .

I have a dataset which contains domin name and username in the folowing format

DOMAIN\abc

DOMAIN\xyz

DOMAIN\efg

I needed to extract just the user names so i used the subfield function

Subfield(Upper([Authenticated user]),'\') as AuthenticatedUser

The issue that i am facing here is that , when i create a list box of the AuthenticatedUser field , Along with the desired output i also get the the original rows which are along with the DOMAIN keyword

eg

ABC

XYZ

EFG

DOMAIN\ABC

DOMAIN\XYZ

DOMAIN\EFG

1 Solution

Accepted Solutions
PrashantSangle

Hi,

Try like,

Upper(Subfield([Authenticated User],'\',2))

Regards

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂

View solution in original post

6 Replies
PrashantSangle

Hi,

Try like,

Upper(Subfield([Authenticated User],'\',2))

Regards

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
Anonymous
Not applicable

Hi,

You need to give a third parameter in the subfiled function.

Try Subfield(Upper([Authenticated user]),'\',-1)

Regards,

Greeshma

avinashelite

Hi Nadeem,

If you want the 2 parameter of the sub-field then you need to pass as that as the 3 parameter

Upper(Subfield([Authenticated User],'\',2))


to get second filed we are giving it as 2, if you want 1 then give 1 respectively

fashid
Specialist
Specialist
Author

None of them are working

avinashelite

please share the sample data, will see what s the issue

fashid
Specialist
Specialist
Author

Actually the duplicate fields were coming from a table further in the script which had the same feld which led to concatenation.

Thanks for all the help guys