<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Variable para año en script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Variable-para-a%C3%B1o-en-script/m-p/1570186#M596868</link>
    <description>&lt;P&gt;Hola,&lt;/P&gt;&lt;P&gt;Alguien me puede ayudar&amp;nbsp; por favor en saber como declarar y usar la variable en una tabla que se consulta con sql desde el script&amp;nbsp; en qlikview.&lt;/P&gt;&lt;P&gt;Actualmente lo tengo así:&lt;/P&gt;&lt;P&gt;movimientos_fc:&lt;BR /&gt;LOAD&lt;BR /&gt;"fc_imp",&lt;BR /&gt;"fc_fech",&lt;BR /&gt;"fc_sal",&lt;BR /&gt;"fc_num",&lt;BR /&gt;"fc_cost",&lt;BR /&gt;"fc_met",&lt;BR /&gt;"fc_not",&lt;BR /&gt;"fc_pag"&lt;BR /&gt;;&lt;BR /&gt;SQL SELECT *&lt;BR /&gt;FROM "con_daz".dbo."movimientos_fc"&lt;BR /&gt;where cast(fc_fech as date) &amp;gt;= '01/01/2015'&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;Lo que busco es usar una variable para que la fecha sea dinámica, sin tener que cambiar manualmente cada año el valor.&lt;/P&gt;&lt;P&gt;Intenté usar una variable que hice como&amp;nbsp;LET vAnioInicio = MakeDate(Year(Today())-4);&lt;/P&gt;&lt;P&gt;y la puse así&amp;nbsp;&amp;nbsp;where cast(fc_fech as date) &amp;gt;= $(vAnioInicio);&lt;/P&gt;&lt;P&gt;pero cuando recargo el qvw dice que es un error.&lt;/P&gt;&lt;P&gt;Saludos&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 16 Apr 2019 21:53:17 GMT</pubDate>
    <dc:creator>lourdesfmt</dc:creator>
    <dc:date>2019-04-16T21:53:17Z</dc:date>
    <item>
      <title>Variable para año en script</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-para-a%C3%B1o-en-script/m-p/1570186#M596868</link>
      <description>&lt;P&gt;Hola,&lt;/P&gt;&lt;P&gt;Alguien me puede ayudar&amp;nbsp; por favor en saber como declarar y usar la variable en una tabla que se consulta con sql desde el script&amp;nbsp; en qlikview.&lt;/P&gt;&lt;P&gt;Actualmente lo tengo así:&lt;/P&gt;&lt;P&gt;movimientos_fc:&lt;BR /&gt;LOAD&lt;BR /&gt;"fc_imp",&lt;BR /&gt;"fc_fech",&lt;BR /&gt;"fc_sal",&lt;BR /&gt;"fc_num",&lt;BR /&gt;"fc_cost",&lt;BR /&gt;"fc_met",&lt;BR /&gt;"fc_not",&lt;BR /&gt;"fc_pag"&lt;BR /&gt;;&lt;BR /&gt;SQL SELECT *&lt;BR /&gt;FROM "con_daz".dbo."movimientos_fc"&lt;BR /&gt;where cast(fc_fech as date) &amp;gt;= '01/01/2015'&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;Lo que busco es usar una variable para que la fecha sea dinámica, sin tener que cambiar manualmente cada año el valor.&lt;/P&gt;&lt;P&gt;Intenté usar una variable que hice como&amp;nbsp;LET vAnioInicio = MakeDate(Year(Today())-4);&lt;/P&gt;&lt;P&gt;y la puse así&amp;nbsp;&amp;nbsp;where cast(fc_fech as date) &amp;gt;= $(vAnioInicio);&lt;/P&gt;&lt;P&gt;pero cuando recargo el qvw dice que es un error.&lt;/P&gt;&lt;P&gt;Saludos&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Apr 2019 21:53:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-para-a%C3%B1o-en-script/m-p/1570186#M596868</guid>
      <dc:creator>lourdesfmt</dc:creator>
      <dc:date>2019-04-16T21:53:17Z</dc:date>
    </item>
  </channel>
</rss>

