<?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 for each, aggregating data, in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/for-each-aggregating-data/m-p/400125#M1155717</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm new to Qlikview and would love some help with this problem. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a Campaign_Code number with a one to many relationship with Campaign_Cell. My data is pre-aggregated at a Campaign_Cell level. &lt;SPAN style="font-size: 14pt;"&gt;&lt;STRONG&gt;I would like to do calculations with Campaign_Code, which would need to combine the Campaign_Cell stats for each Campaign_Code. How do I calculate at the campaign level?&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Currently, I have my tables set up as a drill down. You click the Campaign_code and it reveals the Campaign_Cell.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Background: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to create a chart that shows the percentage of campaigns by their open rate. I already have them on the tab but it's deceiving because the open rate that I use for the dimension is actually the open rate at a CELL level and so a campaign can be counted more than once. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL style="list-style-type: disc;"&gt;&lt;LI&gt;C01&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 25%&lt;/LI&gt;&lt;LI&gt;C02&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 18%&lt;/LI&gt;&lt;LI&gt;C03&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 15%&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Further assume, I define three dimensions in the&lt;BR /&gt;chart:&amp;nbsp;&amp;nbsp; &amp;lt;15%, 15-20%; &amp;gt;= 21%&amp;nbsp;&amp;nbsp; In this scenario, the&lt;BR /&gt;single campaign will be counted THREE times – it will be counted in each range&lt;BR /&gt;since it has one or more CELLS with an open rate in the given range.&amp;nbsp; This&lt;BR /&gt;is definitely not what I intended.&amp;nbsp; So, the following expression won’t&lt;BR /&gt;work (since the variable open_rate is calculated at cell level):&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P style="text-indent: 0.5in;"&gt;&lt;STRONG style=": ; color: #ff8000; font-size: 9pt; font-family: &amp;amp;quot; text-decoration: underline;"&gt;(&lt;/STRONG&gt;&lt;SPAN style="color: blue; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; font-size: 9pt;"&gt;count&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; font-size: 9pt;"&gt;( &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; font-size: 9pt;"&gt;distinct&lt;/SPAN&gt; &lt;SPAN style="color: blue; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; font-size: 9pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; font-size: 9pt;"&gt;open_rate&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; font-size: 9pt;"&gt; &amp;lt; 0.15,&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; font-size: 9pt;"&gt;[Campaign Code]&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; font-size: 9pt;"&gt; ))&lt;/SPAN&gt;&lt;STRONG style=": ; color: #ff8000; font-size: 9pt; font-family: &amp;amp;quot; text-decoration: underline;"&gt;)&lt;/STRONG&gt;&lt;SPAN style="color: black; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; font-size: 9pt;"&gt; / (&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; font-size: 9pt;"&gt;count&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; font-size: 9pt;"&gt;( &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; font-size: 9pt;"&gt;distinct&lt;/SPAN&gt; &lt;SPAN style="color: maroon; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; font-size: 9pt;"&gt;[Campaign Code]&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; font-size: 9pt;"&gt;)) &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-indent: 0.5in;"&gt;&lt;/P&gt;&lt;P style="text-indent: 0.5in;"&gt;&lt;/P&gt;&lt;P style="text-indent: 0.5in;"&gt;&lt;SPAN style="color: black; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; font-size: 9pt;"&gt;Thank you very much!&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-indent: 0.5in;"&gt;&lt;/P&gt;&lt;P style="text-indent: 0.5in;"&gt;&lt;SPAN style="color: black; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; font-size: 9pt;"&gt;SHapeman&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 Mar 2013 15:48:02 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-03-27T15:48:02Z</dc:date>
    <item>
      <title>for each, aggregating data,</title>
      <link>https://community.qlik.com/t5/QlikView/for-each-aggregating-data/m-p/400125#M1155717</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm new to Qlikview and would love some help with this problem. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a Campaign_Code number with a one to many relationship with Campaign_Cell. My data is pre-aggregated at a Campaign_Cell level. &lt;SPAN style="font-size: 14pt;"&gt;&lt;STRONG&gt;I would like to do calculations with Campaign_Code, which would need to combine the Campaign_Cell stats for each Campaign_Code. How do I calculate at the campaign level?&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Currently, I have my tables set up as a drill down. You click the Campaign_code and it reveals the Campaign_Cell.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Background: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to create a chart that shows the percentage of campaigns by their open rate. I already have them on the tab but it's deceiving because the open rate that I use for the dimension is actually the open rate at a CELL level and so a campaign can be counted more than once. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL style="list-style-type: disc;"&gt;&lt;LI&gt;C01&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 25%&lt;/LI&gt;&lt;LI&gt;C02&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 18%&lt;/LI&gt;&lt;LI&gt;C03&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 15%&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Further assume, I define three dimensions in the&lt;BR /&gt;chart:&amp;nbsp;&amp;nbsp; &amp;lt;15%, 15-20%; &amp;gt;= 21%&amp;nbsp;&amp;nbsp; In this scenario, the&lt;BR /&gt;single campaign will be counted THREE times – it will be counted in each range&lt;BR /&gt;since it has one or more CELLS with an open rate in the given range.&amp;nbsp; This&lt;BR /&gt;is definitely not what I intended.&amp;nbsp; So, the following expression won’t&lt;BR /&gt;work (since the variable open_rate is calculated at cell level):&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P style="text-indent: 0.5in;"&gt;&lt;STRONG style=": ; color: #ff8000; font-size: 9pt; font-family: &amp;amp;quot; text-decoration: underline;"&gt;(&lt;/STRONG&gt;&lt;SPAN style="color: blue; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; font-size: 9pt;"&gt;count&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; font-size: 9pt;"&gt;( &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; font-size: 9pt;"&gt;distinct&lt;/SPAN&gt; &lt;SPAN style="color: blue; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; font-size: 9pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; font-size: 9pt;"&gt;open_rate&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; font-size: 9pt;"&gt; &amp;lt; 0.15,&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; font-size: 9pt;"&gt;[Campaign Code]&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; font-size: 9pt;"&gt; ))&lt;/SPAN&gt;&lt;STRONG style=": ; color: #ff8000; font-size: 9pt; font-family: &amp;amp;quot; text-decoration: underline;"&gt;)&lt;/STRONG&gt;&lt;SPAN style="color: black; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; font-size: 9pt;"&gt; / (&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; font-size: 9pt;"&gt;count&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; font-size: 9pt;"&gt;( &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; font-size: 9pt;"&gt;distinct&lt;/SPAN&gt; &lt;SPAN style="color: maroon; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; font-size: 9pt;"&gt;[Campaign Code]&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; font-size: 9pt;"&gt;)) &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-indent: 0.5in;"&gt;&lt;/P&gt;&lt;P style="text-indent: 0.5in;"&gt;&lt;/P&gt;&lt;P style="text-indent: 0.5in;"&gt;&lt;SPAN style="color: black; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; font-size: 9pt;"&gt;Thank you very much!&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-indent: 0.5in;"&gt;&lt;/P&gt;&lt;P style="text-indent: 0.5in;"&gt;&lt;SPAN style="color: black; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; font-size: 9pt;"&gt;SHapeman&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Mar 2013 15:48:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/for-each-aggregating-data/m-p/400125#M1155717</guid>
      <dc:creator />
      <dc:date>2013-03-27T15:48:02Z</dc:date>
    </item>
  </channel>
</rss>

