<?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: Aggr using excluded fields in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Aggr-using-excluded-fields/m-p/993033#M649316</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;Thank you!!&lt;/P&gt;&lt;P&gt;Thank you!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 21 Sep 2015 15:19:56 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-09-21T15:19:56Z</dc:date>
    <item>
      <title>Aggr using excluded fields</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-using-excluded-fields/m-p/993031#M649313</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the following expression, which is working fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;avg(aggr(sum({&amp;lt;Quarter= {$(=Max(Quarter)), $(=Max(&lt;SPAN style="font-size: 13.3333px;"&gt;Quarter&lt;/SPAN&gt;)-1), $(=Max(&lt;SPAN style="font-size: 13.3333px;"&gt;Quarter&lt;/SPAN&gt;)-2), $(=Max(&lt;SPAN style="font-size: 13.3333px;"&gt;Quarter&lt;/SPAN&gt;)-3)}&amp;gt;}Sales), Product, &lt;SPAN style="font-size: 13.3333px;"&gt;Quarter&lt;/SPAN&gt;, &lt;SPAN style="font-size: 13.3333px;"&gt;Customers&lt;/SPAN&gt;))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, I need to build a second one, which still gives me the results aggregated by &lt;SPAN style="font-size: 13.3333px;"&gt;Product&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;, &lt;SPAN style="font-size: 13.3333px;"&gt;Quarter &lt;/SPAN&gt;and &lt;SPAN style="font-size: 13.3333px;"&gt;Customers&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;but I must ignore whatever selection is active in &lt;SPAN style="font-size: 13.3333px;"&gt;Customers&lt;/SPAN&gt; so that I can compare the two sets of results, one related to a specific Customer and one related to the overall average Sales amongst them.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;I've tried all the set analysis I could think of but I did't manage to get it to work - when I select values in Customers, the selection applies to the second expression no matter what.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Can somebody please help?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Thank you!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Linda&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Sep 2015 15:08:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-using-excluded-fields/m-p/993031#M649313</guid>
      <dc:creator />
      <dc:date>2015-09-21T15:08:59Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr using excluded fields</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-using-excluded-fields/m-p/993032#M649315</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You may need to use a set analysis expression like {$&amp;lt;&lt;SPAN style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Customers=&lt;/SPAN&gt;&amp;gt;} &lt;STRONG&gt;&lt;EM&gt;both&lt;/EM&gt;&lt;/STRONG&gt; in the outer and in the inner aggregation function. E.g.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Avg( &lt;SPAN style="font-size: 13.3333px;"&gt;{$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Customers=&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;gt;} Aggr( Sum( &lt;SPAN style="font-size: 13.3333px;"&gt;{$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Customers=, Quarter= {...} &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;gt;} Sales ), ... ))&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Sep 2015 15:14:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-using-excluded-fields/m-p/993032#M649315</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2015-09-21T15:14:49Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr using excluded fields</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-using-excluded-fields/m-p/993033#M649316</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;Thank you!!&lt;/P&gt;&lt;P&gt;Thank you!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Sep 2015 15:19:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-using-excluded-fields/m-p/993033#M649316</guid>
      <dc:creator />
      <dc:date>2015-09-21T15:19:56Z</dc:date>
    </item>
  </channel>
</rss>

