Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
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)

];