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: 
Not applicable

String function

Hi all wizards,

Client have a table looking like this:

AAA, BB, CCC, DDDD, EE

AAA, CCC, DDDD, EE

CCC, DDDD, EE

AAA, BB, CCC, DDDD, EE

AAA, DDDD, EE

AAA, BB, CCC, DDDD

I need to capture DDDD, but it moves all the time as a result of bad input in underlying systems. Which string function can I use to do this?

Can't use Right or Left, Subfield or FindOneOf (as it's not a string) - so what have I left, or am I missing something...

Best regards

Torbjörn Ungvall (@Ungvall)

Senior Business Discovery Manager

Advectas AB

Labels (1)
1 Solution

Accepted Solutions
dpietersz
Creator
Creator

You could use Index().

I made a small exemple for you.

Edit: changed to qvw

View solution in original post

2 Replies
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

You'll first have to append the fields together. After that you can use wildmatch or substringcount:

substringcount(Field1&Field2&Field3&Field4&Field5,'DDDD') as DDDD_Match


talk is cheap, supply exceeds demand
dpietersz
Creator
Creator

You could use Index().

I made a small exemple for you.

Edit: changed to qvw