Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Pie chart percentage

Hi All, I have dynamic percentage. I want to show that % in pie chart against 100%. so if I have 40% in green then 60% must be in greay. Please help me on this.

6 Replies
qlikview979
Specialist
Specialist

May be it will help full for you,

write the expression in background color

Graycode:-RGB(219,219,219)

RGB value for the grey in list box | Qlik Community

Show Percents in Pie Chart | Qlik Community

rahulpawarb
Specialist III
Specialist III

Hello Narendra,

Pie Chart coloring is done on the basis of list of values of the selected dimension wrt added expression. In attached example, we have Pie Chart with Product Category dimension and Total Sales as an expression. Listed dimension have 3 different values - Accessories, Bikes & Clothing. Therefore, We could see three different colors on Pie Chart i.e. Green, Grey & Lime for First, Second & Third value of added dimension.

I am not sure we can add coloring to Pie Chart on the basis of percentage i.e. 60% or 40%. Might be I don't know that side of Pie Chart.

Regards!

Rahul

Anil_Babu_Samineni

I would suggest you to create Bucket in Back end then use That field into Front end with consideration of Colors

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
Not applicable
Author

Hi,

Have used formula to calculate%.

Sum(Actual)/100... It shows 55%

Now I want to show 55% out of 100%.

So 55% will be green and rest is greay. What dimensions or metric we need to define?

Anil_Babu_Samineni

May be do this? I assume, You are not using Relative Function

Expression - Num(sum(Actual)/100,'#,#0%')

BG Expression -- If(sum(Actual)<=55, Green(), LightGray())

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
ankit777
Specialist
Specialist

Hi

You should use a dimension using a valuelist function.

Use in dimemsion-=ValueList('list','Actual','Other')

IN expression= if(ValueList('list','Actual','Other') ='Actual',formulafor%,
if(ValueList('list','Actual','Other') ='2',1-formulafor%))

Another option would be using a Gauge chart instead of Pie