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

String query

Hello,

I'm trying to remove values before a certain character in a field, see example below:

Current field value

101 - 204

10 - 304

20 - 30

What I want to see is

204

304

30


So in other words I want to remove all values before a hyphen so that the last few values are shown.

Any suggestions?

Thanks,


Ralph

1 Solution

Accepted Solutions
maxgro
MVP
MVP

load

          field,

          subfield(field, '-', 2) as newfield,

          ....

View solution in original post

3 Replies
maxgro
MVP
MVP

load

          field,

          subfield(field, '-', 2) as newfield,

          ....

alexandros17
Partner - Champion III
Partner - Champion III

Trim(Mid(myField, Index(myField,'-')+1))

let me know

jpenuliar
Partner - Specialist III
Partner - Specialist III

Hi,

Try =Right(testfield,Index(testfield,'-')-1)