<?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 Rank function and Aggr in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Rank-function-and-Aggr/m-p/1606327#M737234</link>
    <description>&lt;P&gt;Hello qlikers, I'm new to qlikview.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a sample data which has four columns No, item1, item2 and item3.&lt;/P&gt;&lt;P&gt;I made a pivot table on my QVW to count No and get the rank of&amp;nbsp;item1&amp;amp;2 in this table.&lt;/P&gt;&lt;P&gt;Regarding the&amp;nbsp;Rank function and pivot table, I have a few questions and now I cannot get the result as I want.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="キャプチャ.PNG" style="width: 586px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/16076i4EBB4BF65F11C733/image-size/large?v=v2&amp;amp;px=999" role="button" title="キャプチャ.PNG" alt="キャプチャ.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. When I record the QVW after sorting source data(No; ascending), the rank of pivot tale is changed.&lt;/P&gt;&lt;P&gt;Is the rank function affected by the sorting of source data as its specification?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. &amp;nbsp;When I switch the dimension of the pivot table, the rank of pivot table&amp;nbsp;is changed.&lt;/P&gt;&lt;P&gt;Is the order of dimension effecting to the result of rank function?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;3. I'm using aggr and rank function to get the rank of item1&amp;amp;2 as follows.&lt;/P&gt;&lt;P&gt;&lt;FONT face="terminal,monaco"&gt;=&lt;FONT color="#0000ff"&gt;Aggr&lt;/FONT&gt;(&lt;FONT color="#0000ff"&gt;Rank&lt;/FONT&gt;(&lt;FONT color="#0000ff"&gt;Count&lt;/FONT&gt;(&lt;FONT color="#0000ff"&gt;distinct&lt;/FONT&gt; &lt;FONT color="#800000"&gt;No&lt;/FONT&gt;)),(&lt;FONT color="#800000"&gt;item1&lt;/FONT&gt;),(&lt;FONT color="#800000"&gt;item2&lt;/FONT&gt;))&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;In case&amp;nbsp;to replace the setting order of &amp;nbsp;(item1) and (item2), the rank result on the pivot table is changed.&lt;/P&gt;&lt;P&gt;For aggr expression setting multiple dimensions, is the setting order&amp;nbsp;chenges the result?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your support.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 02:54:21 GMT</pubDate>
    <dc:creator>Yuhka</dc:creator>
    <dc:date>2024-11-16T02:54:21Z</dc:date>
    <item>
      <title>Rank function and Aggr</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-function-and-Aggr/m-p/1606327#M737234</link>
      <description>&lt;P&gt;Hello qlikers, I'm new to qlikview.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a sample data which has four columns No, item1, item2 and item3.&lt;/P&gt;&lt;P&gt;I made a pivot table on my QVW to count No and get the rank of&amp;nbsp;item1&amp;amp;2 in this table.&lt;/P&gt;&lt;P&gt;Regarding the&amp;nbsp;Rank function and pivot table, I have a few questions and now I cannot get the result as I want.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="キャプチャ.PNG" style="width: 586px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/16076i4EBB4BF65F11C733/image-size/large?v=v2&amp;amp;px=999" role="button" title="キャプチャ.PNG" alt="キャプチャ.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. When I record the QVW after sorting source data(No; ascending), the rank of pivot tale is changed.&lt;/P&gt;&lt;P&gt;Is the rank function affected by the sorting of source data as its specification?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. &amp;nbsp;When I switch the dimension of the pivot table, the rank of pivot table&amp;nbsp;is changed.&lt;/P&gt;&lt;P&gt;Is the order of dimension effecting to the result of rank function?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;3. I'm using aggr and rank function to get the rank of item1&amp;amp;2 as follows.&lt;/P&gt;&lt;P&gt;&lt;FONT face="terminal,monaco"&gt;=&lt;FONT color="#0000ff"&gt;Aggr&lt;/FONT&gt;(&lt;FONT color="#0000ff"&gt;Rank&lt;/FONT&gt;(&lt;FONT color="#0000ff"&gt;Count&lt;/FONT&gt;(&lt;FONT color="#0000ff"&gt;distinct&lt;/FONT&gt; &lt;FONT color="#800000"&gt;No&lt;/FONT&gt;)),(&lt;FONT color="#800000"&gt;item1&lt;/FONT&gt;),(&lt;FONT color="#800000"&gt;item2&lt;/FONT&gt;))&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;In case&amp;nbsp;to replace the setting order of &amp;nbsp;(item1) and (item2), the rank result on the pivot table is changed.&lt;/P&gt;&lt;P&gt;For aggr expression setting multiple dimensions, is the setting order&amp;nbsp;chenges the result?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your support.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 02:54:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-function-and-Aggr/m-p/1606327#M737234</guid>
      <dc:creator>Yuhka</dc:creator>
      <dc:date>2024-11-16T02:54:21Z</dc:date>
    </item>
    <item>
      <title>Re: Rank function and Aggr</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-function-and-Aggr/m-p/1614292#M737235</link>
      <description>&lt;P&gt;Yuhka, long shot here I think, but I wanted to toss it out to see if it might possibly help, unfortunately I am not much of a developer, but my post will kick things back up too, so someone else may see things now too and leave other comments...&lt;/P&gt;
&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/qlikview/April2019/Subsystems/Client/Content/QV_QlikView/ChartFunctions/RankingFunctions/HRank.htm" target="_blank"&gt;https://help.qlik.com/en-US/qlikview/April2019/Subsystems/Client/Content/QV_QlikView/ChartFunctions/RankingFunctions/HRank.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Brett&lt;/P&gt;</description>
      <pubDate>Tue, 20 Aug 2019 12:49:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-function-and-Aggr/m-p/1614292#M737235</guid>
      <dc:creator>Brett_Bleess</dc:creator>
      <dc:date>2019-08-20T12:49:16Z</dc:date>
    </item>
    <item>
      <title>Re: Rank function and Aggr</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-function-and-Aggr/m-p/1614308#M737236</link>
      <description>&lt;P&gt;try this as second dimension:&lt;/P&gt;&lt;P&gt;=Aggr(Rank(Count(distinct [2_No])&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;,2&lt;/STRONG&gt;&lt;/FONT&gt;),[2_item1],[2_item2])&lt;/P&gt;</description>
      <pubDate>Tue, 20 Aug 2019 13:05:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-function-and-Aggr/m-p/1614308#M737236</guid>
      <dc:creator>Frank_Hartmann</dc:creator>
      <dc:date>2019-08-20T13:05:48Z</dc:date>
    </item>
  </channel>
</rss>

