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

Establecer los límites de un indicador Semaforo

Hola muy buenos días, tardes o noches donde quiera que se encuentren.

Hoy quiero pedirles ayuda sobre como desarrollar un indicador led tipo semáforo. Estoy Haciendo la resta de dos campo, si es mayor o igual a 0 deberá ponerse verde, si es menor a 0 deberá ponerse rojo, las cantidades van desde cientos hasta miles, me gustaria me ayudaran para saber como establecer los límites y las configuraciones del indicador.

De antemano gracias por su ayuda.

1 Solution

Accepted Solutions
MayilVahanan

HI

PFA

In expression tab:

Try this:

= Count(Id_Cliente)-Sum(Num_Clientes)

Hope it helps

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.

View solution in original post

12 Replies
MayilVahanan

HI

Try like this

=if(sum(Sales)-Sum(Amount) < 0, Red(),Green()) in presentation tab

PFA

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
Anonymous
Not applicable
Author

Hi, thanks for your supoort.

I did try this =if(sum(Sales)-Sum(Amount) < 0, Red(),Green(), in the expression tab but it doesnt work.The problem exits in the presentation tab.

MayilVahanan

HI

Can you post a sample file?

Did u notice that, in presentation tab and expression tab in the sample file?

If u post a sample file, its easy to analysis the problem in it.

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
Not applicable
Author

Hola

  Yo tenia una situacion similar, tenia mis datos en una tabla simple, y queria que cada semaforo fuera idependiente, termine colocando la misma expresion que me da el resultado de la celda dentro de los formatos de la expresion, antecedido por un IF, algo asi como

IF(<Expresion>, LightRed(),LightGreen())

Saludos.

Anonymous
Not applicable
Author

Hi, I cannot open the sample file because I´m using the personal edition. this is a sample file. thaks

Anonymous
Not applicable
Author

Y en la pestaña de presentacion como configuraste los limites y los valores maximos y minimos?

Gracias

MayilVahanan

HI

PFA

In expression tab:

Try this:

= Count(Id_Cliente)-Sum(Num_Clientes)

Hope it helps

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
Not applicable
Author

Hola, ahi no configure nada, la evaluacion la haces dentro del mismo IF, por ejemplo

  IF(Sum(Algo)-Sum(Otro) > 0, Green(), Red())

Si necesitas mas rangos, por ejemplo 0-80= Rojo, 80-90= Amarillo, 90-100 Verde, anida los campos:

IF(Sum(Venta) / Sum(Presupuesto) <0.8, Red(), IF(Sum(Venta)/Sum(Presupuesto)<0.9, Yellow(),Green()))

Entendiendo que si se cumple la primera condicion, se quedara rojo, si no, evaluara de nuevo, y sera amarillo, cualquier otra, seria Verde.

Puedes continuar esto indefinidamente..... o hasta que se te acabe la memoria, lo que pase primero.

Saludos.

Anonymous
Not applicable
Author

I already try this and it works but when the value is less than 0 it doesnt show the red color