<?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: Bottom sum in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Bottom-sum/m-p/1086583#M361757</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;Can you provide a sample file&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 Feb 2016 11:36:38 GMT</pubDate>
    <dc:creator>MayilVahanan</dc:creator>
    <dc:date>2016-02-10T11:36:38Z</dc:date>
    <item>
      <title>Bottom sum</title>
      <link>https://community.qlik.com/t5/QlikView/Bottom-sum/m-p/1086580#M361754</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a little problem that I can't figure out the solution. I have a straight table like shown below:&lt;IMG alt="community_Question.jpg" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/114118_community_Question.jpg" style="max-width: 620px; height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;I have check the Max number option to 15 in the table, so the total of the Net Margin column (11.680,779,7) is not what I want to show in the title.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="max.PNG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/114122_max.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I want to do is to sum the first 15 values of the Net Margin column and put them into the title of the expression. Currently I have tried all these expressions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Bottom(sum({&amp;lt;TypeFact={'Sales'}&amp;gt;} P_Margin_net*$(vCurrencyRate)))&amp;nbsp; // this one give me the total of all rows in the Net Margin column&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum(aggr(if(rank(aggr(rangesum(sum({&amp;lt;TypeFact={'Sales'}&amp;gt;} P_Margin_net*$(vCurrencyRate))),Customer_number),4)&amp;lt;=15,&lt;/P&gt;&lt;P&gt;aggr(rangesum(sum({&amp;lt;TypeFact={'Sales'}&amp;gt;} P_Margin_net*$(vCurrencyRate))),Customer_name)),Customer_number))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope I was clear enough.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Andrés&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Feb 2016 08:33:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Bottom-sum/m-p/1086580#M361754</guid>
      <dc:creator>andrespa</dc:creator>
      <dc:date>2016-02-10T08:33:53Z</dc:date>
    </item>
    <item>
      <title>Re: Bottom sum</title>
      <link>https://community.qlik.com/t5/QlikView/Bottom-sum/m-p/1086581#M361755</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;Try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum(Aggr(If(Rank(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;sum({&amp;lt;TypeFact={'Sales'}&amp;gt;} P_Margin_net*$(vCurrencyRate)) &lt;/SPAN&gt;) &amp;lt;=15,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sum({&amp;lt;TypeFact={'Sales'}&amp;gt;} P_Margin_net*$(vCurrencyRate)) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;), &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Customer_number, &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Customer_name&lt;/SPAN&gt;&lt;/SPAN&gt;))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Feb 2016 11:06:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Bottom-sum/m-p/1086581#M361755</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2016-02-10T11:06:03Z</dc:date>
    </item>
    <item>
      <title>Re: Bottom sum</title>
      <link>https://community.qlik.com/t5/QlikView/Bottom-sum/m-p/1086582#M361756</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mayil, sorry it shows me the same result as before. Not what I lookinf for.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks anyway.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Feb 2016 11:35:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Bottom-sum/m-p/1086582#M361756</guid>
      <dc:creator>andrespa</dc:creator>
      <dc:date>2016-02-10T11:35:18Z</dc:date>
    </item>
    <item>
      <title>Re: Bottom sum</title>
      <link>https://community.qlik.com/t5/QlikView/Bottom-sum/m-p/1086583#M361757</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;Can you provide a sample file&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Feb 2016 11:36:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Bottom-sum/m-p/1086583#M361757</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2016-02-10T11:36:38Z</dc:date>
    </item>
    <item>
      <title>Re: Bottom sum</title>
      <link>https://community.qlik.com/t5/QlikView/Bottom-sum/m-p/1086584#M361758</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Try this one: &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;sum({&amp;lt;TypeFact={'Sales'}, Customer_number={"=rank(sum(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;{&amp;lt;TypeFact={'Sales'}&amp;gt;} P_Margin_net&lt;/SPAN&gt;))&amp;lt;=15"}&amp;gt;} P_Margin_net*$(vCurrencyRate))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 13 Feb 2016 15:17:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Bottom-sum/m-p/1086584#M361758</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2016-02-13T15:17:51Z</dc:date>
    </item>
    <item>
      <title>Re: Bottom sum</title>
      <link>https://community.qlik.com/t5/QlikView/Bottom-sum/m-p/1086585#M361759</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gysbert, that was close. It shows me the first 15 margin values, but what I want is the last 15. In the chart I'm able to do that by sorting descending by numeric value. But on the text object I can't do that. Any ideas of how to achieve that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Andrés&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Feb 2016 11:26:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Bottom-sum/m-p/1086585#M361759</guid>
      <dc:creator>andrespa</dc:creator>
      <dc:date>2016-02-15T11:26:41Z</dc:date>
    </item>
    <item>
      <title>Re: Bottom sum</title>
      <link>https://community.qlik.com/t5/QlikView/Bottom-sum/m-p/1086586#M361760</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think just flip the sign of the sum in gysbert's expression to get the last 15 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: 13px;"&gt;sum({&amp;lt;TypeFact={'Sales'}, Customer_number={"=rank(&lt;STRONG&gt;-sum&lt;/STRONG&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;{&amp;lt;TypeFact={'Sales'}&amp;gt;} P_Margin_net&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;))&amp;lt;=15"}&amp;gt;} P_Margin_net*$(vCurrencyRate))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Feb 2016 12:03:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Bottom-sum/m-p/1086586#M361760</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2016-02-15T12:03:50Z</dc:date>
    </item>
    <item>
      <title>Re: Bottom sum</title>
      <link>https://community.qlik.com/t5/QlikView/Bottom-sum/m-p/1086587#M361761</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It worked! Thanks a lot!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Feb 2016 12:21:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Bottom-sum/m-p/1086587#M361761</guid>
      <dc:creator>andrespa</dc:creator>
      <dc:date>2016-02-15T12:21:44Z</dc:date>
    </item>
  </channel>
</rss>

