<?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 Set analysis is being ignored when using the RANK function in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Set-analysis-is-being-ignored-when-using-the-RANK-function/m-p/1595810#M63117</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm using a piece of script that counts the number of employee names that have a RANK between 0 and .10 when the Manager Type = 'IP'.&amp;nbsp; The script is counting correctly.&amp;nbsp; However, when the user selects a Manager Type other than 'IP', the chart displays all zeros.&amp;nbsp; The appropriate behavior is to always display data for Manager Type = 'IP' regardless of what manager type is selected from the filter.&amp;nbsp; A few of has have looked at this, but we haven't figured out what's missing.&lt;/P&gt;&lt;P&gt;Any thoughts?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;[Manager Type]={'IP'}&amp;gt;}&lt;BR /&gt;Aggr({&amp;lt;[Manager Type]={'IP'}&amp;gt;}&lt;BR /&gt;if(&lt;BR /&gt;(Rank(Total -&lt;BR /&gt;aggr(Count({&amp;lt;[Manager Type]={'IP'}&amp;gt;} [Hospital Account Id]),[In Progress Laborlytics Name])&lt;BR /&gt;/&lt;BR /&gt;aggr(sum({&amp;lt;[Manager Type]={'IP'}&amp;gt;} [Productive Hours]),[In Progress Laborlytics Name]),1)&lt;BR /&gt;/&lt;BR /&gt;count({&amp;lt;[Manager Type]={'IP'}&amp;gt;} total [In Progress Laborlytics Name]))&lt;BR /&gt;&amp;gt; 0 and&lt;BR /&gt;(Rank(Total -&lt;BR /&gt;aggr(Count({&amp;lt;[Manager Type]={'IP'}&amp;gt;} [Hospital Account Id]),[In Progress Laborlytics Name])&lt;BR /&gt;/&lt;BR /&gt;aggr(sum({&amp;lt;[Manager Type]={'IP'}&amp;gt;} [Productive Hours]),[In Progress Laborlytics Name]),1)&lt;BR /&gt;/&lt;BR /&gt;count({&amp;lt;[Manager Type]={'IP'}&amp;gt;} total [In Progress Laborlytics Name]))&lt;BR /&gt;&amp;lt;=.10,&lt;BR /&gt;count({&amp;lt;[Manager Type]={'IP'}&amp;gt;} [In Progress Laborlytics Name])&lt;BR /&gt;)&lt;BR /&gt;,[In Progress Laborlytics Name]&lt;BR /&gt;,[Manager Type]&lt;BR /&gt;,[In Progress Coder Manager]&lt;BR /&gt;))&lt;/P&gt;</description>
    <pubDate>Fri, 02 Apr 2021 07:58:50 GMT</pubDate>
    <dc:creator>scottmc68</dc:creator>
    <dc:date>2021-04-02T07:58:50Z</dc:date>
    <item>
      <title>Set analysis is being ignored when using the RANK function</title>
      <link>https://community.qlik.com/t5/App-Development/Set-analysis-is-being-ignored-when-using-the-RANK-function/m-p/1595810#M63117</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm using a piece of script that counts the number of employee names that have a RANK between 0 and .10 when the Manager Type = 'IP'.&amp;nbsp; The script is counting correctly.&amp;nbsp; However, when the user selects a Manager Type other than 'IP', the chart displays all zeros.&amp;nbsp; The appropriate behavior is to always display data for Manager Type = 'IP' regardless of what manager type is selected from the filter.&amp;nbsp; A few of has have looked at this, but we haven't figured out what's missing.&lt;/P&gt;&lt;P&gt;Any thoughts?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;[Manager Type]={'IP'}&amp;gt;}&lt;BR /&gt;Aggr({&amp;lt;[Manager Type]={'IP'}&amp;gt;}&lt;BR /&gt;if(&lt;BR /&gt;(Rank(Total -&lt;BR /&gt;aggr(Count({&amp;lt;[Manager Type]={'IP'}&amp;gt;} [Hospital Account Id]),[In Progress Laborlytics Name])&lt;BR /&gt;/&lt;BR /&gt;aggr(sum({&amp;lt;[Manager Type]={'IP'}&amp;gt;} [Productive Hours]),[In Progress Laborlytics Name]),1)&lt;BR /&gt;/&lt;BR /&gt;count({&amp;lt;[Manager Type]={'IP'}&amp;gt;} total [In Progress Laborlytics Name]))&lt;BR /&gt;&amp;gt; 0 and&lt;BR /&gt;(Rank(Total -&lt;BR /&gt;aggr(Count({&amp;lt;[Manager Type]={'IP'}&amp;gt;} [Hospital Account Id]),[In Progress Laborlytics Name])&lt;BR /&gt;/&lt;BR /&gt;aggr(sum({&amp;lt;[Manager Type]={'IP'}&amp;gt;} [Productive Hours]),[In Progress Laborlytics Name]),1)&lt;BR /&gt;/&lt;BR /&gt;count({&amp;lt;[Manager Type]={'IP'}&amp;gt;} total [In Progress Laborlytics Name]))&lt;BR /&gt;&amp;lt;=.10,&lt;BR /&gt;count({&amp;lt;[Manager Type]={'IP'}&amp;gt;} [In Progress Laborlytics Name])&lt;BR /&gt;)&lt;BR /&gt;,[In Progress Laborlytics Name]&lt;BR /&gt;,[Manager Type]&lt;BR /&gt;,[In Progress Coder Manager]&lt;BR /&gt;))&lt;/P&gt;</description>
      <pubDate>Fri, 02 Apr 2021 07:58:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-analysis-is-being-ignored-when-using-the-RANK-function/m-p/1595810#M63117</guid>
      <dc:creator>scottmc68</dc:creator>
      <dc:date>2021-04-02T07:58:50Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis is being ignored when using the RANK function</title>
      <link>https://community.qlik.com/t5/App-Development/Set-analysis-is-being-ignored-when-using-the-RANK-function/m-p/1596538#M63118</link>
      <description>You need to add a few more {&amp;lt;[Manager Type]={'IP'}&amp;gt;} for your aggr&lt;BR /&gt;aggr({&amp;lt;[Manager Type]={'IP'}&amp;gt;} Count ...&lt;BR /&gt;aggr({&amp;lt;[Manager Type]={'IP'}&amp;gt;}  sum ..&lt;BR /&gt;to ignore selections in all of the aggregations</description>
      <pubDate>Thu, 27 Jun 2019 04:15:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-analysis-is-being-ignored-when-using-the-RANK-function/m-p/1596538#M63118</guid>
      <dc:creator>Lisa_P</dc:creator>
      <dc:date>2019-06-27T04:15:27Z</dc:date>
    </item>
  </channel>
</rss>

