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

Pie Chart

Hi,

I need to display both the percentage and value in the Pie chart as in the screenshot attached.

I have used Sum(Sales)/Sum(TOTAL Sales) to display the percentage. But as per the requirement i need to show the values also.

Is there any possibility to display the Value also?

Regards,

Simson

1 Solution

Accepted Solutions
maxgro
MVP
MVP

7 Replies
ecolomer
Master II
Master II

You can duplicate the expresion ... one with the value and another with the %

maxgro
MVP
MVP

PFA

Not applicable

Hi   Massimo ,

Thanx for share the qvw & it is useful to me .

in the 2 nd chart you  are use dual function. but in the chart sales%  decimal limitor is ,(comma). how to change it .(dot).

in the first chart is also , but it is modified as. by number format.

aveeeeeee7en
Specialist III
Specialist III

Hi

You need to do little changes in the Edit Script.

Your earlier script was:

SET ThousandSep='.'

SET DecimalSep=','

....

....

....

which is giving you the wrong result.

Kindly change it to:

SET ThousandSep=','

SET DecimalSep='.'

....

....

....

See the Snapshot:

Also, see the Attachment.

simsondevadoss
Partner - Creator III
Partner - Creator III
Author

Thanks everyone

aveeeeeee7en
Specialist III
Specialist III

Hi

i

Is your issue resolved. Kindly check the attached application and see the used expressions in it.

simsondevadoss
Partner - Creator III
Partner - Creator III
Author

Hi Aviral,

I tried using below expression and it worked.

dual(num(sum(Sales)/sum(total Sales), '#0.0%') & chr(44) & num(sum(Sales),'#0'),  sum(Sales))

Regards,

Simson