Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Use index-function to show a negative number

Hello,

i have a field that contains:

Hello -10 Temperature today

i use this functions to show the value -10. But it doesn't work:

mid(field,index(field,-10,),len(-10))

i tried this one, too: mid(field,index(field,'-'&10),len('-'&10)).

Can anyone help me please? Thanks!

1 Solution

Accepted Solutions
Not applicable
Author

Hi,

try to include your pattern into single quotes like this:

mid(field,index(field,'-10',),len('-10'))

HtH

Roland

View solution in original post

2 Replies
Not applicable
Author

Hi,

try to include your pattern into single quotes like this:

mid(field,index(field,'-10',),len('-10'))

HtH

Roland

Not applicable
Author

Hi,

Try yhe keepchar  Function:

keepchar (fiekd,'-0123456789' )

Hoe thet ehat you want.