<?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 Analysis to present data from the previous month when the filtered dimension this year as the current selection in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-to-present-data-from-the-previous-month-when-the/m-p/456417#M486740</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Since you've selected a year you need to exclude selections in the year field in the expression. Otherwise you can't get the Qty from the last month of the &lt;EM&gt;previous&lt;/EM&gt; year, only from the &lt;EM&gt;selected&lt;/EM&gt; year. Assuming your year field is named Year try this:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;sum ({$} &amp;lt;Month_Sale = {$(=month(addmonths(max(Date_Sale), -1))), &lt;STRONG&gt;Year=&lt;/STRONG&gt;}&amp;gt; Qty)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Feb 2013 18:01:10 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2013-02-20T18:01:10Z</dc:date>
    <item>
      <title>Set Analysis to present data from the previous month when the filtered dimension this year as the current selection</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-to-present-data-from-the-previous-month-when-the/m-p/456416#M486739</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello I have the following situation:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;used the following set Analysis:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum ({$} &amp;lt;Month_Sale = {$(=month(addmonths(max(Date_Sale), -1)))}&amp;gt; Qty)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By using the expression above it works correctly when the selection year is exergar filter to the data of the previous month, my problem happens when I select the month of January because this expression brings zeroed data, how can I resolve this situation? thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Feb 2013 17:55:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-to-present-data-from-the-previous-month-when-the/m-p/456416#M486739</guid>
      <dc:creator>giovanneb</dc:creator>
      <dc:date>2013-02-20T17:55:50Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis to present data from the previous month when the filtered dimension this year as the current selection</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-to-present-data-from-the-previous-month-when-the/m-p/456417#M486740</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Since you've selected a year you need to exclude selections in the year field in the expression. Otherwise you can't get the Qty from the last month of the &lt;EM&gt;previous&lt;/EM&gt; year, only from the &lt;EM&gt;selected&lt;/EM&gt; year. Assuming your year field is named Year try this:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;sum ({$} &amp;lt;Month_Sale = {$(=month(addmonths(max(Date_Sale), -1))), &lt;STRONG&gt;Year=&lt;/STRONG&gt;}&amp;gt; Qty)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Feb 2013 18:01:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-to-present-data-from-the-previous-month-when-the/m-p/456417#M486740</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-02-20T18:01:10Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis to present data from the previous month when the filtered dimension this year as the current selection</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-to-present-data-from-the-previous-month-when-the/m-p/456418#M486741</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I added the year now when I select the values ​​month are accrued and should not&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Feb 2013 18:19:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-to-present-data-from-the-previous-month-when-the/m-p/456418#M486741</guid>
      <dc:creator>giovanneb</dc:creator>
      <dc:date>2013-02-20T18:19:12Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis to present data from the previous month when the filtered dimension this year as the current selection</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-to-present-data-from-the-previous-month-when-the/m-p/456419#M486742</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Right you are. Try this then: &lt;/P&gt;&lt;P&gt;sum ({$} &amp;lt;Date_Sale={'=&amp;gt;$(=monthstart(addmonths(max(Date_Sale), -1)))&amp;lt;$(=monthstart(max(Date_Sale)))'},MonthYear=, Year=}&amp;gt; Qty)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could make things a lot easier for yourself if you start using the &lt;A href="http://code.google.com/p/qlikview-components/"&gt;qvc library&lt;/A&gt;. See &lt;A _jive_internal="true" href="https://community.qlik.com/thread/66717"&gt;here&lt;/A&gt; for a tutorial.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Feb 2013 18:24:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-to-present-data-from-the-previous-month-when-the/m-p/456419#M486742</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-02-20T18:24:34Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis to present data from the previous month when the filtered dimension this year as the current selection</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-to-present-data-from-the-previous-month-when-the/m-p/456420#M486743</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried using the expression presented by you got an error of expression, what could it be? thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Feb 2013 18:42:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-to-present-data-from-the-previous-month-when-the/m-p/456420#M486743</guid>
      <dc:creator>giovanneb</dc:creator>
      <dc:date>2013-02-20T18:42:18Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis to present data from the previous month when the filtered dimension this year as the current selection</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-to-present-data-from-the-previous-month-when-the/m-p/456421#M486744</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;My mistake. A typo. Date_Sale={'=&amp;gt;&lt;/SPAN&gt; should be &lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;Date_Sale={'&amp;gt;=&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Feb 2013 18:50:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-to-present-data-from-the-previous-month-when-the/m-p/456421#M486744</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-02-20T18:50:06Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis to present data from the previous month when the filtered dimension this year as the current selection</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-to-present-data-from-the-previous-month-when-the/m-p/456422#M486745</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt; Can you please provide test application,it will be works properly no problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/minus.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Feb 2013 18:55:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-to-present-data-from-the-previous-month-when-the/m-p/456422#M486745</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-02-20T18:55:54Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis to present data from the previous month when the filtered dimension this year as the current selection</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-to-present-data-from-the-previous-month-when-the/m-p/456423#M486746</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello still can not'll post a sample document QV, I believe I am missing something in the expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Follow Document&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Follow the document would need to analyze that:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Qty Initial&amp;nbsp;&amp;nbsp; Qty Last&lt;/P&gt;&lt;P&gt;Dec 2012&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 496&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&lt;/P&gt;&lt;P&gt;Jan 2012&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1457&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 496&lt;/P&gt;&lt;P&gt;Feb 2012&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1450&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1457&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Feb 2013 19:28:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-to-present-data-from-the-previous-month-when-the/m-p/456423#M486746</guid>
      <dc:creator>giovanneb</dc:creator>
      <dc:date>2013-02-20T19:28:16Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis to present data from the previous month when the filtered dimension this year as the current selection</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-to-present-data-from-the-previous-month-when-the/m-p/456424#M486747</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'll post a exempl document, thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Feb 2013 19:29:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-to-present-data-from-the-previous-month-when-the/m-p/456424#M486747</guid>
      <dc:creator>giovanneb</dc:creator>
      <dc:date>2013-02-20T19:29:13Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis to present data from the previous month when the filtered dimension this year as the current selection</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-to-present-data-from-the-previous-month-when-the/m-p/456425#M486748</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If I understand what you want correctly then that's not possible with set analysis. The sets are calculated per chart not per row. First the set is calculated and then the dimensions and expressions are applied to the set. You'll have to use something like AsOf tables. See attached example.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Feb 2013 15:39:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-to-present-data-from-the-previous-month-when-the/m-p/456425#M486748</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-02-25T15:39:40Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis to present data from the previous month when the filtered dimension this year as the current selection</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-to-present-data-from-the-previous-month-when-the/m-p/456426#M486749</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, perfect solution, thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Feb 2013 22:49:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-to-present-data-from-the-previous-month-when-the/m-p/456426#M486749</guid>
      <dc:creator>giovanneb</dc:creator>
      <dc:date>2013-02-27T22:49:27Z</dc:date>
    </item>
  </channel>
</rss>

