Skip to main content
Announcements
Customer Spotlight: Discover what’s possible with embedded analytics Oct. 16 at 10:00 AM ET: REGISTER NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
abhaysingh
Specialist II
Specialist II

Trim dedicated String

Hi Guys,

I have field in which values are like below

jaipur

imp. jaipur

Bearings

imp. Bearings

i want to exclude imp. from the values.. how can i achieve it

thanks

12 Replies
abhaysingh
Specialist II
Specialist II
Author

Thanks for help,

I this if i want to replace two values simultaneously than?

say e.g.

box/stell

i want to show only Box as output?

thanks in advance

avinashelite

if you have all the values as / separate than then try with subfield(field_name,'/',1) as new_field

PrashantSangle

Hi,

try like

if(match(fieldName,'imp.'),replace(fieldName,'imp.',''),if(match(fieldName,'/stell'),replace(fieldName,'/stell','')))

or

if you have all the values as / separate than then try what avinash suggested.


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 🙂