Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
jcarpenter9
Partner - Creator
Partner - Creator

How to indent expression labels

I created a straight table in horizontal mode (Presentation tab) with indented expression labels, but the indents are lost in AJAX. Is there a way to indent expression labels in horizontal mode in AJAX?

It looks like this in the desktop client, standard view:

indent_label_nonAJAX.png

But in AJAX or web view my lovely indented labels are all aligned to the left. I was disappointed, and my customer isn't too happy either. I tried inserting the tab character like =chr(9) & 'Avg # days...', but the result was the same as using spaces, like this:

indent_label_AJAX.png

6 Replies
vireshkolagimat
Creator III
Creator III

Hi, how you got the indent lables. I have a similar data like below but when i laod the data all text will get aligned to left.

rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi James,

Use chr(160) to generate leading spaces that persist in Ajax.

Can I keep space in chart title?

-Rob

http://masterssummit.com

http://qlikviewcookbook.com

vireshkolagimat
Creator III
Creator III

Hi Rob,

I have a straight table and i am using the below expression to indent the text but nothing is changing.

if(level1='Merge',repeat(chr(1600,4))

I am trying to indent Merge text in a table which has level1 as a header field.

thanks

Viresh

rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

Use "160" for the chr, not "1600".

-Rob

vireshkolagimat
Creator III
Creator III

Oh sorry, instead of bracket, i have added zero.

if(level1='Merge',repeat(chr(160),4))

rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

Can you post a sample qvw? Or your complete expression? I expect it would be something like:

if(level1='Merge',repeat(chr(160),4) & level1, level1)


-Rob