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

Dinamic Trafic Led on straight Table

Hello, I'm trying to create a variable that is based on a statement "IF" that is formed by a variable and two fields, and results in the image of a LED, green, red or yellow.

code:

if($(vEP_ENE)&$(Verde_TO_A)&$(V_Value_A) ,'qmem://<bundled>/BuiltIn/led_g.png',

if($(vEP_ENE)&$(Rojo_TO_A)&$(R_Value_A),'qmem://<bundled>/BuiltIn/led_r.png','qmem://<bundled>/BuiltIn/led_y.png'))

$(vEP_ENE) = varibale

$(Verde_TO_A) = Field

$(V_Value_A) = Field

---------------------------------------------------------------------------------------Español------------------------------------------------------------------------------------------

hola, estoy tratando de crear una variable que se basa en una sentencia "IF" que esta formado por  una variable y dos campos, y tiene como resultado la imagen de un led, verde, roja o amarilla.

codigo:

if($(vEP_ENE)&$(Verde_TO_A)&$(V_Value_A) ,'qmem://<bundled>/BuiltIn/led_g.png',

if($(vEP_ENE)&$(Rojo_TO_A)&$(R_Value_A),'qmem://<bundled>/BuiltIn/led_r.png','qmem://<bundled>/BuiltIn/led_y.png'))

$(vEP_ENE) = varibale

$(Verde_TO_A) = campo

$(V_Value_A) = campo

3 Replies
Not applicable
Author

It's not clear what you are trying to do in the if condition? Do you want to compare the variable to the fields?

Anonymous
Not applicable
Author

Hi,

If possible share a sample qvw for better understanding.

Not applicable
Author

Hola Baltazar,

Podrías dar un ejemplo de los valores que podrían contener tus campos para poder entender un poco mejor lo que intentas hacer en la sentencia if.

$(vEP_ENE) = varibale     ?

$(Verde_TO_A) = campo     ?

$(V_Value_A) = campo     ?