<?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 - considering all the possible dimensions, selecting one by one dimension in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Rank-considering-all-the-possible-dimensions-selecting-one-by/m-p/1979892#M80873</link>
    <description>&lt;P&gt;Hi NadMar,&lt;/P&gt;
&lt;P&gt;I have loaded your data, and just Selecting Mario without any expressions, gives the expected Output:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Matheus_Zapparoli_0-1662991961232.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/88907i9225FF45991C4F2C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Matheus_Zapparoli_0-1662991961232.png" alt="Matheus_Zapparoli_0-1662991961232.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;If this is not what you want, can you further elaborate your question ?&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 12 Sep 2022 14:13:28 GMT</pubDate>
    <dc:creator>Zapparoli</dc:creator>
    <dc:date>2022-09-12T14:13:28Z</dc:date>
    <item>
      <title>Rank - considering all the possible dimensions, selecting one by one dimension</title>
      <link>https://community.qlik.com/t5/App-Development/Rank-considering-all-the-possible-dimensions-selecting-one-by/m-p/1979872#M80870</link>
      <description>&lt;P&gt;Hi to everybody,&lt;BR /&gt;We have 150 sales reps, and 15 Area manager, (each AM has 10 reps on average).&lt;BR /&gt;I need to show the global ranking even selecting a single Area manager:&lt;BR /&gt;&lt;BR /&gt;this &lt;STRONG&gt;is not working&lt;/STRONG&gt;:&lt;BR /&gt;&lt;BR /&gt;aggr(&lt;BR /&gt;rank( sum( {&amp;lt;AM = &amp;gt;} Sale)))&lt;BR /&gt;,AM,SalesRep)&lt;/P&gt;
&lt;P&gt;This is &lt;STRONG&gt;showing all the sales Rep&lt;/STRONG&gt; even if I select one Aareamanager:&lt;BR /&gt;rank( sum( {&amp;lt;AM = &amp;gt;} Sale))&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;So if this is my fact table:&lt;/P&gt;
&lt;TABLE style="border-collapse: collapse; width: 192pt;" border="0" width="256" cellspacing="0" cellpadding="0"&gt;
&lt;TBODY&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD width="64" height="20" style="height: 15.0pt; width: 48pt;"&gt;AM&lt;/TD&gt;
&lt;TD width="64" style="width: 48pt;"&gt;Reps&lt;/TD&gt;
&lt;TD width="64" style="width: 48pt;"&gt;Sales&lt;/TD&gt;
&lt;TD width="64" style="width: 48pt;"&gt;Global Rank&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD height="20" style="height: 15.0pt;"&gt;Luigi&lt;/TD&gt;
&lt;TD&gt;Lucia&lt;/TD&gt;
&lt;TD align="right"&gt;16&lt;/TD&gt;
&lt;TD align="right"&gt;1&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD height="20" style="height: 15.0pt;"&gt;Luigi&lt;/TD&gt;
&lt;TD&gt;Alberto&lt;/TD&gt;
&lt;TD align="right"&gt;15&lt;/TD&gt;
&lt;TD align="right"&gt;2&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD height="20" style="height: 15.0pt;"&gt;Luigi&lt;/TD&gt;
&lt;TD&gt;Andrea&lt;/TD&gt;
&lt;TD align="right"&gt;12&lt;/TD&gt;
&lt;TD align="right"&gt;4&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD height="20" style="height: 15.0pt;"&gt;Luigi&lt;/TD&gt;
&lt;TD&gt;Mario&lt;/TD&gt;
&lt;TD align="right"&gt;7&lt;/TD&gt;
&lt;TD align="right"&gt;8&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD height="20" style="height: 15.0pt;"&gt;Mario&lt;/TD&gt;
&lt;TD&gt;Luca&lt;/TD&gt;
&lt;TD align="right"&gt;13&lt;/TD&gt;
&lt;TD align="right"&gt;3&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD height="20" style="height: 15.0pt;"&gt;Mario&lt;/TD&gt;
&lt;TD&gt;Antonio&lt;/TD&gt;
&lt;TD align="right"&gt;11&lt;/TD&gt;
&lt;TD align="right"&gt;5&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD height="20" style="height: 15.0pt;"&gt;Mario&lt;/TD&gt;
&lt;TD&gt;Giorgio&lt;/TD&gt;
&lt;TD align="right"&gt;10&lt;/TD&gt;
&lt;TD align="right"&gt;6&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD height="20" style="height: 15.0pt;"&gt;Mario&lt;/TD&gt;
&lt;TD&gt;Roberta&lt;/TD&gt;
&lt;TD align="right"&gt;9&lt;/TD&gt;
&lt;TD align="right"&gt;7&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When select Mario i'll need to have this output:&lt;/P&gt;
&lt;TABLE style="border-collapse: collapse; width: 192pt;" border="0" width="256" cellspacing="0" cellpadding="0"&gt;
&lt;TBODY&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD width="64" height="20" style="height: 15.0pt; width: 48pt;"&gt;AM&lt;/TD&gt;
&lt;TD width="64" style="width: 48pt;"&gt;Reps&lt;/TD&gt;
&lt;TD width="64" style="width: 48pt;"&gt;Sales&lt;/TD&gt;
&lt;TD width="64" style="width: 48pt;"&gt;Global Rank&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD height="20" style="height: 15.0pt;"&gt;Mario&lt;/TD&gt;
&lt;TD&gt;Luca&lt;/TD&gt;
&lt;TD align="right"&gt;13&lt;/TD&gt;
&lt;TD align="right"&gt;3&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD height="20" style="height: 15.0pt;"&gt;Mario&lt;/TD&gt;
&lt;TD&gt;Antonio&lt;/TD&gt;
&lt;TD align="right"&gt;11&lt;/TD&gt;
&lt;TD align="right"&gt;5&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD height="20" style="height: 15.0pt;"&gt;Mario&lt;/TD&gt;
&lt;TD&gt;Giorgio&lt;/TD&gt;
&lt;TD align="right"&gt;10&lt;/TD&gt;
&lt;TD align="right"&gt;6&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD height="20" style="height: 15.0pt;"&gt;Mario&lt;/TD&gt;
&lt;TD&gt;Roberta&lt;/TD&gt;
&lt;TD align="right"&gt;9&lt;/TD&gt;
&lt;TD align="right"&gt;7&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Thanks in advance!&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&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>Mon, 12 Sep 2022 13:43:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Rank-considering-all-the-possible-dimensions-selecting-one-by/m-p/1979872#M80870</guid>
      <dc:creator>NadMar</dc:creator>
      <dc:date>2022-09-12T13:43:13Z</dc:date>
    </item>
    <item>
      <title>Re: Rank - considering all the possible dimensions, selecting one by one dimension</title>
      <link>https://community.qlik.com/t5/App-Development/Rank-considering-all-the-possible-dimensions-selecting-one-by/m-p/1979892#M80873</link>
      <description>&lt;P&gt;Hi NadMar,&lt;/P&gt;
&lt;P&gt;I have loaded your data, and just Selecting Mario without any expressions, gives the expected Output:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Matheus_Zapparoli_0-1662991961232.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/88907i9225FF45991C4F2C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Matheus_Zapparoli_0-1662991961232.png" alt="Matheus_Zapparoli_0-1662991961232.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;If this is not what you want, can you further elaborate your question ?&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Sep 2022 14:13:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Rank-considering-all-the-possible-dimensions-selecting-one-by/m-p/1979892#M80873</guid>
      <dc:creator>Zapparoli</dc:creator>
      <dc:date>2022-09-12T14:13:28Z</dc:date>
    </item>
    <item>
      <title>Re: Rank - considering all the possible dimensions, selecting one by one dimension</title>
      <link>https://community.qlik.com/t5/App-Development/Rank-considering-all-the-possible-dimensions-selecting-one-by/m-p/1979912#M80875</link>
      <description>&lt;P&gt;Hi Matheus,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;tnks for the replay!&lt;/P&gt;
&lt;P&gt;actually "Global rank" should be a formula, in example i have written is already calculated,&lt;BR /&gt;&lt;BR /&gt;consider that sales will have 10K rows per each rep per month&lt;/P&gt;
&lt;P&gt;so i have to sum the sales and ranking it&lt;/P&gt;</description>
      <pubDate>Mon, 12 Sep 2022 14:41:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Rank-considering-all-the-possible-dimensions-selecting-one-by/m-p/1979912#M80875</guid>
      <dc:creator>NadMar</dc:creator>
      <dc:date>2022-09-12T14:41:11Z</dc:date>
    </item>
    <item>
      <title>Re: Rank - considering all the possible dimensions, selecting one by one dimension</title>
      <link>https://community.qlik.com/t5/App-Development/Rank-considering-all-the-possible-dimensions-selecting-one-by/m-p/1979935#M80877</link>
      <description>&lt;P&gt;Nadmar, Thanks for the explanation.&lt;/P&gt;
&lt;P&gt;In this case we do not use AGGR by Area Manager, just by your salesperson.&lt;/P&gt;
&lt;P&gt;Try this:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;=aggr(
	 rank(
     	sum({&amp;lt;AM = &amp;gt;} Sales))
,Reps)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;The result i got when selecting Mario was:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Matheus_Zapparoli_0-1662995153171.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/88916i74DAC7113010B85A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Matheus_Zapparoli_0-1662995153171.png" alt="Matheus_Zapparoli_0-1662995153171.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;without selections:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Matheus_Zapparoli_1-1662995170502.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/88917iEA45FE2026D1AA62/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Matheus_Zapparoli_1-1662995170502.png" alt="Matheus_Zapparoli_1-1662995170502.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Let me know if it works.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Sep 2022 15:07:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Rank-considering-all-the-possible-dimensions-selecting-one-by/m-p/1979935#M80877</guid>
      <dc:creator>Zapparoli</dc:creator>
      <dc:date>2022-09-12T15:07:04Z</dc:date>
    </item>
    <item>
      <title>Re: Rank - considering all the possible dimensions, selecting one by one dimension</title>
      <link>https://community.qlik.com/t5/App-Development/Rank-considering-all-the-possible-dimensions-selecting-one-by/m-p/1979960#M80879</link>
      <description>&lt;P&gt;Sorry, i got stuck in a trivial..&lt;BR /&gt;&lt;BR /&gt;Thank you very much!!&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Sep 2022 15:57:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Rank-considering-all-the-possible-dimensions-selecting-one-by/m-p/1979960#M80879</guid>
      <dc:creator>NadMar</dc:creator>
      <dc:date>2022-09-12T15:57:20Z</dc:date>
    </item>
    <item>
      <title>Re: Rank - considering all the possible dimensions, selecting one by one dimension</title>
      <link>https://community.qlik.com/t5/App-Development/Rank-considering-all-the-possible-dimensions-selecting-one-by/m-p/1979969#M80880</link>
      <description>&lt;P&gt;can i ask the last advise, so the problem was that i had 2 dimensions, sales rep, and product category, and i was aggregating for the wrong dimension,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;now i would like to se the total rank for the total product, i tried to see if i can use dimensionality or rowno to put different formulass (one for the total and the other for the cell values:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="NadMar_2-1663000332003.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/88924i6F2B3A1C83812DE7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="NadMar_2-1663000332003.png" alt="NadMar_2-1663000332003.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;So if i agregate it correctly the total is not going to appare, if i take out the product category the formula'll not work inside the cell&lt;BR /&gt;&lt;BR /&gt;i ow you a beer&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Sep 2022 16:33:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Rank-considering-all-the-possible-dimensions-selecting-one-by/m-p/1979969#M80880</guid>
      <dc:creator>NadMar</dc:creator>
      <dc:date>2022-09-12T16:33:19Z</dc:date>
    </item>
    <item>
      <title>Re: Rank - considering all the possible dimensions, selecting one by one dimension</title>
      <link>https://community.qlik.com/t5/App-Development/Rank-considering-all-the-possible-dimensions-selecting-one-by/m-p/1979974#M80881</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I couldn't understand your question. Can you elaborate it further or give some sample data with the expected output ?&lt;/P&gt;</description>
      <pubDate>Mon, 12 Sep 2022 19:31:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Rank-considering-all-the-possible-dimensions-selecting-one-by/m-p/1979974#M80881</guid>
      <dc:creator>Zapparoli</dc:creator>
      <dc:date>2022-09-12T19:31:32Z</dc:date>
    </item>
  </channel>
</rss>

