<?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: HRank Problem in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/HRank-Problem/m-p/448639#M167430</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ah, I see. Sorry, I just assumed since hrank() is used comparatively less frequently than rank().&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Back to your question, that's not what function hrank() does. Hrank() is used in pivot table to rank when a dimension has been pivoted across the top. It ranks horizontally, but only within the same pivoted dimension. In your case, you will need to create the expression manually, using IF statements. For example: if(column(1)&amp;gt;column(3),1,2)&lt;/P&gt;&lt;P&gt;In your case, this will be more complex since you have multiple expressions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vlad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 18 Dec 2012 17:29:22 GMT</pubDate>
    <dc:creator>vgutkovsky</dc:creator>
    <dc:date>2012-12-18T17:29:22Z</dc:date>
    <item>
      <title>HRank Problem</title>
      <link>https://community.qlik.com/t5/QlikView/HRank-Problem/m-p/448636#M167427</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm using QlikView 10 and can't get the HRank expression to work.&amp;nbsp; I've attached a view of the column headings which shows the expressions I'm using.&amp;nbsp; I'm using a pivot table, but the only result that I get with the HRank expression is a dash.&amp;nbsp; What am I doing incorrectly?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Dec 2012 15:44:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/HRank-Problem/m-p/448636#M167427</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-12-18T15:44:35Z</dc:date>
    </item>
    <item>
      <title>Re: HRank Problem</title>
      <link>https://community.qlik.com/t5/QlikView/HRank-Problem/m-p/448637#M167428</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you sure you want hrank and not a regular rank() function? Try using rank(sum([6 Benefits]),4,1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vlad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Dec 2012 17:04:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/HRank-Problem/m-p/448637#M167428</guid>
      <dc:creator>vgutkovsky</dc:creator>
      <dc:date>2012-12-18T17:04:07Z</dc:date>
    </item>
    <item>
      <title>Re: HRank Problem</title>
      <link>https://community.qlik.com/t5/QlikView/HRank-Problem/m-p/448638#M167429</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, I do want to rank the rows (horizontal) versus the columns.&amp;nbsp; In my example, I'm expecting the rank to be 2 and then 1 per row.&amp;nbsp; (In reality, I have more columns to rank instead of just two.)&amp;nbsp; I can't understand why my expressions can rank vertically but not horizontally (all I get are null values).&amp;nbsp; Any other suggestions?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Dec 2012 17:13:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/HRank-Problem/m-p/448638#M167429</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-12-18T17:13:53Z</dc:date>
    </item>
    <item>
      <title>Re: HRank Problem</title>
      <link>https://community.qlik.com/t5/QlikView/HRank-Problem/m-p/448639#M167430</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ah, I see. Sorry, I just assumed since hrank() is used comparatively less frequently than rank().&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Back to your question, that's not what function hrank() does. Hrank() is used in pivot table to rank when a dimension has been pivoted across the top. It ranks horizontally, but only within the same pivoted dimension. In your case, you will need to create the expression manually, using IF statements. For example: if(column(1)&amp;gt;column(3),1,2)&lt;/P&gt;&lt;P&gt;In your case, this will be more complex since you have multiple expressions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vlad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Dec 2012 17:29:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/HRank-Problem/m-p/448639#M167430</guid>
      <dc:creator>vgutkovsky</dc:creator>
      <dc:date>2012-12-18T17:29:22Z</dc:date>
    </item>
    <item>
      <title>Re: HRank Problem</title>
      <link>https://community.qlik.com/t5/QlikView/HRank-Problem/m-p/448640#M167431</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Another option is something like the attached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vlad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Dec 2012 17:33:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/HRank-Problem/m-p/448640#M167431</guid>
      <dc:creator>vgutkovsky</dc:creator>
      <dc:date>2012-12-18T17:33:07Z</dc:date>
    </item>
    <item>
      <title>Re: HRank Problem</title>
      <link>https://community.qlik.com/t5/QlikView/HRank-Problem/m-p/448641#M167432</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Vlad, thanks so much for your response.&amp;nbsp; Unfortunately, I'm using the personal edition of QlikView so I cannot see your recent attachment.&amp;nbsp; Regardless, I appreciate your help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Dec 2012 17:38:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/HRank-Problem/m-p/448641#M167432</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-12-18T17:38:12Z</dc:date>
    </item>
    <item>
      <title>Re: HRank Problem</title>
      <link>https://community.qlik.com/t5/QlikView/HRank-Problem/m-p/448642#M167433</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Basically, the attachment has a calculated dimension something like this: valuelist('Expression 1','Expression 2') which was pivoted across the top. And 2 expressions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;Value&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;pick(match(valuelist('Expression 1','Expression 2'),'Expression 1','Expression 2'),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum(Exp1),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum(Exp2)&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;Rank&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;hrank(Value)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Dec 2012 17:55:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/HRank-Problem/m-p/448642#M167433</guid>
      <dc:creator>vgutkovsky</dc:creator>
      <dc:date>2012-12-18T17:55:48Z</dc:date>
    </item>
  </channel>
</rss>

