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

Announcements
Qlik Connect 2026! Turn data into bold moves, April 13 -15: Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Linebreak as delimiter for SubField()

I've been using SubField(Text, ' ') to split a text up into words.

In addition to that I obviously also want to split it when there is a linebreak but I can't seem to figure out how to use that as a delimiter.

I've tried using \n and/or \r as a delimiter string but that didnt work.

Anyone got a clue about how to parse a linebreak with SubField()?

1 Solution

Accepted Solutions
rustyfishbones
Master II
Master II

You can use CHR(10)

View solution in original post

3 Replies
rustyfishbones
Master II
Master II

You can use CHR(10)

PrashantSangle

Hi,

use

SubField(Text, chr(10))

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
peterkumar
Contributor III
Contributor III

Thanks!

How do i create a line break in a cell in a pivot table?

Chr(10) does not seem to work.  

It works in a table.

Thanks again!

Peter