Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
krishna20
Specialist II
Specialist II

Color declaration in Pivot cells

Hi Folks,

I am  having a pivot table and having a dimension as time interval.

I need to write a background color expression like when time interval is <= 00:15:00 ,green() and >00:15:00,Red().

I tried like below it's directly taking the else condition,can anyone advise me what is the issue and proper solution.

Background color expression:

if($(vACD_Agent_NotReadyDuration)<='00:15:00',RGB(102,255,102),

if($(vACD_Agent_NotReadyDuration)>'00:15:00',RGB(255,121,121)))

Color coding.PNG

Thanks

Krishna

9 Replies
kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

Try this.

if($(vACD_Agent_NotReadyDuration)<=Maketime(00,15,00),RGB(102,255,102),

if($(vACD_Agent_NotReadyDuration)>Maketime(00,15,00),RGB(255,121,121)))

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
krishna20
Specialist II
Specialist II
Author

Hi Kaushik,

Thanks for your reply. No change.

kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

Can you tell us what value your variable has and how are you assigning value to variable.

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
krishna20
Specialist II
Specialist II
Author

variable is storing the below expression .

interval((sum({<eventtype={'2'}>}EventDuration))/86400,'hh:mm:ss')

krishna20
Specialist II
Specialist II
Author

Hi,

Can anyone advise me on this??

kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

Can you share sample data.

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
rubenmarin

Hi Kalyan, it seems ok, just ensure that the variable expression doesn't have an starting equal sign, with an equal sign it will evaluate globally and return the same result for all cells.

By the expression, EventDuration should be received in seconds.

In any other case a sample will be nice to see what's happening.

Anil_Babu_Samineni

Is this return $(vACD_Agent_NotReadyDuration) for data points?

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
krishna20
Specialist II
Specialist II
Author

Hi All,

Issue resolved. That was a self variable mistake in the background expression. Thanks to all for your valuable suggestions.