<?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 Set Analysis: all previous years untill selected month in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-all-previous-years-untill-selected-month/m-p/448332#M486958</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to select a year and a month and I want to see:&lt;/P&gt;&lt;P&gt;- all amounts including the full previous years untill the selected month and year. For example full 2010, full 2011, full 2012, jan 2013 and feb 2013 &lt;/P&gt;&lt;P&gt;- all amounts untill selected month year -1. For example&amp;nbsp; full 2010, full 2011, jan 2012 and feb 2012&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;({$&amp;lt;&lt;SPAN style="color: #800000;"&gt;Year&lt;/SPAN&gt; = {&lt;SPAN style="color: #800000;"&gt;"&amp;lt;=$(=max(Year))"&lt;/SPAN&gt;},&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Month = {&lt;SPAN style="color: #800000;"&gt;"&amp;lt;=$(=max({&amp;lt;Year={$(=max(Year))}&amp;gt;} Month))"&lt;/SPAN&gt;},&amp;gt;}TOTAL Amount)) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;But this obviously only gives me the amounts of january and february for all the years.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Any ideas?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 Feb 2013 10:30:49 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-02-19T10:30:49Z</dc:date>
    <item>
      <title>Set Analysis: all previous years untill selected month</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-all-previous-years-untill-selected-month/m-p/448332#M486958</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to select a year and a month and I want to see:&lt;/P&gt;&lt;P&gt;- all amounts including the full previous years untill the selected month and year. For example full 2010, full 2011, full 2012, jan 2013 and feb 2013 &lt;/P&gt;&lt;P&gt;- all amounts untill selected month year -1. For example&amp;nbsp; full 2010, full 2011, jan 2012 and feb 2012&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;({$&amp;lt;&lt;SPAN style="color: #800000;"&gt;Year&lt;/SPAN&gt; = {&lt;SPAN style="color: #800000;"&gt;"&amp;lt;=$(=max(Year))"&lt;/SPAN&gt;},&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Month = {&lt;SPAN style="color: #800000;"&gt;"&amp;lt;=$(=max({&amp;lt;Year={$(=max(Year))}&amp;gt;} Month))"&lt;/SPAN&gt;},&amp;gt;}TOTAL Amount)) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;But this obviously only gives me the amounts of january and february for all the years.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Any ideas?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Feb 2013 10:30:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-all-previous-years-untill-selected-month/m-p/448332#M486958</guid>
      <dc:creator />
      <dc:date>2013-02-19T10:30:49Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis: all previous years untill selected month</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-all-previous-years-untill-selected-month/m-p/448333#M486959</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have to set different variables for each year you want to see and use with set analysis in columns of previous year&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({$ &amp;lt;year={'$(previousyear)'}&amp;gt; value}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Feb 2013 10:33:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-all-previous-years-untill-selected-month/m-p/448333#M486959</guid>
      <dc:creator>alexandros17</dc:creator>
      <dc:date>2013-02-19T10:33:30Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis: all previous years untill selected month</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-all-previous-years-untill-selected-month/m-p/448334#M486961</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have tried to use a date field with the monthend function but this didn't give any result&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;PostingDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;&amp;lt;=$(=MonthEnd(makedate(Max(Year),max({&amp;lt;Year={$(=max(Year))}&amp;gt;} Month)))'&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;}TOTAL Amount) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The MonthEnd function on itself gives a correct date but the result is ' - ' when used in my setanalysis expression&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Feb 2013 11:25:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-all-previous-years-untill-selected-month/m-p/448334#M486961</guid>
      <dc:creator />
      <dc:date>2013-02-19T11:25:25Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis: all previous years untill selected month</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-all-previous-years-untill-selected-month/m-p/448335#M486963</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;is possible post sample application.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Feb 2013 11:30:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-all-previous-years-untill-selected-month/m-p/448335#M486963</guid>
      <dc:creator>perumal_41</dc:creator>
      <dc:date>2013-02-19T11:30:45Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis: all previous years untill selected month</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-all-previous-years-untill-selected-month/m-p/448336#M486965</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Added my qvw file in first post&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Feb 2013 13:17:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-all-previous-years-untill-selected-month/m-p/448336#M486965</guid>
      <dc:creator />
      <dc:date>2013-02-19T13:17:42Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis: all previous years untill selected month</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-all-previous-years-untill-selected-month/m-p/448337#M486966</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this: sum({$&amp;lt;Year=,Month=,PostingDate={"&amp;lt;=$(=MonthEnd(max(PostingDate)))"}&amp;gt;}TOTAL Amount)&lt;/P&gt;&lt;P&gt;See attached qvw&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Feb 2013 13:21:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-all-previous-years-untill-selected-month/m-p/448337#M486966</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-02-19T13:21:44Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis: all previous years untill selected month</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-all-previous-years-untill-selected-month/m-p/448338#M486967</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It works! Thank you very much&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Feb 2013 14:35:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-all-previous-years-untill-selected-month/m-p/448338#M486967</guid>
      <dc:creator />
      <dc:date>2013-02-19T14:35:01Z</dc:date>
    </item>
  </channel>
</rss>

