<?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: Ranking not work correctly in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Ranking-not-work-correctly/m-p/2536416#M108670</link>
    <description>&lt;P&gt;It is a bit hard to troubleshoot without knowing more about the data and your selections.&lt;/P&gt;&lt;P&gt;What is MTD orders? Is it an expression or a recalculated dimension value? How is that calculation done?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I notice this set modifier:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;YEAR={$(=YEAR(TODAY()))},&lt;/EM&gt;&lt;EM&gt;&amp;nbsp; MTD_FLAG={'Y'}&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;The screenshot reveal nothing about those values in your selections. Could it be that the "faulty" blank doesn't meet the correct YEAR and MTD_FLAG criteria?&lt;/P&gt;</description>
    <pubDate>Tue, 18 Nov 2025 06:08:06 GMT</pubDate>
    <dc:creator>Vegar</dc:creator>
    <dc:date>2025-11-18T06:08:06Z</dc:date>
    <item>
      <title>Ranking not work correctly</title>
      <link>https://community.qlik.com/t5/App-Development/Ranking-not-work-correctly/m-p/2536369#M108662</link>
      <description>&lt;P&gt;I am building a straight table to show top 10 orders, and also includes their information (such as product, customer).&lt;/P&gt;
&lt;P&gt;I've tried these 2 methods but both of them did not get the correct top orders.&lt;/P&gt;
&lt;P&gt;1. Click the order_number and limit to top 10.&lt;/P&gt;
&lt;P&gt;2. Use Ranking expression.&lt;/P&gt;
&lt;P&gt;The formula I used:&lt;/P&gt;
&lt;P&gt;=AGGR(&lt;/P&gt;
&lt;P&gt;RANK(&lt;/P&gt;
&lt;P&gt;Sum(&lt;/P&gt;
&lt;P&gt;{&amp;lt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; BUSINESS={'A', 'C', 'D'},&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; YEAR={$(=YEAR(TODAY()))},&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; MTD_FLAG={'Y'}&lt;/P&gt;
&lt;P&gt;&amp;gt;}&lt;/P&gt;
&lt;P&gt;ORDER_AMOUNT&lt;/P&gt;
&lt;P&gt;)&lt;/P&gt;
&lt;P&gt;,0,1),&lt;/P&gt;
&lt;P&gt;BUSINESS,&lt;/P&gt;
&lt;P&gt;ORDER_NUMBER&lt;/P&gt;
&lt;P&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Nov 2025 14:43:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Ranking-not-work-correctly/m-p/2536369#M108662</guid>
      <dc:creator>yyw</dc:creator>
      <dc:date>2025-11-17T14:43:07Z</dc:date>
    </item>
    <item>
      <title>Re: Ranking not work correctly</title>
      <link>https://community.qlik.com/t5/App-Development/Ranking-not-work-correctly/m-p/2536372#M108663</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/355967"&gt;@yyw&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The first one should always work if the limitation is being done on the correct calculation. For the second one, I would need to see the raw data to reproduce it. Could you, please, attach it or the app with the object if possible?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kind Regards&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;</description>
      <pubDate>Mon, 17 Nov 2025 15:38:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Ranking-not-work-correctly/m-p/2536372#M108663</guid>
      <dc:creator>Daniel_Castella</dc:creator>
      <dc:date>2025-11-17T15:38:19Z</dc:date>
    </item>
    <item>
      <title>Re: Ranking not work correctly</title>
      <link>https://community.qlik.com/t5/App-Development/Ranking-not-work-correctly/m-p/2536416#M108670</link>
      <description>&lt;P&gt;It is a bit hard to troubleshoot without knowing more about the data and your selections.&lt;/P&gt;&lt;P&gt;What is MTD orders? Is it an expression or a recalculated dimension value? How is that calculation done?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I notice this set modifier:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;YEAR={$(=YEAR(TODAY()))},&lt;/EM&gt;&lt;EM&gt;&amp;nbsp; MTD_FLAG={'Y'}&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;The screenshot reveal nothing about those values in your selections. Could it be that the "faulty" blank doesn't meet the correct YEAR and MTD_FLAG criteria?&lt;/P&gt;</description>
      <pubDate>Tue, 18 Nov 2025 06:08:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Ranking-not-work-correctly/m-p/2536416#M108670</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2025-11-18T06:08:06Z</dc:date>
    </item>
    <item>
      <title>Re: Ranking not work correctly</title>
      <link>https://community.qlik.com/t5/App-Development/Ranking-not-work-correctly/m-p/2536527#M108689</link>
      <description>&lt;P&gt;Use this in calculated dimension&amp;nbsp;&lt;/P&gt;&lt;P&gt;=If(&lt;/P&gt;&lt;P&gt;&amp;nbsp; Aggr(&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; Rank(&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Sum({&amp;lt;BUSINESS={'A','C','D'}, YEAR={$(=Year(Today()))}, MTD_FLAG={'Y'}&amp;gt;} ORDER_AMOUNT)&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; ,0,1),&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; ORDER_NUMBER&lt;/P&gt;&lt;P&gt;&amp;nbsp; ) &amp;lt;= 10,&lt;/P&gt;&lt;P&gt;&amp;nbsp; ORDER_N&lt;/P&gt;&lt;P&gt;UMBER&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;</description>
      <pubDate>Wed, 19 Nov 2025 05:35:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Ranking-not-work-correctly/m-p/2536527#M108689</guid>
      <dc:creator>Chanty4u</dc:creator>
      <dc:date>2025-11-19T05:35:10Z</dc:date>
    </item>
  </channel>
</rss>

