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: 
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.