<?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 Maximum Sum of Dimensions - Aggregation in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Maximum-Sum-of-Dimensions-Aggregation/m-p/489232#M182829</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hello all, wanted to know if anyone can help with this issue: I have a table see below:&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="WIDTH: 274px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD height="20" width="64"&gt;Payer&lt;/TD&gt;&lt;TD width="80"&gt;Restrictions&lt;/TD&gt;&lt;TD width="57"&gt;Type&lt;/TD&gt;&lt;TD width="73"&gt;Volume&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" width="64"&gt;&lt;SPAN style="color: #0000ff;"&gt;A&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl63" style="border-left: medium none;" width="80"&gt;&lt;SPAN style="color: #0000ff;"&gt;N&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl63" style="border-left: medium none;" width="57"&gt;&lt;SPAN style="color: #0000ff;"&gt;Actual&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl64" style="border-left: medium none;" width="73"&gt;&lt;SPAN style="color: #0000ff;"&gt;300&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: medium none;" width="64"&gt;&lt;SPAN style="color: #0000ff;"&gt;A&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl63" style="border-left: medium none; border-top: medium none;" width="80"&gt;&lt;SPAN style="color: #0000ff;"&gt;N&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl63" style="border-left: medium none; border-top: medium none;" width="57"&gt;&lt;SPAN style="color: #0000ff;"&gt;Actual&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl64" style="border-left: medium none; border-top: medium none;" width="73"&gt;&lt;SPAN style="color: #0000ff;"&gt;500&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: medium none;" width="64"&gt;A&lt;/TD&gt;&lt;TD class="xl63" style="border-left: medium none; border-top: medium none;" width="80"&gt;Y&lt;/TD&gt;&lt;TD class="xl63" style="border-left: medium none; border-top: medium none;" width="57"&gt;Preferred&lt;/TD&gt;&lt;TD class="xl64" style="border-left: medium none; border-top: medium none;" width="73"&gt;200&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: medium none;" width="64"&gt;B&lt;/TD&gt;&lt;TD class="xl63" style="border-left: medium none; border-top: medium none;" width="80"&gt;N&lt;/TD&gt;&lt;TD class="xl63" style="border-left: medium none; border-top: medium none;" width="57"&gt;Actual&lt;/TD&gt;&lt;TD class="xl64" style="border-left: medium none; border-top: medium none;" width="73"&gt;300&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: medium none;" width="64"&gt;&lt;SPAN style="color: #ff0000;"&gt;B&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl63" style="border-left: medium none; border-top: medium none;" width="80"&gt;&lt;SPAN style="color: #ff0000;"&gt;Y&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl63" style="border-left: medium none; border-top: medium none;" width="57"&gt;&lt;SPAN style="color: #ff0000;"&gt;Preferred&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl64" style="border-left: medium none; border-top: medium none;" width="73"&gt;&lt;SPAN style="color: #ff0000;"&gt;200&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: medium none;" width="64"&gt;&lt;SPAN style="color: #ff0000;"&gt;B&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl63" style="border-left: medium none; border-top: medium none;" width="80"&gt;&lt;SPAN style="color: #ff0000;"&gt;Y&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl63" style="border-left: medium none; border-top: medium none;" width="57"&gt;&lt;SPAN style="color: #ff0000;"&gt;Preferred&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl64" style="border-left: medium none; border-top: medium none;" width="73"&gt;&lt;SPAN style="color: #ff0000;"&gt;500&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I need to calculate is based on the&amp;nbsp; highest sum of the volume , show only associated dimensions with the highest sum of volume at that level:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So for Payer A , the result should be Volume =800 and Restrictions = 'N' and Type = 'Actual'&lt;/P&gt;&lt;P&gt;For Payer B, the result should be Volume = 700 and Restrictions = 'Y' and Type ='Preferred' so the end result should look something like this:&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="274"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD height="20" width="64"&gt;Payer&lt;/TD&gt;&lt;TD width="80"&gt;Restrictions&lt;/TD&gt;&lt;TD width="57"&gt;Type&lt;/TD&gt;&lt;TD width="73"&gt;Volume&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" width="64"&gt;A&lt;/TD&gt;&lt;TD class="xl65" style="border-left: medium none;" width="80"&gt;N&lt;/TD&gt;&lt;TD class="xl65" style="border-left: medium none;" width="57"&gt;Actual&lt;/TD&gt;&lt;TD class="xl66" style="border-left: medium none;" width="73"&gt;800&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top: medium none;" width="64"&gt;B&lt;/TD&gt;&lt;TD class="xl65" style="border-left: medium none; border-top: medium none;" width="80"&gt;Y&lt;/TD&gt;&lt;TD class="xl65" style="border-left: medium none; border-top: medium none;" width="57"&gt;Preferred&lt;/TD&gt;&lt;TD class="xl66" style="border-left: medium none; border-top: medium none;" width="73"&gt;700&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any way to accomplish this in an expression in a straight table?&lt;/P&gt;&lt;P&gt;Any help would appreciated !&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Loren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 09 Jan 2014 18:13:31 GMT</pubDate>
    <dc:creator>lorenwood</dc:creator>
    <dc:date>2014-01-09T18:13:31Z</dc:date>
    <item>
      <title>Maximum Sum of Dimensions - Aggregation</title>
      <link>https://community.qlik.com/t5/QlikView/Maximum-Sum-of-Dimensions-Aggregation/m-p/489232#M182829</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hello all, wanted to know if anyone can help with this issue: I have a table see below:&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="WIDTH: 274px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD height="20" width="64"&gt;Payer&lt;/TD&gt;&lt;TD width="80"&gt;Restrictions&lt;/TD&gt;&lt;TD width="57"&gt;Type&lt;/TD&gt;&lt;TD width="73"&gt;Volume&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" width="64"&gt;&lt;SPAN style="color: #0000ff;"&gt;A&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl63" style="border-left: medium none;" width="80"&gt;&lt;SPAN style="color: #0000ff;"&gt;N&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl63" style="border-left: medium none;" width="57"&gt;&lt;SPAN style="color: #0000ff;"&gt;Actual&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl64" style="border-left: medium none;" width="73"&gt;&lt;SPAN style="color: #0000ff;"&gt;300&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: medium none;" width="64"&gt;&lt;SPAN style="color: #0000ff;"&gt;A&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl63" style="border-left: medium none; border-top: medium none;" width="80"&gt;&lt;SPAN style="color: #0000ff;"&gt;N&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl63" style="border-left: medium none; border-top: medium none;" width="57"&gt;&lt;SPAN style="color: #0000ff;"&gt;Actual&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl64" style="border-left: medium none; border-top: medium none;" width="73"&gt;&lt;SPAN style="color: #0000ff;"&gt;500&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: medium none;" width="64"&gt;A&lt;/TD&gt;&lt;TD class="xl63" style="border-left: medium none; border-top: medium none;" width="80"&gt;Y&lt;/TD&gt;&lt;TD class="xl63" style="border-left: medium none; border-top: medium none;" width="57"&gt;Preferred&lt;/TD&gt;&lt;TD class="xl64" style="border-left: medium none; border-top: medium none;" width="73"&gt;200&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: medium none;" width="64"&gt;B&lt;/TD&gt;&lt;TD class="xl63" style="border-left: medium none; border-top: medium none;" width="80"&gt;N&lt;/TD&gt;&lt;TD class="xl63" style="border-left: medium none; border-top: medium none;" width="57"&gt;Actual&lt;/TD&gt;&lt;TD class="xl64" style="border-left: medium none; border-top: medium none;" width="73"&gt;300&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: medium none;" width="64"&gt;&lt;SPAN style="color: #ff0000;"&gt;B&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl63" style="border-left: medium none; border-top: medium none;" width="80"&gt;&lt;SPAN style="color: #ff0000;"&gt;Y&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl63" style="border-left: medium none; border-top: medium none;" width="57"&gt;&lt;SPAN style="color: #ff0000;"&gt;Preferred&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl64" style="border-left: medium none; border-top: medium none;" width="73"&gt;&lt;SPAN style="color: #ff0000;"&gt;200&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: medium none;" width="64"&gt;&lt;SPAN style="color: #ff0000;"&gt;B&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl63" style="border-left: medium none; border-top: medium none;" width="80"&gt;&lt;SPAN style="color: #ff0000;"&gt;Y&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl63" style="border-left: medium none; border-top: medium none;" width="57"&gt;&lt;SPAN style="color: #ff0000;"&gt;Preferred&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl64" style="border-left: medium none; border-top: medium none;" width="73"&gt;&lt;SPAN style="color: #ff0000;"&gt;500&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I need to calculate is based on the&amp;nbsp; highest sum of the volume , show only associated dimensions with the highest sum of volume at that level:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So for Payer A , the result should be Volume =800 and Restrictions = 'N' and Type = 'Actual'&lt;/P&gt;&lt;P&gt;For Payer B, the result should be Volume = 700 and Restrictions = 'Y' and Type ='Preferred' so the end result should look something like this:&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="274"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD height="20" width="64"&gt;Payer&lt;/TD&gt;&lt;TD width="80"&gt;Restrictions&lt;/TD&gt;&lt;TD width="57"&gt;Type&lt;/TD&gt;&lt;TD width="73"&gt;Volume&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" width="64"&gt;A&lt;/TD&gt;&lt;TD class="xl65" style="border-left: medium none;" width="80"&gt;N&lt;/TD&gt;&lt;TD class="xl65" style="border-left: medium none;" width="57"&gt;Actual&lt;/TD&gt;&lt;TD class="xl66" style="border-left: medium none;" width="73"&gt;800&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top: medium none;" width="64"&gt;B&lt;/TD&gt;&lt;TD class="xl65" style="border-left: medium none; border-top: medium none;" width="80"&gt;Y&lt;/TD&gt;&lt;TD class="xl65" style="border-left: medium none; border-top: medium none;" width="57"&gt;Preferred&lt;/TD&gt;&lt;TD class="xl66" style="border-left: medium none; border-top: medium none;" width="73"&gt;700&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any way to accomplish this in an expression in a straight table?&lt;/P&gt;&lt;P&gt;Any help would appreciated !&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Loren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jan 2014 18:13:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Maximum-Sum-of-Dimensions-Aggregation/m-p/489232#M182829</guid>
      <dc:creator>lorenwood</dc:creator>
      <dc:date>2014-01-09T18:13:31Z</dc:date>
    </item>
    <item>
      <title>Re: Maximum Sum of Dimensions - Aggregation</title>
      <link>https://community.qlik.com/t5/QlikView/Maximum-Sum-of-Dimensions-Aggregation/m-p/489233#M182830</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you need the expression you can start from that one:&lt;/P&gt;&lt;P&gt;=if(Sum (Volume)&amp;gt;Sum (total&amp;lt;Payer&amp;gt;Volume)/2, Sum (Volume))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It works for the sample provided, but I guess you real data are more complex.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also consider calculating the flag that the row is relative to the highest sum of the volume in script.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jan 2014 18:41:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Maximum-Sum-of-Dimensions-Aggregation/m-p/489233#M182830</guid>
      <dc:creator>whiteline</dc:creator>
      <dc:date>2014-01-09T18:41:32Z</dc:date>
    </item>
    <item>
      <title>Re: Maximum Sum of Dimensions - Aggregation</title>
      <link>https://community.qlik.com/t5/QlikView/Maximum-Sum-of-Dimensions-Aggregation/m-p/489234#M182831</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See attached qvw&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jan 2014 18:44:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Maximum-Sum-of-Dimensions-Aggregation/m-p/489234#M182831</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2014-01-09T18:44:37Z</dc:date>
    </item>
  </channel>
</rss>

