<?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 HRank returns NULL in Pivot table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/HRank-returns-NULL-in-Pivot-table/m-p/1061644#M355298</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a dataset (given below). Here I have Zone, State and Type are dimensions of pivot table (in the same order as I mentioned).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can easily find two metrics: Total Employed, %age of Total employed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I struggle to find the third where I need to RANK of&amp;nbsp; %age of Total Employed. I am using an expression: &lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;HRank&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;Employed&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;Total_Persons&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)) *100) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;////Attached is the screenshot of what I get.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//// dataset&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG&gt;load&lt;/STRONG&gt;&lt;/SPAN&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; Zone, State, Type, Employed, Total_Persons&lt;BR /&gt; East, A, Rural, 112, 156&lt;BR /&gt; East, A, Urban, 87, 123&lt;BR /&gt; East, B, Rural, 67, 101&lt;BR /&gt; East, B, Urban, 89, 105&lt;BR /&gt; East, C, Rural, 145, 189&lt;BR /&gt; East, C, Urban, 76, 123&lt;BR /&gt; East, D, Rural, 331, 360&lt;BR /&gt; East, D, Urban, 259, 290&lt;BR /&gt; West, K, Rural, 189, 300&lt;BR /&gt; West, K, Urban, 213, 564&lt;BR /&gt; West, L, Rural, 435, 789&lt;BR /&gt; West, L, Urban, 312, 461&lt;BR /&gt; West, M, Rural, 431, 552&lt;BR /&gt; West, M, Urban, 202, 401&lt;BR /&gt; West, N, Rural, 601, 874&lt;BR /&gt; West, N, Urban, 671, 721&lt;BR /&gt; North, U, Rural, 202, 256&lt;BR /&gt; North, U, Urban, 907, 982&lt;BR /&gt; North, V, Rural,167, 301&lt;BR /&gt; North, V, Urban,289, 305&lt;BR /&gt; North, W, Rural, 645, 789&lt;BR /&gt; North, W, Urban,476, 623&lt;BR /&gt; South, P, Rural, 389, 400&lt;BR /&gt; South, P, Urban, 263, 364&lt;BR /&gt; South, R, Rural, 495, 789&lt;BR /&gt; South, R, Urban, 612, 761&lt;BR /&gt; South, S, Rural, 631, 752&lt;BR /&gt; South, S, Urban, 402, 501&lt;BR /&gt; ]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;; &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>Sun, 13 Mar 2016 17:40:46 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-03-13T17:40:46Z</dc:date>
    <item>
      <title>HRank returns NULL in Pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/HRank-returns-NULL-in-Pivot-table/m-p/1061644#M355298</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a dataset (given below). Here I have Zone, State and Type are dimensions of pivot table (in the same order as I mentioned).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can easily find two metrics: Total Employed, %age of Total employed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I struggle to find the third where I need to RANK of&amp;nbsp; %age of Total Employed. I am using an expression: &lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;HRank&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;Employed&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;Total_Persons&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)) *100) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;////Attached is the screenshot of what I get.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//// dataset&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG&gt;load&lt;/STRONG&gt;&lt;/SPAN&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; Zone, State, Type, Employed, Total_Persons&lt;BR /&gt; East, A, Rural, 112, 156&lt;BR /&gt; East, A, Urban, 87, 123&lt;BR /&gt; East, B, Rural, 67, 101&lt;BR /&gt; East, B, Urban, 89, 105&lt;BR /&gt; East, C, Rural, 145, 189&lt;BR /&gt; East, C, Urban, 76, 123&lt;BR /&gt; East, D, Rural, 331, 360&lt;BR /&gt; East, D, Urban, 259, 290&lt;BR /&gt; West, K, Rural, 189, 300&lt;BR /&gt; West, K, Urban, 213, 564&lt;BR /&gt; West, L, Rural, 435, 789&lt;BR /&gt; West, L, Urban, 312, 461&lt;BR /&gt; West, M, Rural, 431, 552&lt;BR /&gt; West, M, Urban, 202, 401&lt;BR /&gt; West, N, Rural, 601, 874&lt;BR /&gt; West, N, Urban, 671, 721&lt;BR /&gt; North, U, Rural, 202, 256&lt;BR /&gt; North, U, Urban, 907, 982&lt;BR /&gt; North, V, Rural,167, 301&lt;BR /&gt; North, V, Urban,289, 305&lt;BR /&gt; North, W, Rural, 645, 789&lt;BR /&gt; North, W, Urban,476, 623&lt;BR /&gt; South, P, Rural, 389, 400&lt;BR /&gt; South, P, Urban, 263, 364&lt;BR /&gt; South, R, Rural, 495, 789&lt;BR /&gt; South, R, Urban, 612, 761&lt;BR /&gt; South, S, Rural, 631, 752&lt;BR /&gt; South, S, Urban, 402, 501&lt;BR /&gt; ]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;; &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>Sun, 13 Mar 2016 17:40:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/HRank-returns-NULL-in-Pivot-table/m-p/1061644#M355298</guid>
      <dc:creator />
      <dc:date>2016-03-13T17:40:46Z</dc:date>
    </item>
    <item>
      <title>Re: HRank returns NULL in Pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/HRank-returns-NULL-in-Pivot-table/m-p/1061645#M355299</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It seems you haven't got any pivoted dimensions (pivoted to the top), so you would need to use vrank() or rank() functions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 13 Mar 2016 17:42:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/HRank-returns-NULL-in-Pivot-table/m-p/1061645#M355299</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-03-13T17:42:15Z</dc:date>
    </item>
    <item>
      <title>Re: HRank returns NULL in Pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/HRank-returns-NULL-in-Pivot-table/m-p/1061646#M355300</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your comment...but I am unable to understand where I am doing wrong. I mean I have 'Zone' as pivoted dimension here. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 13 Mar 2016 18:32:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/HRank-returns-NULL-in-Pivot-table/m-p/1061646#M355300</guid>
      <dc:creator />
      <dc:date>2016-03-13T18:32:44Z</dc:date>
    </item>
    <item>
      <title>Re: HRank returns NULL in Pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/HRank-returns-NULL-in-Pivot-table/m-p/1061647#M355301</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;From your image, it doesn't look as Zone is pivoted to the top, it's still a vertical dimension,&lt;/P&gt;&lt;P&gt;If you tried pivoting to the top and you don't get a result, there might be a different issue, maybe with using multiple dimensions and partial sums.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you upload a small sample QVW?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 13 Mar 2016 18:46:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/HRank-returns-NULL-in-Pivot-table/m-p/1061647#M355301</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-03-13T18:46:26Z</dc:date>
    </item>
    <item>
      <title>Re: HRank returns NULL in Pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/HRank-returns-NULL-in-Pivot-table/m-p/1061648#M355302</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;as &lt;A href="https://community.qlik.com/qlik-users/15823"&gt;swuehl&lt;/A&gt; said your formula is working when one of the dimension is pivoted horizontal, just tested it.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/117843_Capture.JPG" style="height: 202px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 13 Mar 2016 18:53:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/HRank-returns-NULL-in-Pivot-table/m-p/1061648#M355302</guid>
      <dc:creator>Digvijay_Singh</dc:creator>
      <dc:date>2016-03-13T18:53:20Z</dc:date>
    </item>
    <item>
      <title>Re: HRank returns NULL in Pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/HRank-returns-NULL-in-Pivot-table/m-p/1061649#M355303</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here I attached a sample QVW. Could you please take a look what exactly should I do to get ranking against Zone (I mean North Zone should have rank 1 West to have 4)?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 13 Mar 2016 18:58:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/HRank-returns-NULL-in-Pivot-table/m-p/1061649#M355303</guid>
      <dc:creator />
      <dc:date>2016-03-13T18:58:44Z</dc:date>
    </item>
    <item>
      <title>Re: HRank returns NULL in Pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/HRank-returns-NULL-in-Pivot-table/m-p/1061650#M355304</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just drag Zone to the top (and maybe add partial sums), see attached&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 13 Mar 2016 19:06:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/HRank-returns-NULL-in-Pivot-table/m-p/1061650#M355304</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-03-13T19:06:51Z</dc:date>
    </item>
    <item>
      <title>Re: HRank returns NULL in Pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/HRank-returns-NULL-in-Pivot-table/m-p/1061651#M355305</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Or leave the chart layout as is and use&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=&lt;STRONG&gt;Rank&lt;/STRONG&gt;((sum(Employed)/Sum(Total_Persons)) *100)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 13 Mar 2016 19:08:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/HRank-returns-NULL-in-Pivot-table/m-p/1061651#M355305</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-03-13T19:08:37Z</dc:date>
    </item>
    <item>
      <title>Re: HRank returns NULL in Pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/HRank-returns-NULL-in-Pivot-table/m-p/1061652#M355306</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Mar 2016 06:45:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/HRank-returns-NULL-in-Pivot-table/m-p/1061652#M355306</guid>
      <dc:creator />
      <dc:date>2016-03-14T06:45:16Z</dc:date>
    </item>
  </channel>
</rss>

