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

Legend in Chart

Hi at all,

how can I set the legend within the chart like in this sample?

Thanks,

Martin

qlik_pie.PNG

1 Solution

Accepted Solutions
kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

You can create another expression and make that as "Value on Data Points".

Lets assume you have

Dimension : Region

Expression : Sum(Sales)

Then create another Expression in Pie Chart where Expression will be

=Region&'-'& Num(Sum(Sales),'#,##0.00')

And click on this expression and Check the "Value on Data Points".

Hope this will help

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!

View solution in original post

4 Replies
ecolomer
Master II
Master II

In the expression, write this:

Sum(Value)/Sum(TOTAL Value) & chr(10) & expression for select the colour

2016_11_02_16_13_01_Notificación_nueva.png

MK9885
Master II
Master II

It will only show values (numerics), not text. But a hover over or show legend should work for you.

Check Show values on data points in Expression Tab and then check Show legend in Dimension Tab.

If a user hover over on that particular slice then it will show him/her the full name of the value and your num too.

maxgro
MVP
MVP

you can use dual in the expression (replace with your dim and expression)

dual(

Dim1 &' - '& chr(10) & Num(SUM(Expression1), '#,##0'),

Num(SUM(Expression1), '#,##0')

)

1.png

kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

You can create another expression and make that as "Value on Data Points".

Lets assume you have

Dimension : Region

Expression : Sum(Sales)

Then create another Expression in Pie Chart where Expression will be

=Region&'-'& Num(Sum(Sales),'#,##0.00')

And click on this expression and Check the "Value on Data Points".

Hope this will help

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!