<?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 Aggregating a sum to different dimensions in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Aggregating-a-sum-to-different-dimensions/m-p/1323919#M460220</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello to everybody! This forum has been a great help so far, but I have found a problem that I haven´t been able to solve using the current available knowledge. First of all, thank you for taking time going through my doubt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I am trying to achieve is the expression 1 in the image: to sum every count depending on Dim2 but ignoring Dim1, and using it as it is shown below. The count doesn´t appear like that, but comes from the count operation of different IDs&lt;/P&gt;&lt;P&gt;&lt;IMG alt="test.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/167510_test.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I have reached so far, by using this expression =sum( aggr(count({&amp;lt;Dim1&amp;gt;}&amp;nbsp; distinct ID), Dim2)) throws this strange result:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="test2.PNG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/167511_test2.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope someone can help, and that I will be able to help others in the near future &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;Kind regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 Jun 2017 16:53:27 GMT</pubDate>
    <dc:creator />
    <dc:date>2017-06-20T16:53:27Z</dc:date>
    <item>
      <title>Aggregating a sum to different dimensions</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregating-a-sum-to-different-dimensions/m-p/1323919#M460220</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello to everybody! This forum has been a great help so far, but I have found a problem that I haven´t been able to solve using the current available knowledge. First of all, thank you for taking time going through my doubt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I am trying to achieve is the expression 1 in the image: to sum every count depending on Dim2 but ignoring Dim1, and using it as it is shown below. The count doesn´t appear like that, but comes from the count operation of different IDs&lt;/P&gt;&lt;P&gt;&lt;IMG alt="test.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/167510_test.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I have reached so far, by using this expression =sum( aggr(count({&amp;lt;Dim1&amp;gt;}&amp;nbsp; distinct ID), Dim2)) throws this strange result:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="test2.PNG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/167511_test2.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope someone can help, and that I will be able to help others in the near future &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;Kind regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jun 2017 16:53:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregating-a-sum-to-different-dimensions/m-p/1323919#M460220</guid>
      <dc:creator />
      <dc:date>2017-06-20T16:53:27Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregating a sum to different dimensions</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregating-a-sum-to-different-dimensions/m-p/1323920#M460221</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Count(TOTAL &amp;lt;Dim2&amp;gt; {&amp;lt;Dim1&amp;gt;} DISTINCT ID)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jun 2017 17:24:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregating-a-sum-to-different-dimensions/m-p/1323920#M460221</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-06-20T17:24:41Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregating a sum to different dimensions</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregating-a-sum-to-different-dimensions/m-p/1323921#M460222</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much! It worked perfectly. I have one more question:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If we one to select the Dim1 from a list box in order to show only my desired ones, how could I achieve it? Through the formula used above, it always shows every Dim1, no matter whether it is selected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much so far Sunny!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Jun 2017 07:38:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregating-a-sum-to-different-dimensions/m-p/1323921#M460222</guid>
      <dc:creator />
      <dc:date>2017-06-21T07:38:40Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregating a sum to different dimensions</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregating-a-sum-to-different-dimensions/m-p/1323922#M460223</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That is because of the set analysis you had in your initial post.... try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Count(TOTAL &amp;lt;Dim2&amp;gt; DISTINCT ID)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Jun 2017 08:27:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregating-a-sum-to-different-dimensions/m-p/1323922#M460223</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-06-21T08:27:29Z</dc:date>
    </item>
  </channel>
</rss>

