Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Mid statement based on character

Hi

I want to remove some text from the beginning of a field by expression / script.  The seperater is '#', but it is not always at the same mid point of the field.  Could anyone help.  Please see below  ....

123;#Peter Jones

56789;# John Smith

I want to show .....

Peter Jones

John Smith

Any thoughts welcome

Thanks  

Phil

1 Solution

Accepted Solutions
tresesco
MVP
MVP

SubField(YourField, '#', 2) as Name

View solution in original post

4 Replies
tresesco
MVP
MVP

SubField(YourField, '#', 2) as Name

PrashantSangle

Hi,

use subfield()

try like

subfield(fieldName,'#',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 🙂
maxgro
MVP
MVP

maybe subfield


load

  field,

  trim(SubField(field, '#', 2)) as newfield

Inline [

field

123;#Peter Jones

56789;# John Smith

];

Anonymous
Not applicable
Author

Got it.

Thanks guys

Phil