<?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: Need help with ranking in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Need-help-with-ranking/m-p/1286656#M26977</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Petter,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As I understand, your suggestion is manually assosiate Biz with numeric value - this is not an option for me, as in the real example I have hundreds of deals and busensses.&lt;/P&gt;&lt;P&gt;W/o assosiation I have the following ranking for Biz (please see below) what is incorrect since the right rank for biz: First A (total actual =18), second B (15) and third C (11). So, I need that in the column 'Rabk Biz' there will be something like this (in the considered example):&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;C 3&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt; C 3&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;A 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;A 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;B 2&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/148680_Capture.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 08 Jan 2017 07:50:52 GMT</pubDate>
    <dc:creator />
    <dc:date>2017-01-08T07:50:52Z</dc:date>
    <item>
      <title>Need help with ranking</title>
      <link>https://community.qlik.com/t5/App-Development/Need-help-with-ranking/m-p/1286651#M26972</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dears,&lt;/P&gt;&lt;P&gt;Could you please help me with rank functions.&lt;/P&gt;&lt;P&gt;I have the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 248px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD height="20" width="89"&gt;Biz&lt;/TD&gt;&lt;TD width="84"&gt;Deal&lt;/TD&gt;&lt;TD width="75"&gt;Value&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;A&lt;/TD&gt;&lt;TD&gt;Red&lt;/TD&gt;&lt;TD align="right"&gt;10&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;B&lt;/TD&gt;&lt;TD&gt;Blue&lt;/TD&gt;&lt;TD align="right"&gt;15&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;C&lt;/TD&gt;&lt;TD&gt;Small&lt;/TD&gt;&lt;TD align="right"&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;A&lt;/TD&gt;&lt;TD&gt;Flow&lt;/TD&gt;&lt;TD align="right"&gt;8&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;C&lt;/TD&gt;&lt;TD&gt;Small&lt;/TD&gt;&lt;TD align="right"&gt;6&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, I'd like to rank in separate column by Biz, By Deal, By Value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jan 2017 22:50:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Need-help-with-ranking/m-p/1286651#M26972</guid>
      <dc:creator />
      <dc:date>2017-01-06T22:50:03Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with ranking</title>
      <link>https://community.qlik.com/t5/App-Development/Need-help-with-ranking/m-p/1286652#M26973</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am not sure if this is what you had in mind?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="2017-01-07 01_39_02-_Qlik Community - 2017-01-06 - Ignore the current selection within aggr() functi.png" class="jive-image image-1" src="/legacyfs/online/148634_2017-01-07 01_39_02-_Qlik Community - 2017-01-06 - Ignore the current selection within aggr() functi.png" style="height: 169px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have associated both Biz and Deal with a numeric value so they can be ranked. Maybe you just want plain sorting and creating dual-values with the Dual()-function will enable various qualitative text strings to be sorted according to a ranking value. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For instance:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;QUALITY&lt;/P&gt;&lt;P&gt;Bad&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&lt;/P&gt;&lt;P&gt;Neutral&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;/P&gt;&lt;P&gt;Good&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&lt;/P&gt;&lt;P&gt;Better&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3&lt;/P&gt;&lt;P&gt;Best&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using a dual-function Dual( &amp;lt;text&amp;gt; , &amp;lt;value) will make this association and whenever the field values are sorted it will prefer to use the numeric part to determine sort order. If you don't have a dual-value but pure text it will be sorted by "natural sort order" (almost like alphabetical sort except for multi digit numbers).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 Jan 2017 00:47:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Need-help-with-ranking/m-p/1286652#M26973</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2017-01-07T00:47:05Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with ranking</title>
      <link>https://community.qlik.com/t5/App-Development/Need-help-with-ranking/m-p/1286653#M26974</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Petter, thank you for you answer.&lt;/P&gt;&lt;P&gt;I am not sure that this is exactly what I look for.&lt;/P&gt;&lt;P&gt;I found the key if I want to rank each possitions (as in the example below).&lt;/P&gt;&lt;P&gt;I created new dimension w/ the formula: aggr (rank([Actual]),[Actual]), but could not find the way how to rank by biz and deal (oppt in my below example).&lt;/P&gt;&lt;P&gt;In other words I want to have two more columns: where A has rank 1, B-2, C-3 and the second one where Oppt Calik has rank 1, TPO - 2, Small - 3 and &lt;SPAN style="font-size: 13.3333px;"&gt;Flow - 4.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;The problem I faced is that in 'Small' I always have '-'.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Thanks.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Alexander&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/148641_Capture.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 Jan 2017 10:17:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Need-help-with-ranking/m-p/1286653#M26974</guid>
      <dc:creator />
      <dc:date>2017-01-07T10:17:27Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with ranking</title>
      <link>https://community.qlik.com/t5/App-Development/Need-help-with-ranking/m-p/1286654#M26975</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Create a Straight table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dimension&lt;/P&gt;&lt;P&gt;Biz&lt;/P&gt;&lt;P&gt;Deal&lt;/P&gt;&lt;P&gt;Value&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression&lt;/P&gt;&lt;P&gt;Num(Rank(Total SUM(Value),4))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 Jan 2017 10:26:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Need-help-with-ranking/m-p/1286654#M26975</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2017-01-07T10:26:25Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with ranking</title>
      <link>https://community.qlik.com/t5/App-Development/Need-help-with-ranking/m-p/1286655#M26976</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't see why you need to use Agg() at all. That might be the cause of the problem you mention: in 'Small' I always have '-'. The reason is that Aggr() might return 0, 1 or multiple values. And if you get multiple values and you don't have an aggregation function that resolves them into one value to show in one row you will get the '-'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try to do as I suggested - just use the Rank() function alone without any Aggr(). You have to use TOTAL inside the Rank() if you have more than one dimension which you obviously have here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So have a close look at this screenshot an notice the expressions that appears as column headers here:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="2017-01-07 11_36_11-Qlik Sense Desktop.png" class="jive-image image-1" src="/legacyfs/online/148635_2017-01-07 11_36_11-Qlik Sense Desktop.png" style="height: 136px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the load script I have associated the Biz with numeric values 1, -1, -2, -3 as you mentioned.&lt;/P&gt;&lt;P&gt;Likewise I have associated Deal with number values also in a similar range.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="2017-01-07 12_36_02-Qlik Sense Desktop.png" class="jive-image image-2" src="/legacyfs/online/148636_2017-01-07 12_36_02-Qlik Sense Desktop.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 Jan 2017 11:36:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Need-help-with-ranking/m-p/1286655#M26976</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2017-01-07T11:36:59Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with ranking</title>
      <link>https://community.qlik.com/t5/App-Development/Need-help-with-ranking/m-p/1286656#M26977</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Petter,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As I understand, your suggestion is manually assosiate Biz with numeric value - this is not an option for me, as in the real example I have hundreds of deals and busensses.&lt;/P&gt;&lt;P&gt;W/o assosiation I have the following ranking for Biz (please see below) what is incorrect since the right rank for biz: First A (total actual =18), second B (15) and third C (11). So, I need that in the column 'Rabk Biz' there will be something like this (in the considered example):&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;C 3&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt; C 3&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;A 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;A 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;B 2&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/148680_Capture.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 08 Jan 2017 07:50:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Need-help-with-ranking/m-p/1286656#M26977</guid>
      <dc:creator />
      <dc:date>2017-01-08T07:50:52Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with ranking</title>
      <link>https://community.qlik.com/t5/App-Development/Need-help-with-ranking/m-p/1286657#M26978</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for reply, but this works in the same way as 'Rank (total [values]) and gives ranking for values, but now I am looking for ranking on Biz and Oppt/Deal level.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 08 Jan 2017 07:52:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Need-help-with-ranking/m-p/1286657#M26978</guid>
      <dc:creator />
      <dc:date>2017-01-08T07:52:45Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with ranking</title>
      <link>https://community.qlik.com/t5/App-Development/Need-help-with-ranking/m-p/1286658#M26979</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't follow you completely - is there buisnesses called A, B, C and so forth? To me this seems like a demo data set - not something real. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gettting a sequential numeric value out of the english alphabet from a-z is very straightforward as they occupy the code values from 65 to 90 for uppercase and lettes:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Ord('A') = 65&amp;nbsp;&amp;nbsp; Ord('Z') = 90&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So then it is a matter of just using the Ord()-function. When it comes to Oppt/Deal you probably have to have some kind of mapping table between text and ranking values. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 08 Jan 2017 09:10:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Need-help-with-ranking/m-p/1286658#M26979</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2017-01-08T09:10:20Z</dc:date>
    </item>
  </channel>
</rss>

