<?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: Above with inner aggr - ignores inner selection in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Above-with-inner-aggr-ignores-inner-selection/m-p/44958#M785040</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you, I'd rather prefer the solution of Sunny Talwar. It works with selection in other dimensions (like selecting Product) without any complications in alternative states.&lt;/P&gt;&lt;P&gt;M.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 21 Mar 2018 16:37:12 GMT</pubDate>
    <dc:creator>marek_polasek</dc:creator>
    <dc:date>2018-03-21T16:37:12Z</dc:date>
    <item>
      <title>Above with inner aggr - ignores inner selection</title>
      <link>https://community.qlik.com/t5/QlikView/Above-with-inner-aggr-ignores-inner-selection/m-p/44951#M785033</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Let's have simple model: &lt;SPAN style="font-size: 10pt;"&gt;Month, Product, Sales.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;The task is to create a table (or graph) showing for each month the sum of sales for months M-2, M-3, M-4.  For example: on June-2017 we want to show  sum of sales for three months (April-2017, March-2017, February-2017). The chart shall reflect our selection in month and products. This means that if we select only June-2017, three month data (which is not selected) should be taken for calculation. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to solve this by expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN class="s1"&gt;Sum&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;(&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;Aggr&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;(&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;RangeSum&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;(&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;Above&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;(&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;Aggr&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;(&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;sum&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;({$&amp;lt;&lt;/SPAN&gt;Month&lt;SPAN class="s2"&gt;=&amp;gt;}&lt;/SPAN&gt;Sales&lt;SPAN class="s2"&gt;),&lt;/SPAN&gt;Product&lt;SPAN class="s2"&gt;,&lt;/SPAN&gt;Month&lt;SPAN class="s2"&gt;),2,3)), &lt;/SPAN&gt;Product&lt;SPAN class="s2"&gt;, &lt;/SPAN&gt;Month&lt;SPAN class="s2"&gt;))&lt;SPAN class="Apple-converted-space"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;which gives correct result but takes data for calculation only from selected months.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Above-with-inner-aggr-ignores-inner-selection/m-p/44951#M785033</guid>
      <dc:creator>marek_polasek</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Above with inner aggr - ignores inner selection</title>
      <link>https://community.qlik.com/t5/QlikView/Above-with-inner-aggr-ignores-inner-selection/m-p/44952#M785034</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;‌mmay be try like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="s1" style="font-size: 20px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN class="s2" style="font-size: 20px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;({&amp;lt;Month&amp;gt;} &lt;/SPAN&gt;&lt;SPAN class="s1" style="font-size: 20px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Aggr&lt;/SPAN&gt;&lt;SPAN class="s2" style="font-size: 20px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="s1" style="font-size: 20px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;RangeSum&lt;/SPAN&gt;&lt;SPAN class="s2" style="font-size: 20px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="s1" style="font-size: 20px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Above&lt;/SPAN&gt;&lt;SPAN class="s2" style="font-size: 20px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="s1" style="font-size: 20px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Aggr&lt;/SPAN&gt;&lt;SPAN class="s2" style="font-size: 20px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="s1" style="font-size: 20px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;sum&lt;/SPAN&gt;&lt;SPAN class="s2" style="font-size: 20px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 20px;"&gt;Month&lt;/SPAN&gt;&lt;SPAN class="s2" style="font-size: 20px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 20px;"&gt;Sales&lt;/SPAN&gt;&lt;SPAN class="s2" style="font-size: 20px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;),&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 20px;"&gt;Product&lt;/SPAN&gt;&lt;SPAN class="s2" style="font-size: 20px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 20px;"&gt;Month&lt;/SPAN&gt;&lt;SPAN class="s2" style="font-size: 20px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;),2,3)), &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 20px;"&gt;Product&lt;/SPAN&gt;&lt;SPAN class="s2" style="font-size: 20px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 20px;"&gt;Month&lt;/SPAN&gt;&lt;SPAN class="s2" style="font-size: 20px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 03 Mar 2018 20:10:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Above-with-inner-aggr-ignores-inner-selection/m-p/44952#M785034</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2018-03-03T20:10:33Z</dc:date>
    </item>
    <item>
      <title>Re: Above with inner aggr - ignores inner selection</title>
      <link>https://community.qlik.com/t5/QlikView/Above-with-inner-aggr-ignores-inner-selection/m-p/44953#M785035</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;Create one Alternate State (Document Options, General, Alternate states). We will call it "aux" in the example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- First, you need to duplicate Month listbox and asign to the copy the "aux" state, then clear selection and then erase the copy&lt;/P&gt;&lt;P&gt;- Now, asign "aux" state to the graph&lt;/P&gt;&lt;P&gt;- Edit the Month dimention. It must be: =aggr(only({$}Month),Month)&lt;/P&gt;&lt;P&gt;- The expression must be: Sum(Aggr(RangeSum(Above(Aggr(sum({sss}Sales),Product,Month),2,3)), Product, Month))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 04 Mar 2018 00:57:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Above-with-inner-aggr-ignores-inner-selection/m-p/44953#M785035</guid>
      <dc:creator>sebastiandperei</dc:creator>
      <dc:date>2018-03-04T00:57:25Z</dc:date>
    </item>
    <item>
      <title>Re: Above with inner aggr - ignores inner selection</title>
      <link>https://community.qlik.com/t5/QlikView/Above-with-inner-aggr-ignores-inner-selection/m-p/44954#M785036</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Adding Month to outer expression has no effect.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Mar 2018 09:28:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Above-with-inner-aggr-ignores-inner-selection/m-p/44954#M785036</guid>
      <dc:creator>marek_polasek</dc:creator>
      <dc:date>2018-03-08T09:28:47Z</dc:date>
    </item>
    <item>
      <title>Re: Above with inner aggr - ignores inner selection</title>
      <link>https://community.qlik.com/t5/QlikView/Above-with-inner-aggr-ignores-inner-selection/m-p/44955#M785037</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sebastian,&lt;/P&gt;&lt;P&gt;thank you for your response. However your suggestion does not work. I am affraid you did not try it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Mar 2018 09:39:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Above-with-inner-aggr-ignores-inner-selection/m-p/44955#M785037</guid>
      <dc:creator>marek_polasek</dc:creator>
      <dc:date>2018-03-08T09:39:08Z</dc:date>
    </item>
    <item>
      <title>Re: Above with inner aggr - ignores inner selection</title>
      <link>https://community.qlik.com/t5/QlikView/Above-with-inner-aggr-ignores-inner-selection/m-p/44956#M785038</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes Marek, i have tested and it worked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Im affraid YOU haven't did it conscientiously. I was made a mistake in expression in the name of the state.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Mar 2018 11:13:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Above-with-inner-aggr-ignores-inner-selection/m-p/44956#M785038</guid>
      <dc:creator>sebastiandperei</dc:creator>
      <dc:date>2018-03-09T11:13:29Z</dc:date>
    </item>
    <item>
      <title>Re: Above with inner aggr - ignores inner selection</title>
      <link>https://community.qlik.com/t5/QlikView/Above-with-inner-aggr-ignores-inner-selection/m-p/44957#M785039</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is this what you are trying to get?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/195851_Capture.PNG" style="height: 294px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;May be use this&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum(Aggr(RangeSum(Above(Sum({$&amp;lt;Month&amp;gt;}Sales), 2, 3)), Product, Month))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Mar 2018 12:26:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Above-with-inner-aggr-ignores-inner-selection/m-p/44957#M785039</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-03-09T12:26:43Z</dc:date>
    </item>
    <item>
      <title>Re: Above with inner aggr - ignores inner selection</title>
      <link>https://community.qlik.com/t5/QlikView/Above-with-inner-aggr-ignores-inner-selection/m-p/44958#M785040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you, I'd rather prefer the solution of Sunny Talwar. It works with selection in other dimensions (like selecting Product) without any complications in alternative states.&lt;/P&gt;&lt;P&gt;M.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Mar 2018 16:37:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Above-with-inner-aggr-ignores-inner-selection/m-p/44958#M785040</guid>
      <dc:creator>marek_polasek</dc:creator>
      <dc:date>2018-03-21T16:37:12Z</dc:date>
    </item>
  </channel>
</rss>

