Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
durgabhavani
Creator III
Creator III

Can anyone help me to display the total showing on top of a bar chart in two lines?

Hi All,

my only one expression in barchart contains two parts, one part showing the count, one  part showing sum. but it is lengthy on bar.

So can anyone help me to display the value on barchart in two lines?

Thanks,

Durga

1 Solution

Accepted Solutions
MayilVahanan

Hi

Try like this

Expression1:

= DaysExpression

Check bar Checkbox and unCheck the Value on Data Points Checkbox


Expression2:

=DaysExpression & 'Days'& Chr(10) & ReviewExpression &'Reviews'

UnCheck bar Checkbox and Check the Value on Data Points Checkbox

Hope it helps

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.

View solution in original post

7 Replies
jonathandienst
Partner - Champion III
Partner - Champion III

Not sure I understand. Do you mean the legend text is too lengthy, or the dimension text?

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
ashwanin
Specialist
Specialist

Use Chr (10) between your expressions. exp1  & Chr(10) & exp 2

Kushal_Chawda

try below expression

=dual(SUM({$<%_CDD_STAT_CDE5*={'Complete','Cancelled'}>} ACTV_DURATION)&' Days, '&COUNT({$<%_CDD_STAT_CDE5*={'Complete','Cancelled'}>} DISTINCT %_PRFL_CTXT_ID)&'Reviews',

\SUM({$<%_CDD_STAT_CDE5*={'Complete','Cancelled'}>} ACTV_DURATION)/ COUNT({$<%_CDD_STAT_CDE5*={'Complete','Cancelled'}>} DISTINCT %_PRFL_CTXT_ID))

durgabhavani
Creator III
Creator III
Author

Hi Kush,

it is showing error in expression.


jonathandienst
Partner - Champion III
Partner - Champion III

The expression looks OK, except for the backslash which you should remove. Looks like a typo.

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
MayilVahanan

Hi

Try like this

Expression1:

= DaysExpression

Check bar Checkbox and unCheck the Value on Data Points Checkbox


Expression2:

=DaysExpression & 'Days'& Chr(10) & ReviewExpression &'Reviews'

UnCheck bar Checkbox and Check the Value on Data Points Checkbox

Hope it helps

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
durgabhavani
Creator III
Creator III
Author

Thanks for responses.

its working. when i keep two expressions in line by line in one expression.