<?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 Re: Using a variable in a set statement in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Using-a-variable-in-a-set-statement/m-p/902024#M313710</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Courier New'; font-size: 12px;"&gt;if(Conditiemutatie_Vanaf &amp;gt;= Date#('01-01-$(vCurrentYear)')&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 03 Jun 2015 08:30:51 GMT</pubDate>
    <dc:creator>pokassov</dc:creator>
    <dc:date>2015-06-03T08:30:51Z</dc:date>
    <item>
      <title>Using a variable in a set statement</title>
      <link>https://community.qlik.com/t5/QlikView/Using-a-variable-in-a-set-statement/m-p/902023#M313709</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;A name="_GoBack"&gt;&lt;/A&gt;&lt;SPAN style="mso-bidi-font-family: 'Times New Roman'; mso-bidi-font-size: 10.0pt; color: #000000; font-size: 11pt; font-family: 'Calibri','sans-serif';"&gt;Hi all,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="mso-bidi-font-family: 'Times New Roman'; mso-bidi-font-size: 10.0pt; color: #000000; font-size: 11pt; font-family: 'Calibri','sans-serif';"&gt;I could really use some help with making a script dynamical so that i wouldnt have to change it each year.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="mso-bidi-font-family: 'Times New Roman'; mso-bidi-font-size: 10.0pt; color: #000000; font-size: 11pt; font-family: 'Calibri','sans-serif';"&gt;I created a variable named: vCurrentYear that defines the year in which we currently live.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="mso-bidi-font-family: 'Times New Roman'; mso-bidi-font-size: 10.0pt; color: #000000; font-size: 11pt; font-family: 'Calibri','sans-serif';"&gt; Now im trying to substitute the 2015 into the formula but when i try it stops working?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="mso-fareast-language: NL; color: blue; font-size: 9pt; font-family: 'Courier New';"&gt;SET&lt;/STRONG&gt; &lt;STRONG&gt;&lt;EM style="mso-fareast-language: NL; color: gray; font-size: 9pt; font-family: 'Courier New';"&gt;fClaims_Jan_CY&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt; mso-fareast-language: NL;"&gt; =&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt; &lt;BR /&gt; if(Conditiemutatie_Vanaf &amp;gt;= Date#('01-01-2015')&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: green; font-family: 'Courier New'; font-size: 9pt; mso-fareast-language: NL;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt; mso-fareast-language: NL;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; for example: &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 9pt; mso-fareast-language: NL;"&gt;&lt;STRONG&gt;SET&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;STRONG&gt;&lt;EM style="mso-fareast-language: NL; color: gray; font-size: 9pt; font-family: 'Courier New';"&gt;fClaims_Jan_CY&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt; mso-fareast-language: NL;"&gt; =&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt; &lt;BR /&gt; if(Conditiemutatie_Vanaf &amp;gt;= Date#('01-01-($(vCurrentYear))')&amp;nbsp;&amp;nbsp; (Doesnt work)&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: green; font-family: 'Courier New'; font-size: 9pt; mso-fareast-language: NL;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jun 2015 08:26:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-a-variable-in-a-set-statement/m-p/902023#M313709</guid>
      <dc:creator />
      <dc:date>2015-06-03T08:26:03Z</dc:date>
    </item>
    <item>
      <title>Re: Using a variable in a set statement</title>
      <link>https://community.qlik.com/t5/QlikView/Using-a-variable-in-a-set-statement/m-p/902024#M313710</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Courier New'; font-size: 12px;"&gt;if(Conditiemutatie_Vanaf &amp;gt;= Date#('01-01-$(vCurrentYear)')&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jun 2015 08:30:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-a-variable-in-a-set-statement/m-p/902024#M313710</guid>
      <dc:creator>pokassov</dc:creator>
      <dc:date>2015-06-03T08:30:51Z</dc:date>
    </item>
    <item>
      <title>Re: Using a variable in a set statement</title>
      <link>https://community.qlik.com/t5/QlikView/Using-a-variable-in-a-set-statement/m-p/902025#M313711</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You don't need that variable actually:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: blue;"&gt;&lt;STRONG&gt;SET&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="color: gray; font-size: 9pt; font-family: 'Courier New'; font-weight: inherit;"&gt;&lt;EM&gt;fClaims_Jan_CY&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt; = InYear( &lt;SPAN&gt;Conditiemutatie_Vanaf , today()&lt;/SPAN&gt;);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jun 2015 08:33:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-a-variable-in-a-set-statement/m-p/902025#M313711</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-06-03T08:33:54Z</dc:date>
    </item>
  </channel>
</rss>

