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

Announcements
Note: You may notice some temporary visual or styling issues in the Community. Our vendor is actively investigating.
cancel
Showing results for 
Search instead for 
Did you mean: 
hd94
Contributor II
Contributor II

Find Text separeted by blank

Hello, 

I have field with long text separeted by blank and i want to keep text with value 'SS'

Exemple : 'TOTO TUTU TITI_SS TOTI TUTI_SS TYTY' 

I want to keep the first text with "SS" , in my example, i want to keep TITI_SS in other field and not TUTI_SS. 

Thank you a lot. 

ps : sorry for my english

HD

Labels (1)
1 Solution

Accepted Solutions
MindaugasBacius
Partner - Specialist III
Partner - Specialist III

The solution:
=Right(Left('TOTO TUTU TITI_SS TOTI TUTI_SS TYTY', Index('TOTO TUTU TITI_SS TOTI TUTI_SS TYTY', 'SS') + 1),
Len(Left('TOTO TUTU TITI_SS TOTI TUTI_SS TYTY', Index('TOTO TUTU TITI_SS TOTI TUTI_SS TYTY', 'SS') + 1)) - Index(Left('TOTO TUTU TITI_SS TOTI TUTI_SS TYTY', Index('TOTO TUTU TITI_SS TOTI TUTI_SS TYTY', 'SS') + 1), ' ', -1))

 

Screenshot_1.png

View solution in original post

3 Replies
Yousef_Amarneh
Partner - Creator III
Partner - Creator III

If the length of the word is always fixed (length=7 which is 4 chars and underscore and SS) then you can use the below

Right(SubField(YourColumnName,'SS',1),7) as Column1

 

Yousef Amarneh
MindaugasBacius
Partner - Specialist III
Partner - Specialist III

The solution:
=Right(Left('TOTO TUTU TITI_SS TOTI TUTI_SS TYTY', Index('TOTO TUTU TITI_SS TOTI TUTI_SS TYTY', 'SS') + 1),
Len(Left('TOTO TUTU TITI_SS TOTI TUTI_SS TYTY', Index('TOTO TUTU TITI_SS TOTI TUTI_SS TYTY', 'SS') + 1)) - Index(Left('TOTO TUTU TITI_SS TOTI TUTI_SS TYTY', Index('TOTO TUTU TITI_SS TOTI TUTI_SS TYTY', 'SS') + 1), ' ', -1))

 

Screenshot_1.png

hd94
Contributor II
Contributor II
Author

Thank you very much