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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
dirk1955
Creator
Creator

Searching for ' - ' in a string.

Hi,

To split some data in a string, i'm using "FindOneOf(RefIDWL,' - ',1)".

Everything works wel except that the function does not only find ' - ' but also '-'.

Is there a solution?

Greetings 

Dirk.

Labels (2)
1 Solution

Accepted Solutions
sunny_talwar
MVP
MVP

I think what you really need is Index() function

Index(RefIDWL, ' - ', 1)

View solution in original post

2 Replies
Marcos_rv
Creator II
Creator II

try this:
FindOneOf(replace( RefIDWL , ' ' , '@' ) ,'@-@',1)
sunny_talwar
MVP
MVP

I think what you really need is Index() function

Index(RefIDWL, ' - ', 1)