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

Announcements
See why IDC MarketScape names Qlik a 2025 Leader! Read more
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Read text in a row until the special character found

I have a data field which consists of delay reason and department name in an one data row.

Eg:

Long Text

Shade Issue * Dying
No Greige * Aw Greige

I want to read above data field and need to load data in to two columns as below.

Long Text

Delay Reason

Department

Shade Issue * DyingShade IssueDying
No Greige * Aw GreigeNo GreigeAw Greige

Please help on this..

1 Solution

Accepted Solutions
tresesco
MVP
MVP

If your special character is always '*', you can try like:

Load

          SubField([Long Text], '*' , 1) as [Delay Reason],

          SubField([Long Text], '*', 2) as Department

View solution in original post

3 Replies
tresesco
MVP
MVP

If your special character is always '*', you can try like:

Load

          SubField([Long Text], '*' , 1) as [Delay Reason],

          SubField([Long Text], '*', 2) as Department

rohit214
Creator III
Creator III

use below code

For Delay reason:- subfield([Long Text],'*')

for Department:-(subfield([Long Text],'*',2)

thanks

rohit

Not applicable
Author

It works !!  Thanks alot