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

How to make the text colour independent of the filter list?

I have to make the text colour of the expression independent of the selections present in the filters of Business Area, Application and PERIOD NAME.

When the value of the expression is less than the Threshold font should be red, when its above the threshold it should be green and when its between 0.994 and Threshold it should be amber.

When I select values in the filter box for Application the font colour changes to black and does not maintain the desired colour range.

My expression written in the Text format is  -

if( (1- (sum({<PERIOD_NAME=,[Business Area]=,Application=>}CUSTOMER_IMPACT_MINS)/sum({<PERIOD_NAME=,[Business Area]=,Application=>}MINS_IN_MON)) )>=[Theshold numeric], rgb(0,128,0),
if((1- (sum(CUSTOMER_IMPACT_MINS)/sum(MINS_IN_MON)))>=0.995 and (1- (sum(CUSTOMER_IMPACT_MINS)/sum(MINS_IN_MON)))<[Theshold numeric], rgb(255,92,15),
if((1- (sum({<PERIOD_NAME=,[Business Area]=,Application=>}CUSTOMER_IMPACT_MINS)/sum({<PERIOD_NAME=,[Business Area]=,Application=>}MINS_IN_MON)) )<=0.9949,rgb(255,0,0))))

Can somebody please help with the expression to ensure the colour of the font doesnt change as per the filter selection?

1 Solution

Accepted Solutions
sunny_talwar

Try this:

=if( (1- (sum({<PERIOD_NAME=,[Business Area]=,Application=>}CUSTOMER_IMPACT_MINS)/sum({<PERIOD_NAME=,[Business Area]=,Application=>}MINS_IN_MON)) )>=Only({<PERIOD_NAME=,[Business Area]=,Application=>}[Theshold numeric]), rgb(0,128,0),

if((1- (sum(CUSTOMER_IMPACT_MINS)/sum(MINS_IN_MON)))>=0.995 and (1- (sum(CUSTOMER_IMPACT_MINS)/sum(MINS_IN_MON)))<Only({<PERIOD_NAME=,[Business Area]=,Application=>}[Theshold numeric]), rgb(255,92,15),

if((1- (sum({<PERIOD_NAME=,[Business Area]=,Application=>}CUSTOMER_IMPACT_MINS)/sum({<PERIOD_NAME=,[Business Area]=,Application=>}MINS_IN_MON)) )<=0.9949,rgb(255,0,0))))

View solution in original post

15 Replies
Anil_Babu_Samineni

Perhaps this


if( (1- (sum({<PERIOD_NAME=,[Business Area]=,Application=>}CUSTOMER_IMPACT_MINS)/sum({<PERIOD_NAME=,[Business Area]=,Application=>}MINS_IN_MON)) ) >= [Theshold numeric], rgb(0,128,0),
if((1- (sum(CUSTOMER_IMPACT_MINS)/sum(MINS_IN_MON)))>=0.995 and <[Theshold numeric], rgb(255,92,15),
if((1- (sum({<PERIOD_NAME=,[Business Area]=,Application=>}CUSTOMER_IMPACT_MINS)/sum({<PERIOD_NAME=,[Business Area]=,Application=>}MINS_IN_MON)) )<=0.9949,rgb(255,0,0))))

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
Anonymous
Not applicable
Author

This doesnt seem to work

Anil_Babu_Samineni

Can you post application?

OR Try This

if( (1- (sum({<PERIOD_NAME=,[Business Area]=,Application=>}CUSTOMER_IMPACT_MINS)/sum({<PERIOD_NAME=,[Business Area]=,Application=>}MINS_IN_MON)) ) >= [Theshold numeric], rgb(0,128,0),
if((1- (sum(CUSTOMER_IMPACT_MINS)/sum(MINS_IN_MON)))>= 0.995 < [Theshold numeric], rgb(255,92,15),
if((1- (sum({<PERIOD_NAME=,[Business Area]=,Application=>}CUSTOMER_IMPACT_MINS)/sum({<PERIOD_NAME=,[Business Area]=,Application=>}MINS_IN_MON)) )<=0.9949,rgb(255,0,0))))

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
agomes1971
Specialist II
Specialist II

Hi,

please post a application sample it's easier to analyze.

Thanks

André Gomes

Anonymous
Not applicable
Author

Attached is the application.

Anonymous
Not applicable
Author

See below.. Attached the file

sunny_talwar

Try this:

=if( (1- (sum({<PERIOD_NAME=,[Business Area]=,Application=>}CUSTOMER_IMPACT_MINS)/sum({<PERIOD_NAME=,[Business Area]=,Application=>}MINS_IN_MON)) )>=Only({<PERIOD_NAME=,[Business Area]=,Application=>}[Theshold numeric]), rgb(0,128,0),

if((1- (sum(CUSTOMER_IMPACT_MINS)/sum(MINS_IN_MON)))>=0.995 and (1- (sum(CUSTOMER_IMPACT_MINS)/sum(MINS_IN_MON)))<Only({<PERIOD_NAME=,[Business Area]=,Application=>}[Theshold numeric]), rgb(255,92,15),

if((1- (sum({<PERIOD_NAME=,[Business Area]=,Application=>}CUSTOMER_IMPACT_MINS)/sum({<PERIOD_NAME=,[Business Area]=,Application=>}MINS_IN_MON)) )<=0.9949,rgb(255,0,0))))

Anonymous
Not applicable
Author

Thanks..it worked

Anonymous
Not applicable
Author

Can you please explain what 'Only' function did that I was missing out in my script??