<?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: Rank should not be change when user select in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Rank-should-not-be-change-when-user-select/m-p/2054670#M86641</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/171420"&gt;@KNRaju105630&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A simple way to do this is:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Use the aggr graph function (The Aggr function is used for nested aggregations, in which its first parameter is calculated once per dimensional value);&lt;/LI&gt;
&lt;LI&gt;Use TOTAL for the calculation to be done in all possible values;&lt;/LI&gt;
&lt;LI&gt;Use the identifier 1 in the set analysis to receive all the expression data regardless of the filter used;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Resulting in the following expression:&lt;/P&gt;
&lt;LI-CODE lang="php"&gt;aggr(rank(total sum({1} Sales),1,2),Product)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Without any filter:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="LucasBarbosa_1-1680093775635.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/103762i616585E99A95798D/image-size/large?v=v2&amp;amp;px=999" role="button" title="LucasBarbosa_1-1680093775635.png" alt="LucasBarbosa_1-1680093775635.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;With product filter = S2:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="LucasBarbosa_3-1680093936314.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/103764iE21B42E978EA1ADC/image-size/large?v=v2&amp;amp;px=999" role="button" title="LucasBarbosa_3-1680093936314.png" alt="LucasBarbosa_3-1680093936314.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;reading references:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;1 - &lt;A href="https://help.qlik.com/en-US/sense/February2021/Subsystems/Hub/Content/Sense_Hub/ChartFunctions/RankingFunctions/rank.htm" target="_blank" rel="noopener"&gt;Rank()&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;2 - &lt;A href="https://help.qlik.com/en-US/sense/February2023/Subsystems/Hub/Content/Sense_Hub/ChartFunctions/BasicAggregationFunctions/sum.htm" target="_self"&gt;TOTAL&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;3 - &lt;A href="https://help.qlik.com/en-US/sense/February2023/Subsystems/Hub/Content/Sense_Hub/ChartFunctions/aggr.htm" target="_self"&gt;Aggr()&lt;/A&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;</description>
    <pubDate>Wed, 29 Mar 2023 12:50:44 GMT</pubDate>
    <dc:creator>LucasBarbosa</dc:creator>
    <dc:date>2023-03-29T12:50:44Z</dc:date>
    <item>
      <title>Rank should not be change when user select</title>
      <link>https://community.qlik.com/t5/App-Development/Rank-should-not-be-change-when-user-select/m-p/2054517#M86624</link>
      <description>&lt;P&gt;Hi Community,&lt;/P&gt;
&lt;P&gt;below is my table, I have calculated RANK - but when user select any product changing the RANK, but it should not change the RANK (if user select or not)&lt;/P&gt;
&lt;P&gt;LOAD * INLINE [&lt;BR /&gt;Category, Sub Category, Product, Sales&lt;BR /&gt;Mobiles, Nokia, N1, 12&lt;BR /&gt;Mobiles, Nikia, N2, 2&lt;BR /&gt;Mobiles, Samsung, S1, 25&lt;BR /&gt;Mobiles, Samsung, S2, 7&lt;BR /&gt;Mobiles, Samsung, S3, 7&lt;BR /&gt;Mobiles, IPhone, I++, 9&lt;BR /&gt;Books, Qlik, QlikView, 5&lt;BR /&gt;Books, Qlik, ABC, 30&lt;BR /&gt;Books, Qlik, BCA, 30&lt;BR /&gt;Books, Qlik, XYZ, 30&lt;BR /&gt;Books, Qlik, XAB, 30&lt;BR /&gt;Books, Qlik, ABG, 30 &lt;BR /&gt;Books, Tableau, Tab, 10&lt;BR /&gt;Books, Spotfire, SF, 8&lt;BR /&gt;];&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="KNRaju105630_0-1680078870376.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/103740iF0920F2271B6D650/image-size/medium?v=v2&amp;amp;px=400" role="button" title="KNRaju105630_0-1680078870376.png" alt="KNRaju105630_0-1680078870376.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Wed, 29 Mar 2023 12:46:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Rank-should-not-be-change-when-user-select/m-p/2054517#M86624</guid>
      <dc:creator>KNRaju105630</dc:creator>
      <dc:date>2023-03-29T12:46:33Z</dc:date>
    </item>
    <item>
      <title>Re: Rank should not be change when user select</title>
      <link>https://community.qlik.com/t5/App-Development/Rank-should-not-be-change-when-user-select/m-p/2054665#M86639</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/22949"&gt;@tresB&lt;/a&gt;&amp;nbsp;..&lt;/P&gt;
&lt;P&gt;Anyone can help please - bit urgent!&lt;/P&gt;</description>
      <pubDate>Wed, 29 Mar 2023 12:47:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Rank-should-not-be-change-when-user-select/m-p/2054665#M86639</guid>
      <dc:creator>KNRaju105630</dc:creator>
      <dc:date>2023-03-29T12:47:22Z</dc:date>
    </item>
    <item>
      <title>Re: Rank should not be change when user select</title>
      <link>https://community.qlik.com/t5/App-Development/Rank-should-not-be-change-when-user-select/m-p/2054670#M86641</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/171420"&gt;@KNRaju105630&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A simple way to do this is:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Use the aggr graph function (The Aggr function is used for nested aggregations, in which its first parameter is calculated once per dimensional value);&lt;/LI&gt;
&lt;LI&gt;Use TOTAL for the calculation to be done in all possible values;&lt;/LI&gt;
&lt;LI&gt;Use the identifier 1 in the set analysis to receive all the expression data regardless of the filter used;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Resulting in the following expression:&lt;/P&gt;
&lt;LI-CODE lang="php"&gt;aggr(rank(total sum({1} Sales),1,2),Product)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Without any filter:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="LucasBarbosa_1-1680093775635.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/103762i616585E99A95798D/image-size/large?v=v2&amp;amp;px=999" role="button" title="LucasBarbosa_1-1680093775635.png" alt="LucasBarbosa_1-1680093775635.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;With product filter = S2:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="LucasBarbosa_3-1680093936314.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/103764iE21B42E978EA1ADC/image-size/large?v=v2&amp;amp;px=999" role="button" title="LucasBarbosa_3-1680093936314.png" alt="LucasBarbosa_3-1680093936314.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;reading references:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;1 - &lt;A href="https://help.qlik.com/en-US/sense/February2021/Subsystems/Hub/Content/Sense_Hub/ChartFunctions/RankingFunctions/rank.htm" target="_blank" rel="noopener"&gt;Rank()&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;2 - &lt;A href="https://help.qlik.com/en-US/sense/February2023/Subsystems/Hub/Content/Sense_Hub/ChartFunctions/BasicAggregationFunctions/sum.htm" target="_self"&gt;TOTAL&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;3 - &lt;A href="https://help.qlik.com/en-US/sense/February2023/Subsystems/Hub/Content/Sense_Hub/ChartFunctions/aggr.htm" target="_self"&gt;Aggr()&lt;/A&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;</description>
      <pubDate>Wed, 29 Mar 2023 12:50:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Rank-should-not-be-change-when-user-select/m-p/2054670#M86641</guid>
      <dc:creator>LucasBarbosa</dc:creator>
      <dc:date>2023-03-29T12:50:44Z</dc:date>
    </item>
    <item>
      <title>Re: Rank should not be change when user select</title>
      <link>https://community.qlik.com/t5/App-Development/Rank-should-not-be-change-when-user-select/m-p/2055357#M86716</link>
      <description>&lt;P&gt;Hello Everyone,&lt;/P&gt;
&lt;P&gt;Hello Lucas,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do you know , how can i do the next?&lt;/P&gt;
&lt;P&gt;I think it's a simple query, I need to count the dates, I'm using the rank function that gives me the expected result, the problem is when I filter by a date, the rank returns to 1, so I need it to ignore the selection of that field(Fecha)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advance&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Marcos112_0-1680200194521.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/103888iF2891D6FA01691D8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Marcos112_0-1680200194521.png" alt="Marcos112_0-1680200194521.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Mar 2023 18:17:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Rank-should-not-be-change-when-user-select/m-p/2055357#M86716</guid>
      <dc:creator>Marcos112</dc:creator>
      <dc:date>2023-03-30T18:17:07Z</dc:date>
    </item>
  </channel>
</rss>

