Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
qlikvw2019
Contributor
Contributor

Conditional KPI Color

I have below KPI , its not changing color as per the conditions specified in the code 

Text object prop-> Background -> color> calculated

 

Conditions: Display RED if % > 70 (default)

Display Red if % > 20 (when anything else is selected on the block chart)

 

Capture.JPG

 

1 Solution

Accepted Solutions
sunny_talwar

May be this

if(GetSelectedCount(BLDG)=0 and num(sum(ROOMSIZE)/2400
, '#.0%')>=0.70,GREEN(),
if(GetSelectedCount(BLDG)>=1 and num(sum(ROOMSIZE)/2400
, '#.0%')>=0.20,GREEN()))

 

View solution in original post

2 Replies
sunny_talwar

May be this

if(GetSelectedCount(BLDG)=0 and num(sum(ROOMSIZE)/2400
, '#.0%')>=0.70,GREEN(),
if(GetSelectedCount(BLDG)>=1 and num(sum(ROOMSIZE)/2400
, '#.0%')>=0.20,GREEN()))

 

Brett_Bleess
Former Employee
Former Employee

Nazneen, did Sunny's post an example get you what you needed?  If so, do not forget to come back to the thread and use the Accept as Solution button on his post to give him credit for the help and let other Community Members know this did work for you.  If you are still working on things, leave an update as to what you still need.

Regards,
Brett

To help users find verified answers, please do not forget to use the "Accept as Solution" button on any post(s) that helped you resolve your problem or question.
I now work a compressed schedule, Tuesday, Wednesday and Thursday, so those will be the days I will reply to any follow-up posts.