Qlik Community

Qlik Sense App Development

Discussion board where members can learn more about Qlik Sense App Development and Usage.

kellymcgrady
Contributor

Wrap Text

I am bringing in an excel document that I want to touch as little as possible but one of the cells has wrapped text in it and I don't know how to get rid of the extra letters it causes.

Tags (1)
1 Solution

Accepted Solutions
MVP
MVP

Re: Wrap Text

I am just guessing, but you probably want to remove some special characters like a LF character, so maybe try

LOAD

     FIELD,

    Purgechar(FIELD, chr(10)&chr(13) ) as FIELD_PURGED,

     ...

FROM ...;

6 Replies
MVP
MVP

Re: Wrap Text

You can use Keepchar() to keep only characters you want to show or Purgechar() to explicitely drop some characters from your string.

Have a look at the HELP page of both functions.

String functions ‒ Qlik Sense

kellymcgrady
Contributor

Re: Wrap Text

Will that work on just the one problem cell ?

MVP
MVP

Re: Wrap Text

Can you detail how your input file / data looks like or post a sample file?

kellymcgrady
Contributor

Re: Wrap Text

So I tried it but it got rid of all the corresponding letters not just the phrase I needed removed

MVP
MVP

Re: Wrap Text

I am just guessing, but you probably want to remove some special characters like a LF character, so maybe try

LOAD

     FIELD,

    Purgechar(FIELD, chr(10)&chr(13) ) as FIELD_PURGED,

     ...

FROM ...;

kellymcgrady
Contributor

Re: Wrap Text

I may just have to touch the data after all. Thank you for your help!

Community Browser