<?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 Re: Sum based on aggregation of multiple dimension. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sum-based-on-aggregation-of-multiple-dimension/m-p/1028009#M941723</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For several possible Plan values,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f2f2f2;"&gt;$(=Aggr(max(Month),Plan))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;will not return an unambiguous value (try &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f2f2f2;"&gt;=Aggr(max(Month),Plan)&amp;nbsp; &lt;/SPAN&gt;in a text box).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 Jan 2016 18:33:06 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2016-01-21T18:33:06Z</dc:date>
    <item>
      <title>Sum based on aggregation of multiple dimension.</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-based-on-aggregation-of-multiple-dimension/m-p/1028005#M941719</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello QV community,&lt;/P&gt;&lt;P&gt;I am trying to calculate the Total Lives for recent months of the associated/selected Plans.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Lives.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/111983_Lives.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;As can be seen in the image the Total Lives should be 13+16=29 for selected plans A and C for Month=6 and Month=7 respectively.&lt;/P&gt;&lt;P&gt;I have tried some modification of the below expression, but couldn't figure out the correct result.&lt;/P&gt;&lt;P&gt;Expression-&amp;gt; =sum(aggr(max(Month),Plan),Lives)&lt;/P&gt;&lt;P&gt;=aggr(sum(Lives),max(Month),Plan)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would really be thankful for the help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Abhishek Anand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Nov 2020 18:02:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-based-on-aggregation-of-multiple-dimension/m-p/1028005#M941719</guid>
      <dc:creator />
      <dc:date>2020-11-20T18:02:30Z</dc:date>
    </item>
    <item>
      <title>Re: Sum based on aggregation of multiple dimension.</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-based-on-aggregation-of-multiple-dimension/m-p/1028006#M941720</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum( Aggr( FirstSortedValue( Lives, -Month), Plan))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jan 2016 15:26:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-based-on-aggregation-of-multiple-dimension/m-p/1028006#M941720</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-01-19T15:26:13Z</dc:date>
    </item>
    <item>
      <title>Re: Sum based on aggregation of multiple dimension.</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-based-on-aggregation-of-multiple-dimension/m-p/1028007#M941721</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum(Aggr(FirstSortedValue(Lives, -Month), Plan))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jan 2016 15:31:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-based-on-aggregation-of-multiple-dimension/m-p/1028007#M941721</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-01-19T15:31:58Z</dc:date>
    </item>
    <item>
      <title>Re: Sum based on aggregation of multiple dimension.</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-based-on-aggregation-of-multiple-dimension/m-p/1028008#M941722</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the solution.&lt;/P&gt;&lt;P&gt;I am trying the below expression to achieve the same functionality. It is working fine when I select any plan but when&amp;nbsp; no plan is selected from the plan list box I am getting Lives total as 0.&lt;/P&gt;&lt;P&gt;Could you please explain.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression--&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sum({&amp;lt;Month={"$(=Aggr(max(Month),Plan))"}&amp;gt;}Lives)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jan 2016 13:56:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-based-on-aggregation-of-multiple-dimension/m-p/1028008#M941722</guid>
      <dc:creator />
      <dc:date>2016-01-21T13:56:25Z</dc:date>
    </item>
    <item>
      <title>Re: Sum based on aggregation of multiple dimension.</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-based-on-aggregation-of-multiple-dimension/m-p/1028009#M941723</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For several possible Plan values,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f2f2f2;"&gt;$(=Aggr(max(Month),Plan))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;will not return an unambiguous value (try &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f2f2f2;"&gt;=Aggr(max(Month),Plan)&amp;nbsp; &lt;/SPAN&gt;in a text box).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jan 2016 18:33:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-based-on-aggregation-of-multiple-dimension/m-p/1028009#M941723</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-01-21T18:33:06Z</dc:date>
    </item>
  </channel>
</rss>

