<?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 Nested aggregation and set analysis + TOTAL? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Nested-aggregation-and-set-analysis-TOTAL/m-p/762329#M271053</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to show the average Open rate of an email campaign (unique) and benchmark it with the average Open rate pver all email campaigns (unique). &lt;/P&gt;&lt;P&gt;So far the calculation of the individual email campaign works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the formula for the individual campaign:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;avg(aggr(count({&amp;lt;resource_type_id={67},Trackingtype_id={19}&amp;gt;}DISTINCT %profile_id)&lt;/P&gt;&lt;P&gt;/sum(recipients),%resource_id))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with resource_type_id and Trackingtype_id filtering for Activities that belong to an email campaign and that describe the email opening. The %recource_id is the dimension for the different email campaigns.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This part works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, the benchmark based on the overall average on all campaigns does not work. Following the formula that I have come up with so far. I marked the changes compared to the formula above in bold:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;avg(&lt;STRONG&gt;{1}total&lt;/STRONG&gt; aggr(count ({&lt;STRONG&gt;1&lt;/STRONG&gt;&amp;lt;resource_type_id={67}, Trackingtype_id={19}&amp;gt;}DISTINCT %profile_id)&lt;/P&gt;&lt;P&gt;/sum(recipients), %resource_id))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately it gives me the same result as the first formula. But I would like to get a fix number that does not change when I change my selection, i.e. this benchmark figure should be indepenten of the current selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you help me out here?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sebastian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 09 Mar 2015 10:50:06 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-03-09T10:50:06Z</dc:date>
    <item>
      <title>Nested aggregation and set analysis + TOTAL?</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-aggregation-and-set-analysis-TOTAL/m-p/762329#M271053</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to show the average Open rate of an email campaign (unique) and benchmark it with the average Open rate pver all email campaigns (unique). &lt;/P&gt;&lt;P&gt;So far the calculation of the individual email campaign works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the formula for the individual campaign:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;avg(aggr(count({&amp;lt;resource_type_id={67},Trackingtype_id={19}&amp;gt;}DISTINCT %profile_id)&lt;/P&gt;&lt;P&gt;/sum(recipients),%resource_id))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with resource_type_id and Trackingtype_id filtering for Activities that belong to an email campaign and that describe the email opening. The %recource_id is the dimension for the different email campaigns.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This part works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, the benchmark based on the overall average on all campaigns does not work. Following the formula that I have come up with so far. I marked the changes compared to the formula above in bold:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;avg(&lt;STRONG&gt;{1}total&lt;/STRONG&gt; aggr(count ({&lt;STRONG&gt;1&lt;/STRONG&gt;&amp;lt;resource_type_id={67}, Trackingtype_id={19}&amp;gt;}DISTINCT %profile_id)&lt;/P&gt;&lt;P&gt;/sum(recipients), %resource_id))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately it gives me the same result as the first formula. But I would like to get a fix number that does not change when I change my selection, i.e. this benchmark figure should be indepenten of the current selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you help me out here?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sebastian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Mar 2015 10:50:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nested-aggregation-and-set-analysis-TOTAL/m-p/762329#M271053</guid>
      <dc:creator />
      <dc:date>2015-03-09T10:50:06Z</dc:date>
    </item>
    <item>
      <title>Re: Nested aggregation and set analysis + TOTAL?</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-aggregation-and-set-analysis-TOTAL/m-p/762330#M271054</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you post sample data and expected output&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Mar 2015 11:23:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nested-aggregation-and-set-analysis-TOTAL/m-p/762330#M271054</guid>
      <dc:creator>anbu1984</dc:creator>
      <dc:date>2015-03-09T11:23:00Z</dc:date>
    </item>
    <item>
      <title>Re: Nested aggregation and set analysis + TOTAL?</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-aggregation-and-set-analysis-TOTAL/m-p/762331#M271055</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;find attached a test version.&lt;/P&gt;&lt;P&gt;Looking forward to your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sebastian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Mar 2015 13:08:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nested-aggregation-and-set-analysis-TOTAL/m-p/762331#M271055</guid>
      <dc:creator />
      <dc:date>2015-03-09T13:08:05Z</dc:date>
    </item>
    <item>
      <title>Re: Nested aggregation and set analysis + TOTAL?</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-aggregation-and-set-analysis-TOTAL/m-p/762332#M271056</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;=avg({1}total aggr(count ({1&amp;lt;resource_type_id={67}, Trackingtype_id={19}&amp;gt;}DISTINCT %profile_id)&lt;/P&gt;&lt;P&gt;/sum(&lt;STRONG&gt;{1}&lt;/STRONG&gt;recipients), %resource_id))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Mar 2015 13:25:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nested-aggregation-and-set-analysis-TOTAL/m-p/762332#M271056</guid>
      <dc:creator>anbu1984</dc:creator>
      <dc:date>2015-03-09T13:25:31Z</dc:date>
    </item>
    <item>
      <title>Re: Nested aggregation and set analysis + TOTAL?</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-aggregation-and-set-analysis-TOTAL/m-p/762333#M271057</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anbu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for your help! You solved my challenge &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sebastian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Mar 2015 13:31:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nested-aggregation-and-set-analysis-TOTAL/m-p/762333#M271057</guid>
      <dc:creator />
      <dc:date>2015-03-09T13:31:48Z</dc:date>
    </item>
  </channel>
</rss>

