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

Announcements
ALERT: QlikView server communication interruptions following Microsoft Windows Domain Controller security updates
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Traffic Lights in Tables

Hello guys,

I have a problem with setting traffic lights in a table. I would like to set for example RED if the data is bigger than the 10% of a field, etc. So they depend on the data.. my problem is that it applies the % to all the data of the field. The table is like this:

Imagen 2.png

For example, I want that in the line of 'Análisis' the traffic lights is set due the value of "Estimación Original", but only of 'Análisis', not of the total. But as you set the limits in the segments, I suppose it's global and equal to all the table. If I select a field it changes to the right color:

Imagen 3.png

Does anybody know how can I have the right color at every line or have the limits depending of the field? Thanks!

Júlia

Labels (1)
1 Solution

Accepted Solutions
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

I think you want to use separate boundaries for each value of Etiquetas. That's not possible with an inline gauge. Those boundaries are calculated at the chart level. What you can do instead is use the built-in images. You can use an expression like:

If( ExpressionValue >= 1, 'qmem://<bundled>/BuiltIn/led_r.png',

     If( ExpressionValue >= 2, 'qmem://<bundled>/BuiltIn/led_o.png',

          If( ExpressionValue >= 3, 'qmem://<bundled>/BuiltIn/led_g.png', 'qmem://<bundled>/BuiltIn/led_b.png'))))


You then need to set the Representation type of the expression to Image and probably also set the Image Formatting setting to Keep Aspect.


talk is cheap, supply exceeds demand

View solution in original post

10 Replies
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Can you post a qlikview document that demonstrates the problem?


talk is cheap, supply exceeds demand
Not applicable
Author

yes, done

Not applicable
Author

Hey, I didn't get your problem, if it is something related to selection and color is changing then you can use  {<Etiquetas=>}  in segment expression.

Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

I think you want to use separate boundaries for each value of Etiquetas. That's not possible with an inline gauge. Those boundaries are calculated at the chart level. What you can do instead is use the built-in images. You can use an expression like:

If( ExpressionValue >= 1, 'qmem://<bundled>/BuiltIn/led_r.png',

     If( ExpressionValue >= 2, 'qmem://<bundled>/BuiltIn/led_o.png',

          If( ExpressionValue >= 3, 'qmem://<bundled>/BuiltIn/led_g.png', 'qmem://<bundled>/BuiltIn/led_b.png'))))


You then need to set the Representation type of the expression to Image and probably also set the Image Formatting setting to Keep Aspect.


talk is cheap, supply exceeds demand
Not applicable
Author

No, the problem is that it only sets the right color when I select it (Because it calculates the same limits at all the table). I would like it to calculate the limit with the data of the line only, not global.

Not applicable
Author

ok.. I hoped that I could do it with Traffic Lights, but I see that I'll have to do it with Images. Thanks!

Not applicable
Author

It tells me that Nested aggregation is not allowed, do you know what I should do?

Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Use the aggr function: min(aggr( sum(...), Dim1,...,DimX))


talk is cheap, supply exceeds demand