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: 
Not applicable

Conditional Background Colors in List Box Cells

I need to display the ~650 values of one field on a single screen with no scrolling, so I'm pretty sure I can only use a listbox with multiple columns. That being said, I have to indicate three different conditions on the listbox following this logic:

 

if

(
ALIVE='yes' and PARA_VALUE='INSYNCH' or ALIVE='yes' and IsNull(PARA_VALUE),RGB(255,0,0),

if(ALIVE='yes' and PARA_VALUE='NOTINSYNCH',RGB(0,255,0),

if(ALIVE='no',RGB(0,0,255))))

I tried using an additional expression with traffic light gauge but that didn't come out as we needed. I tried implementing this expression in the Presentation\Background\Conditional Color script entry area but nothing happened. Help!

6 Replies
Not applicable
Author

I believe your exact requirement cant be met, but how about like in the attached.
Create three separate list boxes(using list box expressions) with different Caption colors.

Test2.png

Not applicable
Author

This won't help, since I have text strings. Also, there will be additions to the field as time goes on. Is there a way in a chart to display only a certain "chunk" of fields? Like the first chart would display only records 1-53, the second chart would display records 54-106, etc?

I have tried conditional formatting using the Calculated Base Color but that seems to be broken on list boxes, since something like

=if(SUSTAIN='yes',Green())

does nothing.

ThornOfCrowns
Specialist II
Specialist II

You can use RANK and AGGR to 'chunk' the data.

Not applicable
Author

Can you attach a sample file. I think Chunk of data is possible even if the list expands. Mine was just an example. Instead of hard coding the expression you can make it dynamic per needs.

ThornOfCrowns
Specialist II
Specialist II

Have a look here: http://www.avitsland.com/2010/08/qlikview-dynamic-columns-in-chart-straight-table/ for an example of dynamically building a straight table. You could use this and then play about with the backgroaund colour values, perhaps?

Not applicable
Author

That web page seems to be down, James. Currently I'm playing around to see if there's any chart type that can legibly display all 600 something values. I've attached a simple example of the data and what I need to accomplish.It would be ideal if I could have conditional formatting for the cell backgrounds instead of having to rely on an expression column.