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

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

String function in script

Hello,

I have hopefully a very straightforward question that I just can't resolved. I have a particular field that displays data in the format "John Test TT - RRR" etc. I want it to be simply displayed as "John Test" so require " TT - RRR" to be removed. I've tried a range of string functions but haven't been able to get the correct answer. Thanks in advance,

Ralph

10 Replies
preminqlik
Specialist II
Specialist II

in script write

let Vname=trim(replace('John Test TT - RRR','TT - RRR',' '));

now select  it where ever you want in your sheet by front end with  "Vname"

...

Thanks for asking this question .

thank you

-premhas