Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Mastering Change Data Capture: Read Now
cancel
Showing results for 
Search instead for 
Did you mean: 
adiarnon
Creator III
Creator III

persistent color pie chart

hi,

i have a pie chart with

expression:

count({<Rate_MonthYear={"$(v_early)"}>}DISTINCT Central_BP)

dimention:

=if(aggr((sum({<Rate_MonthYear={"$(v_early)"}>}MONTHLY_ON_TIME_UNITS_QTY)/sum({<Rate_MonthYear={"$(v_early)"}>}MONTHLY_RCVD_UNITS_QTY)),Central_BP)>=0.95,'Preferred',
if(aggr((sum({<Rate_MonthYear={"$(v_early)"}>}MONTHLY_ON_TIME_UNITS_QTY)/sum({<Rate_MonthYear={"$(v_early)"}>}MONTHLY_RCVD_UNITS_QTY)),Central_BP)>=0.85,'Satisfactory','Unsatisfactory'))

i checked th "persistent color"

i have 3 colors and if when im chossing 2 of them its behaiving good (keep the color)

but the third color if im chossing it it changing!

what am i doing wrong?

adi

10 Replies
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

I don't understand what you're trying to do in the first place. Can you post a small qlikview document that demonstrates the problem?


talk is cheap, supply exceeds demand
adiarnon
Creator III
Creator III
Author

i have a problem with upload documents in my company 😕

my pie chart have dimention with 3 values

'Preferred' (green)

'Satisfactory' (yellow)

'Unsatisfactory' (red)

i want that each value will have a color

no meter what im selecting

how can i do it?

Not applicable

are yiou using the colors on the colr tab (the first 3) and checking 'persistant colors' or are you coding colors in your expression to make sure you get

'Preferred' (green)

'Satisfactory' (yellow)

'Unsatisfactory' (red)

By just using the color tab, the colors are picked by the system based on volume, which can change.  It sounds like since you want certain colores to represent status, you want to place your colors in the background color of your expression(s)

adiarnon
Creator III
Creator III
Author

hi tnx

but,

i tried and its not working...

the color chainging by th edimention and not by the expression

adi

Not applicable

you can place an if test within the background color expression

an example of something I did similar (in a stright table) to color the cells a specific color based on status

=(if(PRIORITY='Urgent',RGB(255,0,0), if(PRIORITY='Low',RGB(0,255,0), if(PRIORITY='Medium',RGB(255,255,0), if(PRIORITY='High',RGB(255,128,0))))))

adiarnon
Creator III
Creator III
Author

But my dimention is calculated-

if(aggr((sum({<Rate_MonthYear={"$(v_early)"}>}MONTHLY_ON_TIME_UNITS_QTY)/sum({<Rate_MonthYear={"$(v_early)"}>}MONTHLY_RCVD_UNITS_QTY)),Central_BP)>=0.95,'Preferred',
if(aggr((sum({<Rate_MonthYear={"$(v_early)"}>}MONTHLY_ON_TIME_UNITS_QTY)/sum({<Rate_MonthYear={"$(v_early)"}>}MONTHLY_RCVD_UNITS_QTY)),Central_BP)>=0.85,'Satisfactory','Unsatisfactory'))

and i tried in the  background color of the expression-

if(aggr((sum({<Rate_MonthYear={"$(v_early)"}>}MONTHLY_ON_TIME_UNITS_QTY)/sum({<Rate_MonthYear={"$(v_early)"}>}MONTHLY_RCVD_UNITS_QTY)),Central_BP)>=0.95,RGB(255,0,0),

if(aggr((sum({<Rate_MonthYear={"$(v_early)"}>}MONTHLY_ON_TIME_UNITS_QTY)/sum({<Rate_MonthYear={"$(v_early)"}>}MONTHLY_RCVD_UNITS_QTY)),Central_BP)>=0.85,'RGB(255,128,0)',RGB(0,255,0))

but it stil not working

krishna20
Specialist II
Specialist II

Hi,

A sample app is much better to guide you in the right way.. Please post a sample app.

lironbaram
Partner - Master III
Partner - Master III

hi

i would try to us the aggr as the outside function something like

aggr(if((sum({<Rate_MonthYear={"$(v_early)"}>}MONTHLY_ON_TIME_UNITS_QTY)/sum({<Rate_MonthYear={"$(v_early)"}>}MONTHLY_RCVD_UNITS_QTY))>=0.95,RGB(255,0,0),

if((sum({<Rate_MonthYear={"$(v_early)"}>}MONTHLY_ON_TIME_UNITS_QTY)/sum({<Rate_MonthYear={"$(v_early)"}>}MONTHLY_RCVD_UNITS_QTY))>=0.85,RGB(255,128,0),RGB(0,255,0))),Central_BP)

adiarnon
Creator III
Creator III
Author

its not working