<?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: Set Variables for Current Year and Month in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Variables-for-Current-Year-and-Month/m-p/640440#M679063</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Joshua,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you should rename vMonth_Current into vMonth_Previous &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Antoine&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 May 2014 21:03:19 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-05-20T21:03:19Z</dc:date>
    <item>
      <title>Set Variables for Current Year and Month</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Variables-for-Current-Year-and-Month/m-p/640439#M679062</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just wanted to share something I created recently for a project in QlikView 11. I need to store in Variables the current Year and Month. For comparison purposes I decided to also store the previous year too. First create the following Variables:&lt;/P&gt;&lt;P&gt;1. "vYear_Current"&lt;/P&gt;&lt;P&gt;2. "vYear_Previous"&lt;BR /&gt;3. "vMonth_Current"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then add the following to your Load Script&lt;/P&gt;&lt;P&gt;LET vYear_Current = Year(Today());&lt;/P&gt;&lt;P&gt;LET vYear_Previous = Year(Today()) -1;&lt;/P&gt;&lt;P&gt;LET vMonth_Current = Month(Today());&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once you refresh the QVW those variables will populate with the current year, current month and previous year values based on the date of the local computer or server.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 May 2014 18:07:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Variables-for-Current-Year-and-Month/m-p/640439#M679062</guid>
      <dc:creator>jcampbell</dc:creator>
      <dc:date>2014-05-20T18:07:45Z</dc:date>
    </item>
    <item>
      <title>Re: Set Variables for Current Year and Month</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Variables-for-Current-Year-and-Month/m-p/640440#M679063</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Joshua,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you should rename vMonth_Current into vMonth_Previous &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Antoine&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 May 2014 21:03:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Variables-for-Current-Year-and-Month/m-p/640440#M679063</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-05-20T21:03:19Z</dc:date>
    </item>
  </channel>
</rss>

