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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Issue with line spacing in a field

Hi guys

Another day and another cry for help !

I have a field which shows spacing between entries in SQL like this

Capture.JPG.jpg

When I add the field into a table within Qlikview it appears to be adding carriage returns instead of spaces in the field like it returns in SQL. Screen below from Qlikview

Capture1.JPG.jpg

Can anyone shed any light on this? I would like Qlikview to display the data the same as SQL does!  Can this be done?

1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

I think you have newline characters in the DB. They just aren't showing in SQL.

Try this:

replace([bullet_text],chr(13),' ')

This could be put in your load script as:

replace([bullet_text],chr(13),' ');

View solution in original post

5 Replies
Anonymous
Not applicable
Author

I think you have newline characters in the DB. They just aren't showing in SQL.

Try this:

replace([bullet_text],chr(13),' ')

This could be put in your load script as:

replace([bullet_text],chr(13),' ');

rustyfishbones
Master II
Master II

Have you tried changing the width of the column to see if it still adds the Carriage Returns

or you can try something like

REPLACE(Matrix_bullet_text, CHR(13),' ')

anbu1984
Master III
Master III

Not sure how you got carriage returns. You can use Purgechar(Chr(10) & Chr(13)) to remove newline and carriage return

Anonymous
Not applicable
Author

You probably have those line breaks on SQL too, but they're not appear there.

Try replace this line breaks by spaces on your field, something like this:

Replace(Matrix_bullet_text, Chr(13), ' ') as Matrix_bullet_text

If you could post here a sample qvw, It would help.

Regards,

Gabriel

Anonymous
Not applicable
Author

Another question answered !

Thanks a lot guys.  Much appreciated...