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

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

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