<?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 Aggr and Rank function to limit the output to a fixed rane in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Aggr-and-Rank-function-to-limit-the-output-to-a-fixed-rane/m-p/2450204#M97906</link>
    <description>&lt;P&gt;Hi All&lt;/P&gt;
&lt;P&gt;Im using the AGGR and Rank function to create a rank for each output value for that dimension&lt;/P&gt;
&lt;P&gt;Aggr(Rank(1-count({&amp;lt;[somefield]={'Osomevaluet'}&amp;gt;}A_number)/count(A_number)),$(vDimValue))&lt;/P&gt;
&lt;P&gt;the dimensions can be anything from 3 to 10+ values so currently my rank produces the values (1,2,3.....10+) or however many dimension values exist.&lt;/P&gt;
&lt;P&gt;I want the rank to automatically limit the values of rank between 1 to 5&amp;nbsp; one being lowest output value aggregated over the dimension..&lt;STRONG&gt; i don't want&lt;/STRONG&gt; to fix the value if output between a and b value 1., else 2...... is there a dynamic way to calculate a range of rank -1-5 based on the values for that dimension&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;any help appreciated&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 08 May 2024 08:36:17 GMT</pubDate>
    <dc:creator>QlikNAM</dc:creator>
    <dc:date>2024-05-08T08:36:17Z</dc:date>
    <item>
      <title>Aggr and Rank function to limit the output to a fixed rane</title>
      <link>https://community.qlik.com/t5/App-Development/Aggr-and-Rank-function-to-limit-the-output-to-a-fixed-rane/m-p/2450204#M97906</link>
      <description>&lt;P&gt;Hi All&lt;/P&gt;
&lt;P&gt;Im using the AGGR and Rank function to create a rank for each output value for that dimension&lt;/P&gt;
&lt;P&gt;Aggr(Rank(1-count({&amp;lt;[somefield]={'Osomevaluet'}&amp;gt;}A_number)/count(A_number)),$(vDimValue))&lt;/P&gt;
&lt;P&gt;the dimensions can be anything from 3 to 10+ values so currently my rank produces the values (1,2,3.....10+) or however many dimension values exist.&lt;/P&gt;
&lt;P&gt;I want the rank to automatically limit the values of rank between 1 to 5&amp;nbsp; one being lowest output value aggregated over the dimension..&lt;STRONG&gt; i don't want&lt;/STRONG&gt; to fix the value if output between a and b value 1., else 2...... is there a dynamic way to calculate a range of rank -1-5 based on the values for that dimension&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;any help appreciated&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 May 2024 08:36:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Aggr-and-Rank-function-to-limit-the-output-to-a-fixed-rane/m-p/2450204#M97906</guid>
      <dc:creator>QlikNAM</dc:creator>
      <dc:date>2024-05-08T08:36:17Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr and Rank function to limit the output to a fixed rane</title>
      <link>https://community.qlik.com/t5/App-Development/Aggr-and-Rank-function-to-limit-the-output-to-a-fixed-rane/m-p/2462989#M99004</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/293458"&gt;@QlikNAM&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;if I undersood your request right, you could try to adjust your expression like this:&lt;/P&gt;
&lt;P&gt;Aggr(If(Rank(1 - count({&amp;lt;[somefield]={'Osomevaluet'}&amp;gt;} A_number) / count(A_number)) &amp;lt;= 5,Rank(1 -count({&amp;lt;[somefield]={'Osomevaluet'}&amp;gt;} A_number) / count(A_number)),5),$(vDimValue))&lt;/P&gt;
&lt;P&gt;Hope this helps&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jun 2024 11:43:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Aggr-and-Rank-function-to-limit-the-output-to-a-fixed-rane/m-p/2462989#M99004</guid>
      <dc:creator>F_B</dc:creator>
      <dc:date>2024-06-17T11:43:28Z</dc:date>
    </item>
  </channel>
</rss>

