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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
kaldubai
Creator
Creator

challenging Case.Parts of a string

i have a field which holds the codes for all the toppings the default once and the extra once

the field look like the following

field name : toppings

value:-061;-061;-061;-061;-061;-061;-061;-061;-061;-061;-061;-061;-061;-061;-061;-061;-061;-061;-061;-061;-061;-061;-061;-061;-061;-061;-061;-061;-061;-061;-061;-061;+636;601;671;024;023;043;061;033;059

you can see here that i have - and + value

what i want is to extract only the + once as it denote the extra toppings

your help very much appreciated

6 Replies
Anil_Babu_Samineni

Is this you want to show?

Capture.PNG

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
vinieme12
Champion III
Champion III

if your field is numeric then

Field>0

if it's string then use

left(Field,1) = '+'

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.
kaldubai
Creator
Creator
Author

thank you for your response

i only need the once that is prefixed with + and the value may have more than one sub string which is prefixed with a +

kaldubai
Creator
Creator
Author

thanks for your replay

my field is not numeric

and the string formula you provided i do not it serves what i need

vinieme12
Champion III
Champion III

can you post an excel sample?

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.
sasiparupudi1
Master III
Master III

Try

TextBetween(value,'+',';') as NewValue