Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
prutis66
Contributor III
Contributor III

inserting a line break in field values ********in Qliksense not in Qlikview*********

Hi ,

i have dimension values say abcdef. I need if length is more than 3, than it must appear in new line.

like: abc

          def

Labels (2)
5 Replies
mrybalko
Creator II
Creator II

Hello, @prutis66 

Try this code:

=if(len(ObjectID) >=3, left(ObjectID, 3) & chr(10) & mid(ObjectID, 4), ObjectID)

I suggest to make new field on data loading stage

prutis66
Contributor III
Contributor III
Author

Hi Thanks for your response but i am using qliksense and is not working in it
mrybalko
Creator II
Creator II

line break.JPG

prutis66
Contributor III
Contributor III
Author

line break.PNG


@mrybalko wrote:

line break.JPG


 

prutis66
Contributor III
Contributor III
Author

Hi , it is showing as space and not as new line. i am using qliksense desktop. should i have to set any line break in initial declaration section?