<?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 Last 10 Items! in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Last-10-Items/m-p/221799#M588223</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please post an example with the problem, then. As should be obvious, flipping the sign will reverse the rankings. And unless there's a bug I'm not aware of, reversing the ranking by flipping the sign should not prevent positive values from showing.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 30 Sep 2010 17:19:11 GMT</pubDate>
    <dc:creator>johnw</dc:creator>
    <dc:date>2010-09-30T17:19:11Z</dc:date>
    <item>
      <title>Last 10 Items!</title>
      <link>https://community.qlik.com/t5/QlikView/Last-10-Items/m-p/221795#M588219</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;Using the below I used to find the Top 10 ranking items along with this FSName is also there in the dimension field which is used to display the FSName. In the expression field I used Sum(Value) to show the value of the Top 10 items.&lt;/P&gt;&lt;P&gt;Same thing I want to do for the Last 10 items. Don't know exactly what changes I have to do in the below script. Can some one please help me out to do the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;&lt;BR /&gt;=IF(&lt;BR /&gt;aggr(&lt;BR /&gt;rank(total&lt;BR /&gt;aggr( sum(Value),FSName)&lt;BR /&gt;,0,1)&lt;BR /&gt;,FSName)&lt;BR /&gt;&amp;lt;=10,&lt;BR /&gt;&lt;BR /&gt;aggr(&lt;BR /&gt;rank(total&lt;BR /&gt;aggr( sum(Value),FSName)&lt;BR /&gt;,0,1)&lt;BR /&gt;,&lt;BR /&gt;FSName))&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Sep 2010 09:45:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-10-Items/m-p/221795#M588219</guid>
      <dc:creator />
      <dc:date>2010-09-29T09:45:08Z</dc:date>
    </item>
    <item>
      <title>Last 10 Items!</title>
      <link>https://community.qlik.com/t5/QlikView/Last-10-Items/m-p/221796#M588220</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just change the sign: -sum(Value)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Sep 2010 02:21:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-10-Items/m-p/221796#M588220</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2010-09-30T02:21:28Z</dc:date>
    </item>
    <item>
      <title>Last 10 Items!</title>
      <link>https://community.qlik.com/t5/QlikView/Last-10-Items/m-p/221797#M588221</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi John,&lt;/P&gt;&lt;P&gt;I already tried with that. In that case it shows only the -ve value. It is not showing up the positive values. In my application sales value contain both +ve as well as -ve values.&lt;/P&gt;&lt;P&gt;Have attached the actual and expected result below.&lt;/P&gt;&lt;P&gt;Actual:&lt;/P&gt;&lt;P&gt;&lt;A href="http://community.qlik.com/cfs-file.ashx/__key/CommunityServer.Discussions.Components.Files/11/3122.untitled2.JPG"&gt;&lt;IMG alt="" border="0" src="http://community.qlik.com/resized-image.ashx/__size/550x0/__key/CommunityServer.Discussions.Components.Files/11/3122.untitled2.JPG" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expected:&lt;/P&gt;&lt;P&gt;&lt;A href="http://community.qlik.com/cfs-file.ashx/__key/CommunityServer.Discussions.Components.Files/11/6266.untitled1.JPG"&gt;&lt;IMG alt="" border="0" src="http://community.qlik.com/resized-image.ashx/__size/550x0/__key/CommunityServer.Discussions.Components.Files/11/6266.untitled1.JPG" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Sep 2010 04:53:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-10-Items/m-p/221797#M588221</guid>
      <dc:creator />
      <dc:date>2010-09-30T04:53:05Z</dc:date>
    </item>
    <item>
      <title>Last 10 Items!</title>
      <link>https://community.qlik.com/t5/QlikView/Last-10-Items/m-p/221798#M588222</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi John,&lt;/P&gt;&lt;P&gt;What is the use of -ve sign before Sum(Value). First of all I thought it sort the value from lowest to highest. Later when checked realized that it doesn't do that. So could you please for what purpose we are putting -ve sign before Sum(Value).&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Sep 2010 05:25:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-10-Items/m-p/221798#M588222</guid>
      <dc:creator />
      <dc:date>2010-09-30T05:25:57Z</dc:date>
    </item>
    <item>
      <title>Last 10 Items!</title>
      <link>https://community.qlik.com/t5/QlikView/Last-10-Items/m-p/221799#M588223</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please post an example with the problem, then. As should be obvious, flipping the sign will reverse the rankings. And unless there's a bug I'm not aware of, reversing the ranking by flipping the sign should not prevent positive values from showing.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Sep 2010 17:19:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-10-Items/m-p/221799#M588223</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2010-09-30T17:19:11Z</dc:date>
    </item>
    <item>
      <title>Last 10 Items!</title>
      <link>https://community.qlik.com/t5/QlikView/Last-10-Items/m-p/221800#M588224</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi John,&lt;/P&gt;&lt;P&gt;Thanks for explaining me the use of -ve sign before sum. By the way as requested I have attached the document for you to work with. Hope the issue will be understandable now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Oct 2010 05:50:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-10-Items/m-p/221800#M588224</guid>
      <dc:creator />
      <dc:date>2010-10-01T05:50:16Z</dc:date>
    </item>
    <item>
      <title>Last 10 Items!</title>
      <link>https://community.qlik.com/t5/QlikView/Last-10-Items/m-p/221801#M588225</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rikab&lt;/P&gt;&lt;P&gt;If you turn off the suppress zero value option in the Presentation tab of your Last 10 FS's and your Sales Value for Reference tables, you will see that there are a number of FSNames with value of zero. These all tie for 3rd place when ranking the bottom 10.&lt;/P&gt;&lt;P&gt;That explains why you only see two when zeroes are suppressed.&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Oct 2010 08:00:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-10-Items/m-p/221801#M588225</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2010-10-01T08:00:26Z</dc:date>
    </item>
  </channel>
</rss>

