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: 
agni_gold
Specialist III
Specialist III

Extract all string after special character

Hi All , 

Input : 

A|B|C|D
A|B|C|D|E

 

Output : 

D

D|E

 

Thanks

Labels (1)
6 Replies
Anil_Babu_Samineni
MVP
MVP

Why D & E for second row? If only E try this? 

SubField(Field, '|', -1)

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
agni_gold
Specialist III
Specialist III
Author

But i required , 

 

D

D|E

 

like this , otherwise it is so simple.

 

Thanks

Anil_Babu_Samineni
MVP
MVP

That is fine, Can you explain your business? Or at least 5 Rows and expected result?

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
sunny_talwar
MVP
MVP

There is a special character before B and C too... why only extract D and E?
arjun2b
Contributor
Contributor

Hi All,

Even I need help on the same scenario, need all the characters after the 3rd occurrences, 4th occurrence should not be considered.

3rd occurrence of the '|' is before 'D' need all the characters after it. D|E|F or so on need all the string after it.
Thanks in advance..
Regards,
Arjun

cwolf
Creator III
Creator III

Test:
LOAD 
F1,
Right(F1,Len(F1)-Index(F1,'|',3)) as F2  
INLINE [
    F1
    A|B|C|D|E|F
    A|B|C|D|E
    A|B|C
    A|B|C|D
    A|B
];