<?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: variable - Last Year returing current year in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/variable-Last-Year-returing-current-year/m-p/976272#M333713</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your reply,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if i were to choose two dates is there a possible variable that allows for that instead of a singular day?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;example - 2015-09-01 and 2015-09-02&lt;/P&gt;&lt;P&gt; return sum of 2014-09-01 and 2014-09-02&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 17 Sep 2015 22:15:51 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-09-17T22:15:51Z</dc:date>
    <item>
      <title>variable - Last Year returing current year</title>
      <link>https://community.qlik.com/t5/QlikView/variable-Last-Year-returing-current-year/m-p/976270#M333711</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; i currently have a dataset whereby i wish to show LY and CY values.&lt;/P&gt;&lt;P&gt;i&amp;nbsp; am struggling however with a variable that should look at the previous year same date. It returns exactly the same value as the current year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any help is greatly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vSetPreviousYearDay&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;{$&amp;lt;Date= {&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"=$(=Date(MakeDate(Max(Year) - 1, Max([Month (#)]), Day(Max(Date))),'YYYY-MM-DD'))"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&lt;BR /&gt; &amp;gt;} &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(vSetPreviousYearDay)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;Sales) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Sep 2015 20:50:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/variable-Last-Year-returing-current-year/m-p/976270#M333711</guid>
      <dc:creator />
      <dc:date>2015-09-17T20:50:31Z</dc:date>
    </item>
    <item>
      <title>Re: variable - Last Year returing current year</title>
      <link>https://community.qlik.com/t5/QlikView/variable-Last-Year-returing-current-year/m-p/976271#M333712</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;maybe with AddYears, variable in bold&lt;/P&gt;&lt;P&gt;sum(&amp;nbsp; &lt;STRONG&gt;{$&amp;lt;Date= {"=$(=Date(addyears(max(Date),-1),'YYYY-MM-DD'))"} &amp;gt;}&lt;/STRONG&gt; Sales)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Sep 2015 21:02:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/variable-Last-Year-returing-current-year/m-p/976271#M333712</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2015-09-17T21:02:49Z</dc:date>
    </item>
    <item>
      <title>Re: variable - Last Year returing current year</title>
      <link>https://community.qlik.com/t5/QlikView/variable-Last-Year-returing-current-year/m-p/976272#M333713</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your reply,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if i were to choose two dates is there a possible variable that allows for that instead of a singular day?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;example - 2015-09-01 and 2015-09-02&lt;/P&gt;&lt;P&gt; return sum of 2014-09-01 and 2014-09-02&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Sep 2015 22:15:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/variable-Last-Year-returing-current-year/m-p/976272#M333713</guid>
      <dc:creator />
      <dc:date>2015-09-17T22:15:51Z</dc:date>
    </item>
    <item>
      <title>Re: variable - Last Year returing current year</title>
      <link>https://community.qlik.com/t5/QlikView/variable-Last-Year-returing-current-year/m-p/976273#M333714</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;maybe a union &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/plus.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum(&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {$&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Date={"$(=Date(addyears(max(Date),-1),'DD/MM/YYYY'))"}&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; +&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Date={"$(=Date(addyears(min(Date),-1),'DD/MM/YYYY'))"}&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; } Sales)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Sep 2015 22:31:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/variable-Last-Year-returing-current-year/m-p/976273#M333714</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2015-09-17T22:31:44Z</dc:date>
    </item>
  </channel>
</rss>

