<?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 Filter and Selection Filter in Set Expression in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Rank-Filter-and-Selection-Filter-in-Set-Expression/m-p/1161962#M21072</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sunny, thank you for your continued effort on this! And you are so close with this answer. It is now almost doing what I want with only one small problem...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The output of the function P(Priority) seems to alter if a selection on the component field affects the list of possible Priorities i.e. one of the priorities turn dark grey.&lt;IMG alt="qlikexample2.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/132851_qlikexample2.png" style="font-size: 10pt; line-height: 1.5em; height: 349px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;Apart from this it is working perfecly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 Jul 2016 13:15:06 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-07-28T13:15:06Z</dc:date>
    <item>
      <title>Rank Filter and Selection Filter in Set Expression</title>
      <link>https://community.qlik.com/t5/App-Development/Rank-Filter-and-Selection-Filter-in-Set-Expression/m-p/1161952#M21062</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am working with incident data in the following format where each row details one registered incident:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;ID&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Priority&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Component&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Severe&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Till&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Moderate&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Software&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;...&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Critical&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Hardware&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I attach some sample data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a list box/field that allows for the user to select the 'Priority' level. I am trying to create a KPI that does the following: Counts the number of incidences - i.e. Count(ID) - only for the priority level selected (or all if none selected) and only for the top 5 components by Count(ID).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have attempted the following with no joy:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Count({1&amp;lt;[Priority] = P([Priority])&amp;gt;*1&amp;lt;[Component] = {"=Rank(Count([ID]))&amp;lt;=5"}&amp;gt;} [ID])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be greatly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards, &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jul 2016 16:47:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Rank-Filter-and-Selection-Filter-in-Set-Expression/m-p/1161952#M21062</guid>
      <dc:creator />
      <dc:date>2016-07-27T16:47:36Z</dc:date>
    </item>
    <item>
      <title>Re: Rank Filter and Selection Filter in Set Expression</title>
      <link>https://community.qlik.com/t5/App-Development/Rank-Filter-and-Selection-Filter-in-Set-Expression/m-p/1161953#M21063</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Count({1&amp;lt;Ccomponent = {"=Num(Rank(Count(ID), 4, 1)) &amp;lt;= 5"}&amp;gt;} ID)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jul 2016 17:38:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Rank-Filter-and-Selection-Filter-in-Set-Expression/m-p/1161953#M21063</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-07-27T17:38:36Z</dc:date>
    </item>
    <item>
      <title>Re: Rank Filter and Selection Filter in Set Expression</title>
      <link>https://community.qlik.com/t5/App-Development/Rank-Filter-and-Selection-Filter-in-Set-Expression/m-p/1161954#M21064</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This doesn't seem to be what I'm looking for. I'm also not sure what Num does in this context.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To be clear what I want is a count of the ID's for the top 5 components that will only vary if a selection is made on the Priority level. If any other selection is made I want nothing to change.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jul 2016 21:06:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Rank-Filter-and-Selection-Filter-in-Set-Expression/m-p/1161954#M21064</guid>
      <dc:creator />
      <dc:date>2016-07-27T21:06:43Z</dc:date>
    </item>
    <item>
      <title>Re: Rank Filter and Selection Filter in Set Expression</title>
      <link>https://community.qlik.com/t5/App-Development/Rank-Filter-and-Selection-Filter-in-Set-Expression/m-p/1161955#M21065</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would you be able to elaborate as to what you are trying to get&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jul 2016 22:32:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Rank-Filter-and-Selection-Filter-in-Set-Expression/m-p/1161955#M21065</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-07-27T22:32:47Z</dc:date>
    </item>
    <item>
      <title>Re: Rank Filter and Selection Filter in Set Expression</title>
      <link>https://community.qlik.com/t5/App-Development/Rank-Filter-and-Selection-Filter-in-Set-Expression/m-p/1161956#M21066</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;"what I want is a count of the ID's for the top 5 components that will only vary if a selection is made on the Priority level. If any other selection is made I want nothing to change." This what I am trying to get.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like the result to filter down if a selection is made in the Priority field but not if a selection is made in the component field. And I would like the result to always show the count from the top 5 components within the selected Priority level.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2016 08:05:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Rank-Filter-and-Selection-Filter-in-Set-Expression/m-p/1161956#M21066</guid>
      <dc:creator />
      <dc:date>2016-07-28T08:05:36Z</dc:date>
    </item>
    <item>
      <title>Re: Rank Filter and Selection Filter in Set Expression</title>
      <link>https://community.qlik.com/t5/App-Development/Rank-Filter-and-Selection-Filter-in-Set-Expression/m-p/1161957#M21067</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think it would be better if you can point out the expected number based on selection in different Priority level selection. If I have the numbers you are trying to get, I might be able to help you better&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2016 08:37:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Rank-Filter-and-Selection-Filter-in-Set-Expression/m-p/1161957#M21067</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-07-28T08:37:47Z</dc:date>
    </item>
    <item>
      <title>Re: Rank Filter and Selection Filter in Set Expression</title>
      <link>https://community.qlik.com/t5/App-Development/Rank-Filter-and-Selection-Filter-in-Set-Expression/m-p/1161958#M21068</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No Priority selection: 280&lt;/P&gt;&lt;P&gt;Priority 1: 42&lt;/P&gt;&lt;P&gt;Priority 3: 190&lt;/P&gt;&lt;P&gt;Priority 2 + Priority 3: 236&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And if any component or set of components is selected these numbers should not change &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2016 08:45:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Rank-Filter-and-Selection-Filter-in-Set-Expression/m-p/1161958#M21068</guid>
      <dc:creator />
      <dc:date>2016-07-28T08:45:07Z</dc:date>
    </item>
    <item>
      <title>Re: Rank Filter and Selection Filter in Set Expression</title>
      <link>https://community.qlik.com/t5/App-Development/Rank-Filter-and-Selection-Filter-in-Set-Expression/m-p/1161959#M21069</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check out this expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Count({1&amp;lt;Ccomponent = {"=Num(Rank(Count(ID), &lt;SPAN style="color: #ff0000;"&gt;3&lt;/SPAN&gt;, 1)) &amp;lt;= 5"}&lt;SPAN style="color: #ff0000;"&gt;, Priority = p(Priority)&amp;gt;&lt;/SPAN&gt;} ID)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2016 10:38:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Rank-Filter-and-Selection-Filter-in-Set-Expression/m-p/1161959#M21069</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-07-28T10:38:05Z</dc:date>
    </item>
    <item>
      <title>Re: Rank Filter and Selection Filter in Set Expression</title>
      <link>https://community.qlik.com/t5/App-Development/Rank-Filter-and-Selection-Filter-in-Set-Expression/m-p/1161960#M21070</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately this doesn't seem to work for me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I make a selection on one of the components it updates the total. I do not want this to happen. I just want the total to update if Priority is changed. See below. The total should not change for the bottom KPI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="qlikexample.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/132823_qlikexample.png" style="height: 349px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2016 10:57:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Rank-Filter-and-Selection-Filter-in-Set-Expression/m-p/1161960#M21070</guid>
      <dc:creator />
      <dc:date>2016-07-28T10:57:04Z</dc:date>
    </item>
    <item>
      <title>Re: Rank Filter and Selection Filter in Set Expression</title>
      <link>https://community.qlik.com/t5/App-Development/Rank-Filter-and-Selection-Filter-in-Set-Expression/m-p/1161961#M21071</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How about this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Count({1&amp;lt;Ccomponent = {"=Num(Rank(Count(&lt;SPAN style="color: #ff0000;"&gt;{1&amp;lt;Priority = p(Priority)&amp;gt;}&lt;/SPAN&gt;ID), 3, 1)) &amp;lt;= 5"}, Priority = p(Priority)&amp;gt;} ID)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2016 11:40:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Rank-Filter-and-Selection-Filter-in-Set-Expression/m-p/1161961#M21071</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-07-28T11:40:33Z</dc:date>
    </item>
    <item>
      <title>Re: Rank Filter and Selection Filter in Set Expression</title>
      <link>https://community.qlik.com/t5/App-Development/Rank-Filter-and-Selection-Filter-in-Set-Expression/m-p/1161962#M21072</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sunny, thank you for your continued effort on this! And you are so close with this answer. It is now almost doing what I want with only one small problem...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The output of the function P(Priority) seems to alter if a selection on the component field affects the list of possible Priorities i.e. one of the priorities turn dark grey.&lt;IMG alt="qlikexample2.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/132851_qlikexample2.png" style="font-size: 10pt; line-height: 1.5em; height: 349px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;Apart from this it is working perfecly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2016 13:15:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Rank-Filter-and-Selection-Filter-in-Set-Expression/m-p/1161962#M21072</guid>
      <dc:creator />
      <dc:date>2016-07-28T13:15:06Z</dc:date>
    </item>
    <item>
      <title>Re: Rank Filter and Selection Filter in Set Expression</title>
      <link>https://community.qlik.com/t5/App-Development/Rank-Filter-and-Selection-Filter-in-Set-Expression/m-p/1161963#M21073</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How about this &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Count({1&amp;lt;Ccomponent = {"=Num(Rank(Count({1&amp;lt;&lt;SPAN style="color: #ff0000;"&gt;Priority = $::Priority&lt;/SPAN&gt;&amp;gt;}ID), 3, 1)) &amp;lt;= 5"}, &lt;SPAN style="color: #ff0000;"&gt;Priority = $::Priority&lt;/SPAN&gt;&amp;gt;} ID)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2016 15:07:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Rank-Filter-and-Selection-Filter-in-Set-Expression/m-p/1161963#M21073</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-07-28T15:07:41Z</dc:date>
    </item>
    <item>
      <title>Re: Rank Filter and Selection Filter in Set Expression</title>
      <link>https://community.qlik.com/t5/App-Development/Rank-Filter-and-Selection-Filter-in-Set-Expression/m-p/1161964#M21074</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have done it! That is heroic effort!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I may be worth a small explanation explaining how this works for anyone visiting later...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2016 15:11:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Rank-Filter-and-Selection-Filter-in-Set-Expression/m-p/1161964#M21074</guid>
      <dc:creator />
      <dc:date>2016-07-28T15:11:15Z</dc:date>
    </item>
  </channel>
</rss>

