<?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 Logic &amp;amp; Dimension Limits both are giving wrong result for similar Ranks in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Rank-Logic-amp-Dimension-Limits-both-are-giving-wrong-result-for/m-p/1763470#M591379</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;First, I tried with Dimension Limits but it wqas giving wrong result for similar Ranks. I want to see all Rank1 Names but it was giving only 1.&lt;/P&gt;&lt;P&gt;Then I tried Rank Function.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need all the Rank 1 Names in my Chart but using below expression&lt;/P&gt;&lt;P&gt;in calculated dimension is giving me only 1 result which is wrong.&lt;/P&gt;&lt;P&gt;=aggr(if(Rank(Sum(Value),4,1)&amp;lt;=1,Name),Name)&lt;/P&gt;&lt;P&gt;Here is the sample snapshot:'&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Rank - Community.png" style="width: 666px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/44571i0D11E5C35EDCD745/image-size/large?v=v2&amp;amp;px=999" role="button" title="Rank - Community.png" alt="Rank - Community.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Need help in understanding this Rank &amp;amp; fixing this issue.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Eric&lt;/P&gt;</description>
    <pubDate>Fri, 15 Nov 2024 23:35:05 GMT</pubDate>
    <dc:creator>erric3210</dc:creator>
    <dc:date>2024-11-15T23:35:05Z</dc:date>
    <item>
      <title>Rank Logic &amp; Dimension Limits both are giving wrong result for similar Ranks</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-Logic-amp-Dimension-Limits-both-are-giving-wrong-result-for/m-p/1763470#M591379</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;First, I tried with Dimension Limits but it wqas giving wrong result for similar Ranks. I want to see all Rank1 Names but it was giving only 1.&lt;/P&gt;&lt;P&gt;Then I tried Rank Function.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need all the Rank 1 Names in my Chart but using below expression&lt;/P&gt;&lt;P&gt;in calculated dimension is giving me only 1 result which is wrong.&lt;/P&gt;&lt;P&gt;=aggr(if(Rank(Sum(Value),4,1)&amp;lt;=1,Name),Name)&lt;/P&gt;&lt;P&gt;Here is the sample snapshot:'&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Rank - Community.png" style="width: 666px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/44571i0D11E5C35EDCD745/image-size/large?v=v2&amp;amp;px=999" role="button" title="Rank - Community.png" alt="Rank - Community.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Need help in understanding this Rank &amp;amp; fixing this issue.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Eric&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 23:35:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-Logic-amp-Dimension-Limits-both-are-giving-wrong-result-for/m-p/1763470#M591379</guid>
      <dc:creator>erric3210</dc:creator>
      <dc:date>2024-11-15T23:35:05Z</dc:date>
    </item>
    <item>
      <title>Re: Rank Logic &amp; Dimension Limits both are giving wrong result for similar Ranks</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-Logic-amp-Dimension-Limits-both-are-giving-wrong-result-for/m-p/1763471#M591380</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/14069"&gt;@erric3210&lt;/a&gt;&amp;nbsp; try below&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;=num(rank(total sum(Sales),1))&lt;/LI-CODE&gt;</description>
      <pubDate>Sat, 21 Nov 2020 21:52:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-Logic-amp-Dimension-Limits-both-are-giving-wrong-result-for/m-p/1763471#M591380</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2020-11-21T21:52:18Z</dc:date>
    </item>
    <item>
      <title>Re: Rank Logic &amp; Dimension Limits both are giving wrong result for similar Ranks</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-Logic-amp-Dimension-Limits-both-are-giving-wrong-result-for/m-p/1763472#M591381</link>
      <description>&lt;P&gt;Hi Kush,&lt;/P&gt;&lt;P&gt;Thanks for the solution. It worked.&lt;/P&gt;&lt;P&gt;Can you please explain me what is the role of TOTAL here.&lt;/P&gt;&lt;P&gt;I've tried with your expression, without Total also it is working&amp;nbsp;&lt;/P&gt;&lt;P&gt;and if possible can you please make me understand that why below expression was not working&lt;/P&gt;&lt;P&gt;=aggr(if(Rank(Sum(Value),4,1)&amp;lt;=1,Name),Name)&lt;/P&gt;&lt;DIV class="AddMessageTags lia-message-tags lia-component-message-view-widget-tags"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Eric&lt;/P&gt;</description>
      <pubDate>Sat, 21 Nov 2020 22:10:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-Logic-amp-Dimension-Limits-both-are-giving-wrong-result-for/m-p/1763472#M591381</guid>
      <dc:creator>erric3210</dc:creator>
      <dc:date>2020-11-21T22:10:09Z</dc:date>
    </item>
    <item>
      <title>Re: Rank Logic &amp; Dimension Limits both are giving wrong result for similar Ranks</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-Logic-amp-Dimension-Limits-both-are-giving-wrong-result-for/m-p/1763478#M591382</link>
      <description>&lt;P&gt;Hi Kush,&lt;/P&gt;&lt;P&gt;Can you please make me understand why Mode 4 is not working and 1 is working. I can clearly see that Mode 4 is giving similar values for Same value and it's not using range but still it's not going right result when using &amp;lt;=1 condition and mode 1 is working when it has values in ranges. how come it is showing values 5 values in &amp;lt;=1 when in actual it is representing them as 1-5.&lt;/P&gt;&lt;P&gt;Is 1-5 internally interpreted as 1 and Mode1 rank 1 are interpreted differently internally?&lt;/P&gt;&lt;P&gt;Here is the snapshot:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Rank Ligic_1.png" style="width: 666px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/44574i3A88663C82D2A074/image-size/large?v=v2&amp;amp;px=999" role="button" title="Rank Ligic_1.png" alt="Rank Ligic_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Eric&lt;/P&gt;</description>
      <pubDate>Sat, 21 Nov 2020 22:21:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-Logic-amp-Dimension-Limits-both-are-giving-wrong-result-for/m-p/1763478#M591382</guid>
      <dc:creator>erric3210</dc:creator>
      <dc:date>2020-11-21T22:21:27Z</dc:date>
    </item>
    <item>
      <title>Re: Rank Logic &amp; Dimension Limits both are giving wrong result for similar Ranks</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-Logic-amp-Dimension-Limits-both-are-giving-wrong-result-for/m-p/1763482#M591383</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/14069"&gt;@erric3210&lt;/a&gt;&amp;nbsp; you can read more about rank function parameter&amp;nbsp;&lt;A href="https://help.qlik.com/en-US/qlikview/April2020/Subsystems/Client/Content/QV_QlikView/ChartFunctions/RankingFunctions/rank.htm" target="_self"&gt;here&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;You can ignore total keyword and you can also use below where mode =1 provides lowest rank on all rows and format=1 gives low value on all rows&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;=rank(total sum(Sales),1,1))

or

=rank( sum(Sales),1,1))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 21 Nov 2020 23:19:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-Logic-amp-Dimension-Limits-both-are-giving-wrong-result-for/m-p/1763482#M591383</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2020-11-21T23:19:45Z</dc:date>
    </item>
    <item>
      <title>Re: Rank Logic &amp; Dimension Limits both are giving wrong result for similar Ranks</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-Logic-amp-Dimension-Limits-both-are-giving-wrong-result-for/m-p/1763485#M591384</link>
      <description>&lt;P&gt;Hi Kush,&lt;/P&gt;&lt;P&gt;Thank you for the solution &amp;amp; explanation.&lt;/P&gt;&lt;P&gt;I'll surely read the shared link.&lt;/P&gt;&lt;P&gt;Kush, earlier you've used only 1 value in the end&amp;nbsp; (=num(rank(total sum(Sales),1)))&lt;/P&gt;&lt;P&gt;and also removed Num function from 2nd expression.&lt;/P&gt;&lt;P&gt;but now you're using 2 values in the end (=rank(total sum(Sales),1,1)))&lt;/P&gt;&lt;P&gt;What is the difference b/w them.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Eric&lt;/P&gt;</description>
      <pubDate>Sat, 21 Nov 2020 23:44:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-Logic-amp-Dimension-Limits-both-are-giving-wrong-result-for/m-p/1763485#M591384</guid>
      <dc:creator>erric3210</dc:creator>
      <dc:date>2020-11-21T23:44:54Z</dc:date>
    </item>
    <item>
      <title>Re: Rank Logic &amp; Dimension Limits both are giving wrong result for similar Ranks</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-Logic-amp-Dimension-Limits-both-are-giving-wrong-result-for/m-p/1763488#M591385</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/14069"&gt;@erric3210&lt;/a&gt;&amp;nbsp; only difference is in second solution I have used second format parameter which you can use to avoid using num function in first solution&lt;/P&gt;</description>
      <pubDate>Sun, 22 Nov 2020 00:11:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-Logic-amp-Dimension-Limits-both-are-giving-wrong-result-for/m-p/1763488#M591385</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2020-11-22T00:11:18Z</dc:date>
    </item>
    <item>
      <title>Re: Rank Logic &amp; Dimension Limits both are giving wrong result for similar Ranks</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-Logic-amp-Dimension-Limits-both-are-giving-wrong-result-for/m-p/1763491#M591386</link>
      <description>&lt;P&gt;Great....!! Thanks Kush..........!!&lt;/P&gt;</description>
      <pubDate>Sun, 22 Nov 2020 01:13:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-Logic-amp-Dimension-Limits-both-are-giving-wrong-result-for/m-p/1763491#M591386</guid>
      <dc:creator>erric3210</dc:creator>
      <dc:date>2020-11-22T01:13:02Z</dc:date>
    </item>
  </channel>
</rss>

