<?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: Using Rank and ignoring selections in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Using-Rank-and-ignoring-selections/m-p/1357165#M30325</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=AVG(total {1&amp;lt;CONSULTANT_ID = {"=Rank( SUM ({&amp;lt;CONSULTANT_ID=, A_CON_OT_REGION=, A_CON_OT_OFFICE= &amp;gt;}TS_CON_HR_FEES_SUM_L123))&amp;lt;=5"} &amp;gt;} [TS_CON_OT_JOBS_CNT_L123])&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 16 May 2017 22:25:56 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2017-05-16T22:25:56Z</dc:date>
    <item>
      <title>Using Rank and ignoring selections</title>
      <link>https://community.qlik.com/t5/App-Development/Using-Rank-and-ignoring-selections/m-p/1357154#M30314</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'd like to use Rank but ignore my selections.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using the following expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AVG(Total {&amp;lt;CONSULTANT_ID = {"=Rank(SUM(TS_CON_HR_FEES_SUM_L123))&amp;lt;=5"}&amp;gt;}[TS_CON_OT_JOBS_CNT_L123])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;which works perfectly until I make selections and then the rank works on the selected consultants - I want it to continue to use the whole data set. I know {1} denotes the whole data set ignoring selections but I don't know where to put it in the expression above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As an extension I would like to perhaps retain some dimensions that have been used. For example there is an OFFICE dimension and if an OFFICE has been selected then I'd like to use that selection before I rank my top 25.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me - I have been battling all day with this!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 May 2017 16:03:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Using-Rank-and-ignoring-selections/m-p/1357154#M30314</guid>
      <dc:creator />
      <dc:date>2017-05-16T16:03:52Z</dc:date>
    </item>
    <item>
      <title>Re: Using Rank and ignoring selections</title>
      <link>https://community.qlik.com/t5/App-Development/Using-Rank-and-ignoring-selections/m-p/1357155#M30315</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;AVG(Total {&lt;SPAN style="color: #ff0000;"&gt; &lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt; &amp;lt;CONSULTANT_ID = {"=Rank(SUM(TS_CON_HR_FEES_SUM_L123))&amp;lt;=5"}&amp;gt;}[TS_CON_OT_JOBS_CNT_L123])&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 May 2017 16:17:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Using-Rank-and-ignoring-selections/m-p/1357155#M30315</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-16T16:17:19Z</dc:date>
    </item>
    <item>
      <title>Re: Using Rank and ignoring selections</title>
      <link>https://community.qlik.com/t5/App-Development/Using-Rank-and-ignoring-selections/m-p/1357156#M30316</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The record set for the advanced search &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;=Rank(SUM(TS_CON_HR_FEES_SUM_L123))&amp;lt;=5&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;is not controlled by the set identifier used in the Avg() aggregation, so you need to apply another set expression to the Sum():&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;=Rank(SUM(&lt;SPAN style="color: #ff6600; font-size: 12pt;"&gt;{1}&lt;/SPAN&gt; TS_CON_HR_FEES_SUM_L123))&amp;lt;=5&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;If you want to consider the OFFICE selections in the rank, then there are two options:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;=Rank(SUM(&lt;/SPAN&gt;&lt;SPAN style="color: #ff6600; font-size: 12pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;{1&amp;lt;OFFICE = $::OFFICE&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt; TS_CON_HR_FEES_SUM_L123))&amp;lt;=5&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;or if you don't like to specify the field selections to consider, but just ignore the selection in Consultant_ID:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;=Rank(SUM(&lt;/SPAN&gt;&lt;SPAN style="color: #ff6600; font-size: 12pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;{&amp;lt;CONSULTANT_ID= &amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt; TS_CON_HR_FEES_SUM_L123))&amp;lt;=5&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not sure if you also need to adapt the set expression for the average, that depends how you want your avg calculation filtered.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 May 2017 16:45:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Using-Rank-and-ignoring-selections/m-p/1357156#M30316</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2017-05-16T16:45:02Z</dc:date>
    </item>
    <item>
      <title>Re: Using Rank and ignoring selections</title>
      <link>https://community.qlik.com/t5/App-Development/Using-Rank-and-ignoring-selections/m-p/1357157#M30317</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That doesn't quite work. I have a field on my consultant table called REGION. This is linked to a look up table for region. If I include the field region as a selection box on the app when I select it this expression re-calculates for the top 25 for the region selected; not what I want&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 May 2017 17:42:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Using-Rank-and-ignoring-selections/m-p/1357157#M30317</guid>
      <dc:creator />
      <dc:date>2017-05-16T17:42:05Z</dc:date>
    </item>
    <item>
      <title>Re: Using Rank and ignoring selections</title>
      <link>https://community.qlik.com/t5/App-Development/Using-Rank-and-ignoring-selections/m-p/1357158#M30318</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Following your first suggestion appears to work at first look but then when I make a selection on REGION as described above it seems to become an invalid expression as it returns NULLs&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 May 2017 17:46:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Using-Rank-and-ignoring-selections/m-p/1357158#M30318</guid>
      <dc:creator />
      <dc:date>2017-05-16T17:46:25Z</dc:date>
    </item>
    <item>
      <title>Re: Using Rank and ignoring selections</title>
      <link>https://community.qlik.com/t5/App-Development/Using-Rank-and-ignoring-selections/m-p/1357159#M30319</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your last suggestion looked good as well but now selecting REGION as described above recalculates the expression to top 25 for the selected REGION!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pulling hair out!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I read somewhere that Rank does not take set expressions but that Aggr does? But how do I add Aggr to my expression?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 May 2017 17:49:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Using-Rank-and-ignoring-selections/m-p/1357159#M30319</guid>
      <dc:creator />
      <dc:date>2017-05-16T17:49:16Z</dc:date>
    </item>
    <item>
      <title>Re: Using Rank and ignoring selections</title>
      <link>https://community.qlik.com/t5/App-Development/Using-Rank-and-ignoring-selections/m-p/1357160#M30320</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you post a small sample application and your requested results when doing specific selections?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 May 2017 18:21:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Using-Rank-and-ignoring-selections/m-p/1357160#M30320</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2017-05-16T18:21:33Z</dc:date>
    </item>
    <item>
      <title>Re: Using Rank and ignoring selections</title>
      <link>https://community.qlik.com/t5/App-Development/Using-Rank-and-ignoring-selections/m-p/1357161#M30321</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'll try. Some of the data is company confidential so need to be careful!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 May 2017 18:24:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Using-Rank-and-ignoring-selections/m-p/1357161#M30321</guid>
      <dc:creator />
      <dc:date>2017-05-16T18:24:29Z</dc:date>
    </item>
    <item>
      <title>Re: Using Rank and ignoring selections</title>
      <link>https://community.qlik.com/t5/App-Development/Using-Rank-and-ignoring-selections/m-p/1357162#M30322</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here we go...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The table on the "scratch" tab has a column with the expression...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 May 2017 18:57:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Using-Rank-and-ignoring-selections/m-p/1357162#M30322</guid>
      <dc:creator />
      <dc:date>2017-05-16T18:57:46Z</dc:date>
    </item>
    <item>
      <title>Re: Using Rank and ignoring selections</title>
      <link>https://community.qlik.com/t5/App-Development/Using-Rank-and-ignoring-selections/m-p/1357163#M30323</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sure, you don't need to post confidential data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just set up some mock up records and create a data model that shows your real setting and relation between tables.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 May 2017 19:21:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Using-Rank-and-ignoring-selections/m-p/1357163#M30323</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2017-05-16T19:21:43Z</dc:date>
    </item>
    <item>
      <title>Re: Using Rank and ignoring selections</title>
      <link>https://community.qlik.com/t5/App-Development/Using-Rank-and-ignoring-selections/m-p/1357164#M30324</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The Average Jobs for the Top 5 consultants should be 43.4&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you select an OFFICE or a REGION on the left the Average Jobs for the Top 5 consultants should stay the same; instead they change to a different number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note that if you select consultants from the table (clicking on CONSULTANT_ID) the Average Jobs for the Top 5 consultants remains what it should be (43.4). Different behaviour!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 May 2017 21:53:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Using-Rank-and-ignoring-selections/m-p/1357164#M30324</guid>
      <dc:creator />
      <dc:date>2017-05-16T21:53:44Z</dc:date>
    </item>
    <item>
      <title>Re: Using Rank and ignoring selections</title>
      <link>https://community.qlik.com/t5/App-Development/Using-Rank-and-ignoring-selections/m-p/1357165#M30325</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=AVG(total {1&amp;lt;CONSULTANT_ID = {"=Rank( SUM ({&amp;lt;CONSULTANT_ID=, A_CON_OT_REGION=, A_CON_OT_OFFICE= &amp;gt;}TS_CON_HR_FEES_SUM_L123))&amp;lt;=5"} &amp;gt;} [TS_CON_OT_JOBS_CNT_L123])&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 May 2017 22:25:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Using-Rank-and-ignoring-selections/m-p/1357165#M30325</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2017-05-16T22:25:56Z</dc:date>
    </item>
  </channel>
</rss>

