<?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 function in expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Rank-function-in-expression/m-p/384498#M572336</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Whiteline,&lt;/P&gt;&lt;P&gt;Please refer to the original post. I have the same issue. ID has duplicate values, but I still need unique ranks as part of the dimension.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 15 Apr 2014 20:09:46 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-04-15T20:09:46Z</dc:date>
    <item>
      <title>Rank function in expression</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-function-in-expression/m-p/384490#M572327</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;Anybody know how I should change the Rank formula using to get right result for the same values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using the following as a dimension- Aggr(Rank(Sum(Value),1,1),ID) &lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="21369" class="jive-image" alt="t1.png" src="https://community.qlik.com/legacyfs/online/21369_t1.png" /&gt;&lt;/P&gt;&lt;P&gt;But I'm trying to get the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="21370" class="jive-image" alt="t2.png" src="https://community.qlik.com/legacyfs/online/21370_t2.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to gain above result?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Sep 2012 13:02:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-function-in-expression/m-p/384490#M572327</guid>
      <dc:creator />
      <dc:date>2012-09-05T13:02:03Z</dc:date>
    </item>
    <item>
      <title>Re: Rank function in expression</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-function-in-expression/m-p/384491#M572329</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've found this workaround:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use your rank expression (=Aggr(Rank(Sum(Value),1,1),ID)) as a Sort expresion for ID dimension.&lt;/P&gt;&lt;P&gt;Delete your calculated dimension.&lt;/P&gt;&lt;P&gt;Add expression =rowno() and lable it 'Rank'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Seems exactly as you want.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Sep 2012 18:47:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-function-in-expression/m-p/384491#M572329</guid>
      <dc:creator>whiteline</dc:creator>
      <dc:date>2012-09-05T18:47:04Z</dc:date>
    </item>
    <item>
      <title>Re: Rank function in expression</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-function-in-expression/m-p/384492#M572330</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for solution, but it is not working in my case.&lt;/P&gt;&lt;P&gt;I need show only top 30 client by revenue amount. There some problem with right ordering.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Sep 2012 11:55:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-function-in-expression/m-p/384492#M572330</guid>
      <dc:creator />
      <dc:date>2012-09-10T11:55:40Z</dc:date>
    </item>
    <item>
      <title>Re: Rank function in expression</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-function-in-expression/m-p/384493#M572331</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As I said use my expression for sort order:&lt;/P&gt;&lt;P&gt;=Aggr(Rank(Sum([Revenue (KSEK)]),1,1),Client)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and this as dimension instead of Client(to limit first 30):&lt;/P&gt;&lt;P&gt;=aggr(if(Rank(total Sum([Revenue (KSEK)]))&amp;lt;=30, Client), Client)&lt;/P&gt;&lt;P&gt;and check 'Suppress When Values Is Null'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Sep 2012 12:07:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-function-in-expression/m-p/384493#M572331</guid>
      <dc:creator>whiteline</dc:creator>
      <dc:date>2012-09-10T12:07:23Z</dc:date>
    </item>
    <item>
      <title>Re: Rank function in expression</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-function-in-expression/m-p/384494#M572332</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, it works. &lt;/P&gt;&lt;P&gt;But if I want to do the same with Chart can I use the same method?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Sep 2012 07:16:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-function-in-expression/m-p/384494#M572332</guid>
      <dc:creator />
      <dc:date>2012-09-11T07:16:11Z</dc:date>
    </item>
    <item>
      <title>Re: Rank function in expression</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-function-in-expression/m-p/384495#M572333</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, I think you can.&lt;/P&gt;&lt;P&gt;The menthod is just 'calculated dimension'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Sep 2012 07:18:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-function-in-expression/m-p/384495#M572333</guid>
      <dc:creator>whiteline</dc:creator>
      <dc:date>2012-09-11T07:18:18Z</dc:date>
    </item>
    <item>
      <title>Re: Rank function in expression</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-function-in-expression/m-p/384496#M572334</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need to keep the rank as a dimension. Actually, I need rank as a normalized value between 0 and 1.&lt;/P&gt;&lt;P&gt;How to achieve this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Apr 2014 00:43:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-function-in-expression/m-p/384496#M572334</guid>
      <dc:creator />
      <dc:date>2014-04-15T00:43:58Z</dc:date>
    </item>
    <item>
      <title>Re: Rank function in expression</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-function-in-expression/m-p/384497#M572335</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;=Aggr(Rank(Sum([Revenue (KSEK)]),1,1),Client)/Count(distinct Client)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=aggr(if(Rank(total Sum([Revenue (KSEK)]))&amp;lt;=30, Client), Client)/30&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Apr 2014 10:31:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-function-in-expression/m-p/384497#M572335</guid>
      <dc:creator>whiteline</dc:creator>
      <dc:date>2014-04-15T10:31:57Z</dc:date>
    </item>
    <item>
      <title>Re: Rank function in expression</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-function-in-expression/m-p/384498#M572336</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Whiteline,&lt;/P&gt;&lt;P&gt;Please refer to the original post. I have the same issue. ID has duplicate values, but I still need unique ranks as part of the dimension.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Apr 2014 20:09:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-function-in-expression/m-p/384498#M572336</guid>
      <dc:creator />
      <dc:date>2014-04-15T20:09:46Z</dc:date>
    </item>
    <item>
      <title>Re: Rank function in expression</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-function-in-expression/m-p/384499#M572337</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;And what is the problem with the expressions provided above ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Apr 2014 06:23:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-function-in-expression/m-p/384499#M572337</guid>
      <dc:creator>whiteline</dc:creator>
      <dc:date>2014-04-16T06:23:17Z</dc:date>
    </item>
    <item>
      <title>Re: Rank function in expression</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-function-in-expression/m-p/384500#M572338</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="348"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl67" height="20" width="75"&gt;Batch&lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none;" width="67"&gt;Sub Batch&lt;/TD&gt;&lt;TD class="xl68" style="border-left: medium none;" width="64"&gt;Value&lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none;" width="64"&gt;Rank&lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none;" width="78"&gt;Norm_Rank&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top: medium none;"&gt;A&lt;/TD&gt;&lt;TD class="xl65" style="border-left: medium none; border-top: medium none;"&gt;A_6&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-left: medium none; border-top: medium none;"&gt;0.30&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-left: medium none; border-top: medium none;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-left: medium none; border-top: medium none;"&gt;0.2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top: medium none;"&gt;A&lt;/TD&gt;&lt;TD class="xl65" style="border-left: medium none; border-top: medium none;"&gt;A_8&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-left: medium none; border-top: medium none;"&gt;0.30&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-left: medium none; border-top: medium none;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-left: medium none; border-top: medium none;"&gt;0.4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top: medium none;"&gt;A&lt;/TD&gt;&lt;TD class="xl65" style="border-left: medium none; border-top: medium none;"&gt;A_9&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-left: medium none; border-top: medium none;"&gt;0.79&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-left: medium none; border-top: medium none;"&gt;3&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-left: medium none; border-top: medium none;"&gt;0.6&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top: medium none;"&gt;A&lt;/TD&gt;&lt;TD class="xl65" style="border-left: medium none; border-top: medium none;"&gt;A_5&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-left: medium none; border-top: medium none;"&gt;0.86&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-left: medium none; border-top: medium none;"&gt;4&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-left: medium none; border-top: medium none;"&gt;0.8&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top: medium none;"&gt;A&lt;/TD&gt;&lt;TD class="xl65" style="border-left: medium none; border-top: medium none;"&gt;A_7&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-left: medium none; border-top: medium none;"&gt;0.92&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-left: medium none; border-top: medium none;"&gt;5&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-left: medium none; border-top: medium none;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top: medium none;"&gt;B&lt;/TD&gt;&lt;TD class="xl65" style="border-left: medium none; border-top: medium none;"&gt;B_5&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-left: medium none; border-top: medium none;"&gt;0.29&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-left: medium none; border-top: medium none;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-left: medium none; border-top: medium none;"&gt;0.2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top: medium none;"&gt;B&lt;/TD&gt;&lt;TD class="xl65" style="border-left: medium none; border-top: medium none;"&gt;B_1&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-left: medium none; border-top: medium none;"&gt;0.40&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-left: medium none; border-top: medium none;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-left: medium none; border-top: medium none;"&gt;0.4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top: medium none;"&gt;B&lt;/TD&gt;&lt;TD class="xl65" style="border-left: medium none; border-top: medium none;"&gt;B_2&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-left: medium none; border-top: medium none;"&gt;0.43&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-left: medium none; border-top: medium none;"&gt;3&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-left: medium none; border-top: medium none;"&gt;0.6&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top: medium none;"&gt;B&lt;/TD&gt;&lt;TD class="xl65" style="border-left: medium none; border-top: medium none;"&gt;B_4&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-left: medium none; border-top: medium none;"&gt;0.44&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-left: medium none; border-top: medium none;"&gt;4&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-left: medium none; border-top: medium none;"&gt;0.8&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top: medium none;"&gt;B&lt;/TD&gt;&lt;TD class="xl65" style="border-left: medium none; border-top: medium none;"&gt;B_3&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-left: medium none; border-top: medium none;"&gt;0.97&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-left: medium none; border-top: medium none;"&gt;5&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-left: medium none; border-top: medium none;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top: medium none;"&gt;C&lt;/TD&gt;&lt;TD class="xl65" style="border-left: medium none; border-top: medium none;"&gt;B_6&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-left: medium none; border-top: medium none;"&gt;0.25&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-left: medium none; border-top: medium none;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-left: medium none; border-top: medium none;"&gt;0.2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top: medium none;"&gt;C&lt;/TD&gt;&lt;TD class="xl65" style="border-left: medium none; border-top: medium none;"&gt;B_7&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-left: medium none; border-top: medium none;"&gt;0.30&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-left: medium none; border-top: medium none;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-left: medium none; border-top: medium none;"&gt;0.4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top: medium none;"&gt;C&lt;/TD&gt;&lt;TD class="xl65" style="border-left: medium none; border-top: medium none;"&gt;B_2&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-left: medium none; border-top: medium none;"&gt;0.79&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-left: medium none; border-top: medium none;"&gt;3&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-left: medium none; border-top: medium none;"&gt;0.6&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top: medium none;"&gt;C&lt;/TD&gt;&lt;TD class="xl65" style="border-left: medium none; border-top: medium none;"&gt;B_3&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-left: medium none; border-top: medium none;"&gt;0.84&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-left: medium none; border-top: medium none;"&gt;4&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-left: medium none; border-top: medium none;"&gt;0.8&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top: medium none;"&gt;C&lt;/TD&gt;&lt;TD class="xl65" style="border-left: medium none; border-top: medium none;"&gt;B_4&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-left: medium none; border-top: medium none;"&gt;0.97&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-left: medium none; border-top: medium none;"&gt;5&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-left: medium none; border-top: medium none;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;This is the table that I have. What I am trying to do is have a trellis by Batch and create Rank on the fly and use Norm_Rank as the dimension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=aggr(rank(sum(Value),1,1),Batch)&amp;nbsp; gives me duplicate values in Rank&lt;/P&gt;&lt;P&gt;=aggr(rank(sum(Value),1,1),[Sub Batch])&amp;nbsp; gives me rank of the total population (1 to 15)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you help me get the rank as shown in the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Apr 2014 16:42:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-function-in-expression/m-p/384500#M572338</guid>
      <dc:creator />
      <dc:date>2014-04-16T16:42:21Z</dc:date>
    </item>
    <item>
      <title>Re: Rank function in expression</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-function-in-expression/m-p/384501#M572339</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Guessing that Batch and Sub Batch are dimensions the expression should be rank(Sum (Value)).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Apr 2014 18:07:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-function-in-expression/m-p/384501#M572339</guid>
      <dc:creator>whiteline</dc:creator>
      <dc:date>2014-04-16T18:07:58Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Rank function in expression</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-function-in-expression/m-p/384502#M572340</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have attached the sample qvw. I was able to get the calculated dimension working using the below&lt;/P&gt;&lt;P&gt;=&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;aggr&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Rank&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Value&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),4),&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Batch&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Sub Batch]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;I have few other issues now&lt;/P&gt;&lt;P&gt;1) I want to show the avg of values as a line for each Batch separately.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Avg(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Total&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Batch&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Value&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&amp;nbsp;&amp;nbsp; -&lt;/SPAN&gt; This expression gives the same number as Value instead of gettting the average of all the values per Batch.&lt;/P&gt;&lt;P&gt;2) I want to show the (avg + std dev) of values as a line for each Batch&lt;BR /&gt; &lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;avg&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;total&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Batch&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Value&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)+&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;stdev&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;total&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Batch&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Value&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&amp;nbsp; - &lt;/SPAN&gt;&lt;/SPAN&gt;This expression gives a single number for all the values across the batches.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;I am stumped.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Apr 2014 19:51:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-function-in-expression/m-p/384502#M572340</guid>
      <dc:creator />
      <dc:date>2014-04-16T19:51:49Z</dc:date>
    </item>
    <item>
      <title>Re: Rank function in expression</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-function-in-expression/m-p/384503#M572341</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;aggr(nodistinct Avg(Value), Batch)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Apr 2014 20:29:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-function-in-expression/m-p/384503#M572341</guid>
      <dc:creator>whiteline</dc:creator>
      <dc:date>2014-04-16T20:29:07Z</dc:date>
    </item>
    <item>
      <title>Re: Rank function in expression</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-function-in-expression/m-p/384504#M572342</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Whiteline. That worked. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Apr 2014 18:48:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-function-in-expression/m-p/384504#M572342</guid>
      <dc:creator />
      <dc:date>2014-04-17T18:48:13Z</dc:date>
    </item>
    <item>
      <title>Re: Rank function in expression</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-function-in-expression/m-p/384505#M572343</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there! I tried this within my model, and it shows always from rank #2 and below, but #1 is never displayed. Any clue? I assumed because the nulls, but when apply nulls, they don't have the #1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 Sep 2014 11:58:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-function-in-expression/m-p/384505#M572343</guid>
      <dc:creator />
      <dc:date>2014-09-20T11:58:46Z</dc:date>
    </item>
    <item>
      <title>Re: Rank function in expression</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-function-in-expression/m-p/384506#M572344</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;I am new to qlikview. To use rank function do we need to use sum in rank function, can't we use rank function directly to get top 5 records&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jul 2015 07:20:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-function-in-expression/m-p/384506#M572344</guid>
      <dc:creator />
      <dc:date>2015-07-29T07:20:07Z</dc:date>
    </item>
    <item>
      <title>Re: Rank function in expression</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-function-in-expression/m-p/384507#M572345</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you - this helped a lot!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Aug 2015 12:42:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-function-in-expression/m-p/384507#M572345</guid>
      <dc:creator>jarno_loubser</dc:creator>
      <dc:date>2015-08-27T12:42:18Z</dc:date>
    </item>
  </channel>
</rss>

