<?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: Problem using the set analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Problem-using-the-set-analysis/m-p/277056#M1187690</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, kindly please find the attached file. I would like to have the chart to show the total sales amount of the last two quarters (Quarter 3 and Quarter 4) for each Year. So, in my example, Fiscal Year 2011 should show 700 (300 + 400), Fiscal Year 2010 should show 1500 (700 + 800). Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 21 Sep 2011 04:16:54 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-09-21T04:16:54Z</dc:date>
    <item>
      <title>Problem using the set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-using-the-set-analysis/m-p/277052#M1187683</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 have a bar chart showing the total sales for each year (X-dimension = Years, Y-dimension = Total amount of sales). In the raw data set/database, i have the total amount of sales for each quarter. Fyi, one year is divided into 4 quarters. If i would like to show the total amount of sales for the last two quarters only of each year, how should i accomplish it using the set analysis? Why the below set expression does not work?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum( {$&amp;lt;QUARTER={$(=Max(QUARTER)), $(=Max(QUARTER))-1}&amp;gt;}&amp;nbsp; AMOUNT)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks much in advance for your help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GK&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Sep 2011 02:43:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-using-the-set-analysis/m-p/277052#M1187683</guid>
      <dc:creator />
      <dc:date>2011-09-21T02:43:13Z</dc:date>
    </item>
    <item>
      <title>Problem using the set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-using-the-set-analysis/m-p/277053#M1187684</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;You can right the expression like below:-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;QUARTER={"$(=Max(QUARTER))"}+{"$(=Max(QUARTER)-1)"}&amp;gt;}AMOUNT)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;DJ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Sep 2011 03:38:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-using-the-set-analysis/m-p/277053#M1187684</guid>
      <dc:creator />
      <dc:date>2011-09-21T03:38:35Z</dc:date>
    </item>
    <item>
      <title>Problem using the set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-using-the-set-analysis/m-p/277054#M1187686</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Thanks DJ &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; ... Have tried but it does not work. Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Sep 2011 03:48:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-using-the-set-analysis/m-p/277054#M1187686</guid>
      <dc:creator />
      <dc:date>2011-09-21T03:48:21Z</dc:date>
    </item>
    <item>
      <title>Problem using the set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-using-the-set-analysis/m-p/277055#M1187688</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you pls share the sample application?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Sep 2011 03:58:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-using-the-set-analysis/m-p/277055#M1187688</guid>
      <dc:creator />
      <dc:date>2011-09-21T03:58:21Z</dc:date>
    </item>
    <item>
      <title>Re: Problem using the set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-using-the-set-analysis/m-p/277056#M1187690</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, kindly please find the attached file. I would like to have the chart to show the total sales amount of the last two quarters (Quarter 3 and Quarter 4) for each Year. So, in my example, Fiscal Year 2011 should show 700 (300 + 400), Fiscal Year 2010 should show 1500 (700 + 800). Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Sep 2011 04:16:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-using-the-set-analysis/m-p/277056#M1187690</guid>
      <dc:creator />
      <dc:date>2011-09-21T04:16:54Z</dc:date>
    </item>
    <item>
      <title>Re: Problem using the set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-using-the-set-analysis/m-p/277057#M1187691</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK, firstly, your field is called FISCAL_QUARTER, not QUARTER, so that's&lt;/P&gt;&lt;P&gt;what you need in your expression to fix your problem.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;But then, why use MAX at all?  You could just use&lt;/P&gt;&lt;P&gt;    {&amp;lt;FISCAL_QUARTER={3,4}&amp;gt;}&lt;/P&gt;&lt;P&gt;The only reason to use MAX is if you want it to sum the last 2 of the&lt;/P&gt;&lt;P&gt;selected quarters. e.g. if the user has explicitly selected quarters 1,&lt;/P&gt;&lt;P&gt;2 &amp;amp; 3, then it will sum Quarters 2 &amp;amp; 3.  If that's what you intend, then&lt;/P&gt;&lt;P&gt;yes, do use MAX.  Otherwise, hardwire the values.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Sep 2011 04:27:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-using-the-set-analysis/m-p/277057#M1187691</guid>
      <dc:creator>gussfish</dc:creator>
      <dc:date>2011-09-21T04:27:58Z</dc:date>
    </item>
  </channel>
</rss>

