Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
indra
Contributor II
Contributor II

How to split Dimension Label in to two lines in barchart in Qliksense

Hi Team,

How to split Dimension Label in to two lines in barchart in Qliksense.

indra_0-1709280163151.png

 

Labels (1)
5 Replies
LRuCelver
Partner - Creator III
Partner - Creator III

You can use Chr(10) to add linebreaks to the text.

If you need it as a dimension, wrap it in an Aggr() over the original dimension so the filters are applied correctly.

Here is a small example that adds a linebreak after the 4th word. You can be creative in regards to where, how and how many linebreaks you want to add.

=Aggr(Left(LongLabel, FindOneOf(LongLabel, ' ', 4) - 1) & Chr(10) & Right(LongLabel, Len(LongLabel) - FindOneOf(LongLabel, ' ', 4)), LongLabel)
indra
Contributor II
Contributor II
Author

Hi,

I used Chr(10), but not getting expected output. By using the above logic also not getting the expected result.

anat
Master
Master

Chr(10) will not work, you have to extend the object to view full text

indra
Contributor II
Contributor II
Author

Hi, 

The label length is big. so we extended the object as much possible, but we are not able to extend object upto sheet ending, due to graph is not good to see users.