<?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 Calculate with split ranks in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculate-with-split-ranks/m-p/1001252#M340354</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 have a pivot table with a column named "ranks" indicating ranks. Some ranks are split ranks (22-23, 3-4, etc.).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I add another formula x to the pivot, where x = [ranks] + 1, it turns out that the split ranks are not calculated correctly.&lt;/P&gt;&lt;P&gt;Instead of 23.5 (for 22-23) I get 23, and instead of 4.5 I get 4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What formula do I have to use to get the calculation correct?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks - Marcel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 30 Dec 2015 08:31:22 GMT</pubDate>
    <dc:creator>hugmarcel</dc:creator>
    <dc:date>2015-12-30T08:31:22Z</dc:date>
    <item>
      <title>Calculate with split ranks</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-with-split-ranks/m-p/1001252#M340354</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 have a pivot table with a column named "ranks" indicating ranks. Some ranks are split ranks (22-23, 3-4, etc.).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I add another formula x to the pivot, where x = [ranks] + 1, it turns out that the split ranks are not calculated correctly.&lt;/P&gt;&lt;P&gt;Instead of 23.5 (for 22-23) I get 23, and instead of 4.5 I get 4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What formula do I have to use to get the calculation correct?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks - Marcel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Dec 2015 08:31:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-with-split-ranks/m-p/1001252#M340354</guid>
      <dc:creator>hugmarcel</dc:creator>
      <dc:date>2015-12-30T08:31:22Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate with split ranks</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-with-split-ranks/m-p/1001253#M340355</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rank could vary with change in number of rows in your chart. May be the additional column is causing some additional rows. Could you are a representative sample qvw?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Dec 2015 08:37:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-with-split-ranks/m-p/1001253#M340355</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2015-12-30T08:37:54Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate with split ranks</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-with-split-ranks/m-p/1001254#M340356</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;no, the additional column is not causing additional rows. I try to create a qwv.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thx - Marcel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Dec 2015 08:41:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-with-split-ranks/m-p/1001254#M340356</guid>
      <dc:creator>hugmarcel</dc:creator>
      <dc:date>2015-12-30T08:41:19Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate with split ranks</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-with-split-ranks/m-p/1001255#M340357</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have now attached the sample. see there&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Dec 2015 08:50:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-with-split-ranks/m-p/1001255#M340357</guid>
      <dc:creator>hugmarcel</dc:creator>
      <dc:date>2015-12-30T08:50:22Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate with split ranks</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-with-split-ranks/m-p/1001256#M340358</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Looks like I found the solution myself.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead of "&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;figure&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;figure&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),2)" must be used in the 2nd column.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;egards - Marcel&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Dec 2015 09:07:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-with-split-ranks/m-p/1001256#M340358</guid>
      <dc:creator>hugmarcel</dc:creator>
      <dc:date>2015-12-30T09:07:01Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate with split ranks</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-with-split-ranks/m-p/1001257#M340359</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI&lt;/P&gt;&lt;P&gt;Mode parameter in Rank function helps you on this issue&lt;/P&gt;&lt;P&gt;&lt;EM&gt; try some thing like below:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;=rank(sum(figure),4)&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;From help:&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;TABLE cellspacing="0" class="TableStyle-LeftBold" style="margin-right: auto;"&gt;&lt;TBODY&gt;&lt;TR class="Body-Body1"&gt;&lt;TD class="BodyE-Column1-Body1"&gt;0 &lt;SPAN class="normal"&gt;(default)&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="BodyD-Column2-Body1"&gt;If all ranks within the sharing group fall on the low side of the middle value of the entire ranking, all rows get the lowest rank within the sharing group. &lt;BR /&gt;If all ranks within the sharing group fall on the high side of the middle value of the entire ranking, all rows get the highest rank within the sharing group. &lt;BR /&gt;If ranks within the sharing group span over the middle value of the entire ranking, all rows get the value corresponding to the average of the top and bottom ranking in the entire column segment. &lt;/TD&gt;&lt;/TR&gt;&lt;TR class="Body-Body1"&gt;&lt;TD class="BodyE-Column1-Body1"&gt;1&lt;/TD&gt;&lt;TD class="BodyD-Column2-Body1"&gt;Lowest rank on all rows. &lt;/TD&gt;&lt;/TR&gt;&lt;TR class="Body-Body1"&gt;&lt;TD class="BodyE-Column1-Body1"&gt;2&lt;/TD&gt;&lt;TD class="BodyD-Column2-Body1"&gt;Average rank on all rows. &lt;/TD&gt;&lt;/TR&gt;&lt;TR class="Body-Body1"&gt;&lt;TD class="BodyE-Column1-Body1"&gt;3&lt;/TD&gt;&lt;TD class="BodyD-Column2-Body1"&gt;Highest rank on all rows. &lt;/TD&gt;&lt;/TR&gt;&lt;TR class="Body-Body1"&gt;&lt;TD class="BodyE-Column1-Body1"&gt;4&lt;/TD&gt;&lt;TD class="BodyD-Column2-Body1"&gt;Lowest rank on first row, then incremented by one for each row. &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; =&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Dec 2015 09:09:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-with-split-ranks/m-p/1001257#M340359</guid>
      <dc:creator>sasikanth</dc:creator>
      <dc:date>2015-12-30T09:09:43Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate with split ranks</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-with-split-ranks/m-p/1001258#M340360</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;Check this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="110279" alt="ranked_figure.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/110279_ranked_figure.PNG" style="height: 290px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;You can use the Expression Like this for varying fields ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14514692295462989 jive_text_macro" jivemacro_uid="_14514692295462989" modifiedtitle="true"&gt;
&lt;P style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;=If(rank(Aggr(Only(figure),dim))=Num#('###,#')-Num#('###,#'),rank(Aggr(Only(figure),dim))+1.5,&lt;/STRONG&gt;&lt;/P&gt;
&lt;P style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;rank(Aggr(Only(figure),dim))+1)&lt;/STRONG&gt;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check Attached Rank Splitting app ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PFA&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Hirish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Dec 2015 09:33:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-with-split-ranks/m-p/1001258#M340360</guid>
      <dc:creator>HirisH_V7</dc:creator>
      <dc:date>2015-12-30T09:33:23Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate with split ranks</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-with-split-ranks/m-p/1001259#M340361</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marcel ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please Explain that why' 2 'and because its 2 split(4-5) if it is (4-6) means or what ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Hirish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Dec 2015 09:40:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-with-split-ranks/m-p/1001259#M340361</guid>
      <dc:creator>HirisH_V7</dc:creator>
      <dc:date>2015-12-30T09:40:11Z</dc:date>
    </item>
  </channel>
</rss>

