<?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: rank() in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/rank/m-p/886263#M308994</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;since you have same name across MANUFACTURER_LDESC as lonad were you used dimension &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try below&amp;nbsp; that gives desired result &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Expression&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Sum({1&amp;lt;CATEGORY_LDESC=P({&amp;lt;CATEGORY_LDESC={'ACC'}&amp;gt;})&amp;gt;}sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use Dimension limits&amp;nbsp; show largest value 2 &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 01 Jun 2015 10:22:22 GMT</pubDate>
    <dc:creator>sunilkumarqv</dc:creator>
    <dc:date>2015-06-01T10:22:22Z</dc:date>
    <item>
      <title>rank()</title>
      <link>https://community.qlik.com/t5/QlikView/rank/m-p/886260#M308991</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi, i have script as follows&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tab1:&lt;/P&gt;&lt;P&gt;load * Inline [&lt;/P&gt;&lt;P&gt;MANUFACTURER_LDESC,CATEGORY_LDESC,sales&lt;/P&gt;&lt;P&gt;sonata,ACC,50000&lt;/P&gt;&lt;P&gt;lonad,CHEESE CAKE,100000&lt;/P&gt;&lt;P&gt;lonad,ACC,5000000&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in chart with manufacturer_ldesc as dimension and following as expression;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;=&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;SPAN style="color: #0000ff;"&gt;sum&lt;/SPAN&gt;({1&amp;lt;&lt;SPAN style="color: #800000;"&gt;MANUFACTURER_LDESC&lt;/SPAN&gt;={&lt;SPAN style="color: #800000;"&gt;"=rank(sum({1&amp;lt;CATEGORY_LDESC={'ACC'}&amp;gt;}sales),4)&amp;lt;=2"&lt;/SPAN&gt;}&amp;gt;}&lt;SPAN style="color: #800000;"&gt;sales&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt; then i got&amp;nbsp; 2 bars in a chart &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;1 is lonad with 5100000&amp;nbsp;&amp;nbsp; and other is &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;sonata with 50000&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;lonad must be 5000000 right as i filtered out category of 'ACC'. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;pls tell me y it is happening !&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;@jagan,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;@hic&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Jun 2015 09:59:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/rank/m-p/886260#M308991</guid>
      <dc:creator />
      <dc:date>2015-06-01T09:59:38Z</dc:date>
    </item>
    <item>
      <title>Re: rank()</title>
      <link>https://community.qlik.com/t5/QlikView/rank/m-p/886261#M308992</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You only filtered the rank:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0000ff;"&gt;sum&lt;/SPAN&gt;({1&amp;lt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #800000;"&gt;MANUFACTURER_LDESC&lt;/SPAN&gt;={&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #800000;"&gt;"=rank(sum({1&amp;lt;CATEGORY_LDESC={'ACC'}&amp;gt;}sales),4)&amp;lt;=2"&lt;/SPAN&gt;}, &lt;SPAN style="color: #800000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 16px;"&gt;CATEGORY_LDESC={'ACC'} &lt;/SPAN&gt;&amp;gt;}&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #800000;"&gt;sales&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Jun 2015 10:02:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/rank/m-p/886261#M308992</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-06-01T10:02:03Z</dc:date>
    </item>
    <item>
      <title>Re: rank()</title>
      <link>https://community.qlik.com/t5/QlikView/rank/m-p/886262#M308993</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Prudhvi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try like this&lt;/P&gt;&lt;P&gt;=sum({&amp;lt;MANUFACTURER_LDESC={"=rank(sum({1&amp;lt;CATEGORY_LDESC={'ACC'}&amp;gt;}sales),4)&amp;lt;=2"}&amp;gt;}sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your expression, &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0000ff;"&gt;sum&lt;/SPAN&gt;({&lt;STRONG style="text-decoration: underline;"&gt;&lt;EM&gt;1&amp;lt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #800000;"&gt;MANUFACTURER_LDESC&lt;/SPAN&gt;={&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #800000;"&gt;"=rank(sum({1&amp;lt;CATEGORY_LDESC={'ACC'}&amp;gt;}sales),4)&amp;lt;=2"&lt;/SPAN&gt;}&amp;gt;}&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #800000;"&gt;sales&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;1 restrict the selections&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Jun 2015 10:05:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/rank/m-p/886262#M308993</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2015-06-01T10:05:51Z</dc:date>
    </item>
    <item>
      <title>Re: rank()</title>
      <link>https://community.qlik.com/t5/QlikView/rank/m-p/886263#M308994</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;since you have same name across MANUFACTURER_LDESC as lonad were you used dimension &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try below&amp;nbsp; that gives desired result &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Expression&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Sum({1&amp;lt;CATEGORY_LDESC=P({&amp;lt;CATEGORY_LDESC={'ACC'}&amp;gt;})&amp;gt;}sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use Dimension limits&amp;nbsp; show largest value 2 &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Jun 2015 10:22:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/rank/m-p/886263#M308994</guid>
      <dc:creator>sunilkumarqv</dc:creator>
      <dc:date>2015-06-01T10:22:22Z</dc:date>
    </item>
    <item>
      <title>Re: rank()</title>
      <link>https://community.qlik.com/t5/QlikView/rank/m-p/886264#M308995</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if under acc category, there are other manufacturers, all those will b summed up as others this is againist requirement&lt;/P&gt;&lt;P&gt;Ex:&lt;/P&gt;&lt;P&gt;tab1:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;load&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; * &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Inline&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[&lt;BR /&gt;MANUFACTURER_LDESC,CATEGORY_LDESC,sales&lt;BR /&gt;sonata,ACC,50000&lt;BR /&gt;lonad,CHEESE CAKE,10&lt;BR /&gt;&lt;STRONG&gt;lonad,ACC,5000000&lt;/STRONG&gt;&lt;BR /&gt;lonafd,ACC,5000&lt;BR /&gt;]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;then &lt;/SPAN&gt;&lt;STRONG&gt;lonad,ACC,5000000 &lt;/STRONG&gt;will b shown in 1 bar n there will b &lt;STRONG&gt;others bar wth value 55000&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Jun 2015 12:36:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/rank/m-p/886264#M308995</guid>
      <dc:creator />
      <dc:date>2015-06-01T12:36:56Z</dc:date>
    </item>
  </channel>
</rss>

