<?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 Need help on Sum the max value of drill down fields in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Need-help-on-Sum-the-max-value-of-drill-down-fields/m-p/282626#M1190205</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;&amp;nbsp;&amp;nbsp; Can you please describe the problem with example.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kaushik Solanki&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 15 Jul 2011 07:15:36 GMT</pubDate>
    <dc:creator>kaushiknsolanki</dc:creator>
    <dc:date>2011-07-15T07:15:36Z</dc:date>
    <item>
      <title>Need help on Sum the max value of drill down fields</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-on-Sum-the-max-value-of-drill-down-fields/m-p/282625#M1190204</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm having some issue to get the Sum of the max value of some drill down field&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Enclosed the simplified version of the data structure, appreciate if anyone could help me to get the total value of the max amont on Region&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jul 2011 07:09:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-on-Sum-the-max-value-of-drill-down-fields/m-p/282625#M1190204</guid>
      <dc:creator>elaineng</dc:creator>
      <dc:date>2011-07-15T07:09:32Z</dc:date>
    </item>
    <item>
      <title>Need help on Sum the max value of drill down fields</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-on-Sum-the-max-value-of-drill-down-fields/m-p/282626#M1190205</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;&amp;nbsp;&amp;nbsp; Can you please describe the problem with example.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kaushik Solanki&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jul 2011 07:15:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-on-Sum-the-max-value-of-drill-down-fields/m-p/282626#M1190205</guid>
      <dc:creator>kaushiknsolanki</dc:creator>
      <dc:date>2011-07-15T07:15:36Z</dc:date>
    </item>
    <item>
      <title>Re: Need help on Sum the max value of drill down fields</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-on-Sum-the-max-value-of-drill-down-fields/m-p/282627#M1190206</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;Please find the attachmetns. its possible in cyclic grouping. Hope it helps u.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Still u hav any issues.&lt;/P&gt;&lt;P&gt;Let me knw&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jul 2011 07:17:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-on-Sum-the-max-value-of-drill-down-fields/m-p/282627#M1190206</guid>
      <dc:creator />
      <dc:date>2011-07-15T07:17:35Z</dc:date>
    </item>
    <item>
      <title>Need help on Sum the max value of drill down fields</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-on-Sum-the-max-value-of-drill-down-fields/m-p/282628#M1190207</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Let me explain:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a table data of :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 192pt; border-collapse: collapse;" width="256"&gt;&lt;TBODY&gt;&lt;TR style="height: 15pt;"&gt;&lt;TD height="20" style="width: 48pt; border-collapse: collapse; height: 15pt;" width="64"&gt;Region&lt;/TD&gt;&lt;TD style="width: 48pt; border-collapse: collapse;" width="64"&gt;Contry&lt;/TD&gt;&lt;TD style="width: 48pt; border-collapse: collapse;" width="64"&gt;Year&lt;/TD&gt;&lt;TD style="width: 48pt; border-collapse: collapse;" width="64"&gt;Value&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15pt;"&gt;&lt;TD height="20" style="border-collapse: collapse; height: 15pt;"&gt;Asia&lt;/TD&gt;&lt;TD style="border-collapse: collapse;"&gt;M'sia&lt;/TD&gt;&lt;TD align="right" style="border-collapse: collapse;"&gt;2011&lt;/TD&gt;&lt;TD align="right" style="border-collapse: collapse;"&gt;1000&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15pt;"&gt;&lt;TD height="20" style="border-collapse: collapse; height: 15pt;"&gt;Asia&lt;/TD&gt;&lt;TD style="border-collapse: collapse;"&gt;S'pore&lt;/TD&gt;&lt;TD align="right" style="border-collapse: collapse;"&gt;2011&lt;/TD&gt;&lt;TD align="right" style="border-collapse: collapse;"&gt;1200&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15pt;"&gt;&lt;TD height="20" style="border-collapse: collapse; height: 15pt;"&gt;Asia&lt;/TD&gt;&lt;TD style="border-collapse: collapse;"&gt;M'sia&lt;/TD&gt;&lt;TD align="right" style="border-collapse: collapse;"&gt;2010&lt;/TD&gt;&lt;TD align="right" style="border-collapse: collapse;"&gt;2000&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15pt;"&gt;&lt;TD height="20" style="border-collapse: collapse; height: 15pt;"&gt;Asia&lt;/TD&gt;&lt;TD style="border-collapse: collapse;"&gt;S'pore&lt;/TD&gt;&lt;TD align="right" style="border-collapse: collapse;"&gt;2010&lt;/TD&gt;&lt;TD align="right" style="border-collapse: collapse;"&gt;1100&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to get the Max value of each Country and total it at Region level&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this case, the max value for M'sia is 2,000 and S'pore is 1,200, the total for Region should be 3,200&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jul 2011 07:41:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-on-Sum-the-max-value-of-drill-down-fields/m-p/282628#M1190207</guid>
      <dc:creator>elaineng</dc:creator>
      <dc:date>2011-07-15T07:41:44Z</dc:date>
    </item>
    <item>
      <title>Re: Need help on Sum the max value of drill down fields</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-on-Sum-the-max-value-of-drill-down-fields/m-p/282629#M1190208</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;I got the solution that you need, but I used some scripting, basically you need grouping by country - after you use distint valuzes in Diagram, and the values are added correctly according to the dimension of the Diagram. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jul 2011 08:22:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-on-Sum-the-max-value-of-drill-down-fields/m-p/282629#M1190208</guid>
      <dc:creator />
      <dc:date>2011-07-15T08:22:19Z</dc:date>
    </item>
    <item>
      <title>Re: Need help on Sum the max value of drill down fields</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-on-Sum-the-max-value-of-drill-down-fields/m-p/282630#M1190209</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;Assuming you have a straight chart with Region, Country, Year and Value as dimensions (in that order), the following&amp;nbsp; expressions should do the trick for the max per region and country&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;If(Aggr(Max(TOTAL &amp;lt;Region, Country&amp;gt; Value), Region, Country, Year) = Value, Value)&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And the sum of those values&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;Sum(If(Aggr(Max(TOTAL &amp;lt;Region, Country&amp;gt; Value), Region, Country, Year) = Value, Value))&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/people/mabaeyens" style="font-size: 12px; outline-style: none; padding-top: 1px; padding-bottom: 1px; padding-left: 17px; color: #007fc0; zoom: 1; background-position: no-repeat no-repeat;"&gt;Miguel Angel Baeyens&lt;/A&gt;&lt;/P&gt;&lt;P&gt;BI Consultant&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://www.grupocomex.com/" style="font-size: 12px; outline-style: none; color: #007fc0;"&gt;Comex Grupo Ibérica&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jul 2011 08:31:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-on-Sum-the-max-value-of-drill-down-fields/m-p/282630#M1190209</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2011-07-15T08:31:13Z</dc:date>
    </item>
  </channel>
</rss>

