<?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 aggr with set analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/aggr-with-set-analysis/m-p/147955#M26323</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, you can have a set in pretty much any expression, so it will work in Aggr:&lt;/P&gt;&lt;P&gt;max(aggr(Sum({ &amp;lt; SetField = {"value"} &amp;gt; } SalesValue, Country)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stephen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 29 Jun 2009 22:16:33 GMT</pubDate>
    <dc:creator>stephencredmond</dc:creator>
    <dc:date>2009-06-29T22:16:33Z</dc:date>
    <item>
      <title>aggr with set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/aggr-with-set-analysis/m-p/147953#M26321</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm using an aggr function to sum up my sales. Is it possible to combine it with set analysis so that it doesn't matter&lt;BR /&gt;what's selected?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jun 2009 13:48:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/aggr-with-set-analysis/m-p/147953#M26321</guid>
      <dc:creator />
      <dc:date>2009-06-29T13:48:19Z</dc:date>
    </item>
    <item>
      <title>aggr with set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/aggr-with-set-analysis/m-p/147954#M26322</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would this work for you? sum({1}field) This would disregard all selections providing they are not a dimension in your chart.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jun 2009 22:08:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/aggr-with-set-analysis/m-p/147954#M26322</guid>
      <dc:creator />
      <dc:date>2009-06-29T22:08:21Z</dc:date>
    </item>
    <item>
      <title>aggr with set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/aggr-with-set-analysis/m-p/147955#M26323</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, you can have a set in pretty much any expression, so it will work in Aggr:&lt;/P&gt;&lt;P&gt;max(aggr(Sum({ &amp;lt; SetField = {"value"} &amp;gt; } SalesValue, Country)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stephen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jun 2009 22:16:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/aggr-with-set-analysis/m-p/147955#M26323</guid>
      <dc:creator>stephencredmond</dc:creator>
      <dc:date>2009-06-29T22:16:33Z</dc:date>
    </item>
    <item>
      <title>aggr with set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/aggr-with-set-analysis/m-p/147956#M26324</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Stephen,&lt;/P&gt;&lt;P&gt;unfortunatley I'm still having problems. I'm trying to see the max sales of (all) customers in Max Sales, in this case the value should&lt;/P&gt;&lt;P&gt;be 50.000, no matter what's selected.&lt;/P&gt;&lt;P&gt;I tried Max Sum Sales: &lt;B&gt;max(aggr(Sum({ &amp;lt; Customer_ID = &amp;gt; } Sales, Customer_ID)))&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;should look like:&lt;/P&gt;&lt;P&gt;Customer ID Sum Sales Max Sum Sales Max Sales&lt;/P&gt;&lt;P&gt;1 10.000 50.000 60.000&lt;/P&gt;&lt;P&gt;2 35.000 50.000 60.000&lt;/P&gt;&lt;P&gt;3 10.000 50.000 60.000&lt;/P&gt;&lt;P&gt;4 40.000 50.000 60.000&lt;/P&gt;&lt;P&gt;5 60.000 50.000 60.000&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jun 2009 16:12:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/aggr-with-set-analysis/m-p/147956#M26324</guid>
      <dc:creator />
      <dc:date>2009-06-30T16:12:47Z</dc:date>
    </item>
    <item>
      <title>AW:Re: aggr with set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/aggr-with-set-analysis/m-p/147957#M26325</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you mean the max sales of all customers should be 60.000. Why do you want to use "Set Analysis"?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try &lt;B&gt;max(total aggr(Sum(Sales), Customer_ID))&lt;/B&gt; ...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jun 2009 16:50:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/aggr-with-set-analysis/m-p/147957#M26325</guid>
      <dc:creator />
      <dc:date>2009-06-30T16:50:56Z</dc:date>
    </item>
    <item>
      <title>AW:Re: aggr with set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/aggr-with-set-analysis/m-p/147958#M26326</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There should be no changing in the max value (60.000) when selection a customer_id.&lt;/P&gt;&lt;P&gt;I thouhgt I could handle thos with Set Analysis.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jun 2009 16:59:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/aggr-with-set-analysis/m-p/147958#M26326</guid>
      <dc:creator />
      <dc:date>2009-06-30T16:59:45Z</dc:date>
    </item>
    <item>
      <title>AW:Re: AW:Re: aggr with set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/aggr-with-set-analysis/m-p/147959#M26327</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ah ok, now i understand.The "max-value" should be independent to every filter.&lt;/P&gt;&lt;P&gt;In this case i would fix the values in the script when reloading the data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jun 2009 18:05:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/aggr-with-set-analysis/m-p/147959#M26327</guid>
      <dc:creator />
      <dc:date>2009-06-30T18:05:01Z</dc:date>
    </item>
    <item>
      <title>aggr with set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/aggr-with-set-analysis/m-p/147960#M26328</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You need to put the set in both the Sum and the Aggr:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;max&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;({&amp;lt;&lt;B&gt;Customer_ID&lt;/B&gt;=&amp;gt;} &lt;B&gt;total&lt;/B&gt; &lt;B&gt;aggr&lt;/B&gt;(&lt;B&gt;Sum&lt;/B&gt;({&amp;lt;&lt;B&gt;Customer_ID&lt;/B&gt;=&amp;gt;} &lt;B&gt;Sales&lt;/B&gt;), &lt;B&gt;Customer_ID&lt;/B&gt;)) &lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stephen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jun 2009 19:14:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/aggr-with-set-analysis/m-p/147960#M26328</guid>
      <dc:creator>stephencredmond</dc:creator>
      <dc:date>2009-06-30T19:14:44Z</dc:date>
    </item>
    <item>
      <title>aggr with set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/aggr-with-set-analysis/m-p/147961#M26329</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stephen,&lt;/P&gt;&lt;P&gt;in this case I only get values as long as I don't select a certain customer_id. In case of selecting a customer calculation is "-"&lt;BR /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jun 2009 19:34:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/aggr-with-set-analysis/m-p/147961#M26329</guid>
      <dc:creator />
      <dc:date>2009-06-30T19:34:28Z</dc:date>
    </item>
    <item>
      <title>aggr with set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/aggr-with-set-analysis/m-p/147962#M26330</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It seems to me the Stephen's solution is good, also when I select a customer.&lt;/P&gt;&lt;P&gt;Try the equivalent&lt;/P&gt;&lt;P&gt;max&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;({1} total aggr(Sum({&amp;lt;Customer_ID={*}&amp;gt;} Sales), Customer_ID)) .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Roberta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jun 2009 20:49:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/aggr-with-set-analysis/m-p/147962#M26330</guid>
      <dc:creator />
      <dc:date>2009-06-30T20:49:52Z</dc:date>
    </item>
    <item>
      <title>aggr with set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/aggr-with-set-analysis/m-p/147963#M26331</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much, this is working. So I need to use&lt;BR /&gt;&lt;BR /&gt;&lt;B&gt;&lt;I&gt;Customer_ID={*}&lt;/I&gt;&lt;/B&gt; instead of &lt;I&gt;&lt;B&gt;Customer_ID=&lt;/B&gt;&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jun 2009 21:01:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/aggr-with-set-analysis/m-p/147963#M26331</guid>
      <dc:creator />
      <dc:date>2009-06-30T21:01:40Z</dc:date>
    </item>
  </channel>
</rss>

