Qlik Community

New to Qlik Community

Discussion board for questions on how to use Qlik Community and its features.

Announcements
This forum is for questions and information about how to use the Qlik Community.
Please do not post product related questions here.
Select the correct forum from: Qlik Product Forums
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

Re: Dinamic Trafic Led on straight Table

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

satyadev_j
Valued Contributor

Re: Dinamic Trafic Led on straight Table

Hi,

If possible share a sample qvw for better understanding.

Not applicable

Re: Dinamic Trafic Led on straight Table

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     ?

Community Browser