Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

parse string

Hi,

from a field value like "80-100%" i want to extract the first % value (80) and save it in a field and also the 2nd % value (100) and save it in another field.

How can this be done ?

Thanks.

K

2 Replies
tresesco
MVP
MVP

try:

Load

Subfield(Yourfield, '-', 1) as Field1,

PurgeChar(Subfield(YourField, '-', 2), '%') as Field2

From ...;

Not applicable
Author

Hi,

I hope, you can use the function SubField(Field1,'-') for first value to be stored and TextBetween(Field1, '-','%') for second value to be stored in variable.