<?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 How to get TOTAL of a Ranked Column in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-get-TOTAL-of-a-Ranked-Column/m-p/101611#M756729</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've a STATE table as listed below. Now, I need a total row that displays a state with the highest amount (sum of all the amounts for that state irrespective of the UNIT). Any ideas?&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Ranking_Test1.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/212832_Ranking_Test1.JPG" style="width: 620px; height: 340px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator>newqlik2017</dc:creator>
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>How to get TOTAL of a Ranked Column</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-TOTAL-of-a-Ranked-Column/m-p/101611#M756729</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've a STATE table as listed below. Now, I need a total row that displays a state with the highest amount (sum of all the amounts for that state irrespective of the UNIT). Any ideas?&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Ranking_Test1.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/212832_Ranking_Test1.JPG" style="width: 620px; height: 340px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-TOTAL-of-a-Ranked-Column/m-p/101611#M756729</guid>
      <dc:creator>newqlik2017</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to get TOTAL of a Ranked Column</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-TOTAL-of-a-Ranked-Column/m-p/101612#M756730</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not the best way to do this, but can't think of a better way&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;STATE&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(Dimensionality() = 0,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Pick(Aggr(Rank(Sum({&amp;lt; DATE = {'201806'}&amp;gt;} AMOUNT)), UNIT, STATE),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FirstSortedValue(DISTINCT STATE, -Aggr(Sum(TOTAL &amp;lt;STATE&amp;gt; {&amp;lt; DATE = {'201806'}&amp;gt;} If(Aggr(Rank(Sum({&amp;lt; DATE = {'201806'}&amp;gt;} AMOUNT)), UNIT, STATE) = 1, AMOUNT)), UNIT, STATE)),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FirstSortedValue(DISTINCT STATE, -Aggr(Sum(TOTAL &amp;lt;STATE&amp;gt; {&amp;lt; DATE = {'201806'}&amp;gt;} If(Aggr(Rank(Sum({&amp;lt; DATE = {'201806'}&amp;gt;} AMOUNT)), UNIT, STATE) = 2, AMOUNT)), UNIT, STATE))),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;AGGR(IF(RANK(SUM({&amp;lt; DATE = {'201806'} &amp;gt;} AMOUNT)) &amp;lt;= 2 , STATE, 'All Other'), UNIT, STATE))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AMT&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(Dimensionality() = 0,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Pick(Aggr(Rank(Sum({&amp;lt; DATE = {'201806'}&amp;gt;} AMOUNT)), UNIT, STATE),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Max(Aggr(Sum(TOTAL &amp;lt;STATE&amp;gt; {&amp;lt; DATE = {'201806'}&amp;gt;} If(Aggr(Rank(Sum({&amp;lt; DATE = {'201806'}&amp;gt;} AMOUNT)), UNIT, STATE) = 1, AMOUNT)), UNIT, STATE)),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Max(Aggr(Sum(TOTAL &amp;lt;STATE&amp;gt; {&amp;lt; DATE = {'201806'}&amp;gt;} If(Aggr(Rank(Sum({&amp;lt; DATE = {'201806'}&amp;gt;} AMOUNT)), UNIT, STATE) = 2, AMOUNT)), UNIT, STATE))),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum({&amp;lt;DATE = {'201806'}&amp;gt;} AMOUNT) + Sum({1}0))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/212856_Capture.PNG" style="height: auto;" /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Sep 2018 14:49:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-TOTAL-of-a-Ranked-Column/m-p/101612#M756730</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-09-06T14:49:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to get TOTAL of a Ranked Column</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-TOTAL-of-a-Ranked-Column/m-p/101613#M756731</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny, this works although there might be alternate ways.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Question: If I need to the Total for TX and FL and display in a separate text box - how can we do that?&lt;/P&gt;&lt;P&gt;For instance, TX = 15,000 &amp;amp; FL = 9,000. Requirement is to display this as "Other" - 24,000. So I was thinking to use a text box for the sum.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Sep 2018 18:02:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-TOTAL-of-a-Ranked-Column/m-p/101613#M756731</guid>
      <dc:creator>newqlik2017</dc:creator>
      <dc:date>2018-09-06T18:02:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to get TOTAL of a Ranked Column</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-TOTAL-of-a-Ranked-Column/m-p/101614#M756732</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For Rank 1&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Max(Aggr(Sum(TOTAL &amp;lt;STATE&amp;gt; {&amp;lt; DATE = {'201806'}&amp;gt;} If(Aggr(Rank(Sum({&amp;lt; DATE = {'201806'}&amp;gt;} AMOUNT)), UNIT, STATE) = 1, AMOUNT)), UNIT, STATE))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Rank 2&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Max(Aggr(Sum(TOTAL &amp;lt;STATE&amp;gt; {&amp;lt; DATE = {'201806'}&amp;gt;} If(Aggr(Rank(Sum({&amp;lt; DATE = {'201806'}&amp;gt;} AMOUNT)), UNIT, STATE) = 2, AMOUNT)), UNIT, STATE))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Sep 2018 18:06:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-TOTAL-of-a-Ranked-Column/m-p/101614#M756732</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-09-06T18:06:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to get TOTAL of a Ranked Column</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-TOTAL-of-a-Ranked-Column/m-p/101615#M756733</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ahh, got it. You are awesome. Thank you very much!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Sep 2018 18:17:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-TOTAL-of-a-Ranked-Column/m-p/101615#M756733</guid>
      <dc:creator>newqlik2017</dc:creator>
      <dc:date>2018-09-06T18:17:28Z</dc:date>
    </item>
  </channel>
</rss>

