<?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 function in a Pivot table/Data Island in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Aggr-function-in-a-Pivot-table-Data-Island/m-p/1563837#M597483</link>
    <description>&lt;P&gt;I've a question about the following 2 expressions:&lt;/P&gt;&lt;P&gt;In 1 expression i'm using an AGGR function including the [Year Month]&amp;nbsp; dimension, in the other expression not.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I noticed in the output that the Unique Open (the one without the [Year Month] dimension is 0 for '2018 Mar'.&lt;/P&gt;&lt;P&gt;There is a record for '2018 Mar', but it has the same Campaign_Asset_ID.KEY as in '2017 Nov'.&amp;nbsp; In 2017 Nov the value is 1, which matches with the records.&lt;/P&gt;&lt;P&gt;My question. Because i'm using an AGGR function the [ Year Month] dimension in the table, is not used in the AGGR calculation. For that I need to add the [Year Month] in the AGGR function itself. What i did in the 'Unique Open - [Year Month]&amp;nbsp; expression.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hoped that by adding Dimensions in a table, it would have the same effect as adding dimensions in the AGGR function. But it's not.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now i'm wondering how i can use this AGGR function in a Pivot table, or in a 'Data Island' table. Because i need to be sure that the selected Dimensions are included in the AGGR function.&lt;/P&gt;&lt;P&gt;What is the best practice? &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Forum.png" style="width: 916px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/9256iDA86C8BF2C197018/image-size/large?v=v2&amp;amp;px=999" role="button" title="Forum.png" alt="Forum.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Ideally, i would like to use the 'Unique Open' expression, with the same result as 'Unique Open - [ Year Month], so i can easily re-use the expression.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 02 Apr 2019 11:24:53 GMT</pubDate>
    <dc:creator>twanqlik</dc:creator>
    <dc:date>2019-04-02T11:24:53Z</dc:date>
    <item>
      <title>Aggr function in a Pivot table/Data Island</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-function-in-a-Pivot-table-Data-Island/m-p/1563837#M597483</link>
      <description>&lt;P&gt;I've a question about the following 2 expressions:&lt;/P&gt;&lt;P&gt;In 1 expression i'm using an AGGR function including the [Year Month]&amp;nbsp; dimension, in the other expression not.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I noticed in the output that the Unique Open (the one without the [Year Month] dimension is 0 for '2018 Mar'.&lt;/P&gt;&lt;P&gt;There is a record for '2018 Mar', but it has the same Campaign_Asset_ID.KEY as in '2017 Nov'.&amp;nbsp; In 2017 Nov the value is 1, which matches with the records.&lt;/P&gt;&lt;P&gt;My question. Because i'm using an AGGR function the [ Year Month] dimension in the table, is not used in the AGGR calculation. For that I need to add the [Year Month] in the AGGR function itself. What i did in the 'Unique Open - [Year Month]&amp;nbsp; expression.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hoped that by adding Dimensions in a table, it would have the same effect as adding dimensions in the AGGR function. But it's not.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now i'm wondering how i can use this AGGR function in a Pivot table, or in a 'Data Island' table. Because i need to be sure that the selected Dimensions are included in the AGGR function.&lt;/P&gt;&lt;P&gt;What is the best practice? &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Forum.png" style="width: 916px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/9256iDA86C8BF2C197018/image-size/large?v=v2&amp;amp;px=999" role="button" title="Forum.png" alt="Forum.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Ideally, i would like to use the 'Unique Open' expression, with the same result as 'Unique Open - [ Year Month], so i can easily re-use the expression.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Apr 2019 11:24:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-function-in-a-Pivot-table-Data-Island/m-p/1563837#M597483</guid>
      <dc:creator>twanqlik</dc:creator>
      <dc:date>2019-04-02T11:24:53Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr function in a Pivot table/Data Island</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-function-in-a-Pivot-table-Data-Island/m-p/1563843#M597484</link>
      <description>&lt;P&gt;Aggr function creates an independent virtual table using the dimensions specified in it regardless of the dimensions listed in your chart. In order to avoid grain mismatch, you need to include at least the dimensions specified in the chart and use it in the aggr() function unless it has a more granular dimension in aggr.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Read about the&amp;nbsp;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/Pitfalls-of-the-Aggr-function/ba-p/1463275" target="_blank" rel="noopener"&gt;Pitfalls of the Aggr function&lt;/A&gt;&amp;nbsp;here.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Apr 2019 11:31:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-function-in-a-Pivot-table-Data-Island/m-p/1563843#M597484</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-04-02T11:31:08Z</dc:date>
    </item>
  </channel>
</rss>

