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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Use Variable in Inline Table

Hi All,

I have Inline Table  As:

Table:

LOAD * INLINE [

    Participación,Resultado ,Expresion2

    Sin Participación  ,  Resultado CLP Sin Ajustes  ,  '=(sum({<Año_Contable={'$(vAñoAnterior)'} '>} CrAmt) '

  

];

in Text its gives me a Output.. I need how to write same thing in inline table and use as Variable..

Thank!!

1 Reply
rubenmarin

Hi Guillermo, when QV finds '$(' it tries to evaluate what's inside, to avoid this you can use another character instead of $ and replace it:

Table:

LOAD Participación,Resultado ,Replace(Expresion2, '#', '$') as Expresion2 INLINE [

    Participación,Resultado ,Expresion2

    Sin Participación  ,  Resultado CLP Sin Ajustes  ,  =(sum({<Año_Contable={'#(vAñoAnterior)'}>} CrAmt)

];