Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Krish2459_58
Creator II
Creator II

script syntax

Hi,

I have a column valuse like this  UserDirectory=MZDMG; UserId=krishk.

I need to get the output like this MZDMG/krishk

Please help.

Labels (1)
2 Replies
henrikalmen
Specialist II
Specialist II

There are multiple ways, this is one option:

=replace(subfield([mystringfield], 'Directory=',2), '; UserId=','/')

rwunderlich
MVP
MVP

Here's another:

=TextBetween([mystringfield], 'UserDirectory=',';')
& '/'
& TextBetween([mystringfield], 'UserId=','')