<?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: Use additional filters to refine results where Count = zero in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Use-additional-filters-to-refine-results-where-Count-zero/m-p/654493#M473810</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count({$&amp;lt;Year=, Month=, [Banker Name]={"=COUNT({$&amp;lt;Year=, Month=&amp;gt;}[Request Id])=0"}&amp;gt;} 1)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 20 Oct 2014 18:45:35 GMT</pubDate>
    <dc:creator>gmoraleswit</dc:creator>
    <dc:date>2014-10-20T18:45:35Z</dc:date>
    <item>
      <title>Use additional filters to refine results where Count = zero</title>
      <link>https://community.qlik.com/t5/QlikView/Use-additional-filters-to-refine-results-where-Count-zero/m-p/654487#M473804</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is a follow on from feedback in discussion &lt;A href="https://community.qlik.com/thread/136575"&gt;Exclude Results from Other Field in Select Excluded&lt;/A&gt;&amp;nbsp; and &lt;A _jive_internal="true" data-containerid="2053" data-containertype="14" data-objectid="136200" data-objecttype="1" href="https://community.qlik.com/thread/136200" style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3778c7;"&gt;Set Analysis: Show Excluded and Refine Results&lt;/A&gt;. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have attached a sample QVD. I am convinced that the solution here is really quite simple but it escapes me. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to create a list of bankers where they have not done any work for my team. I have 2 data sources, 1 a list of all work by Request Id, with additional fields of banker name, year and month of work. The second source is a list of all bankers and the region they work in. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created a pivot table with an expression of IF(COUNT({$&amp;lt;Month=,Year=,[Banker Region]=&amp;gt;} [Request Id])&amp;lt;1,'1','0')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Without any filters, this expression returns the result of 1 for any bankers who have 0 request IDs in my first source (list of work) and 0 where they have done work. I then use exclude zero values in presentation tab to remove those bankers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem I face is when I try to further refine the results, by selecting a particular region or year or month. The list of 'not worked' is fixed and does not change. I believe this is the impact of the $&amp;lt;[field]=&amp;gt; syntax. If I remove this and just use the If with no set analysis, the result is correct with no selection for year / month etc, but as soon as I make a selection, e.g. region = MET, then all bankers from all regions except MET are shown.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Oct 2014 16:14:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-additional-filters-to-refine-results-where-Count-zero/m-p/654487#M473804</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-10-17T16:14:42Z</dc:date>
    </item>
    <item>
      <title>Re: Use additional filters to refine results where Count = zero</title>
      <link>https://community.qlik.com/t5/QlikView/Use-additional-filters-to-refine-results-where-Count-zero/m-p/654488#M473805</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count({$&amp;lt;[Banker Name]={"=COUNT([Request Id])=0"}&amp;gt;} 1)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Oct 2014 20:13:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-additional-filters-to-refine-results-where-Count-zero/m-p/654488#M473805</guid>
      <dc:creator>gmoraleswit</dc:creator>
      <dc:date>2014-10-17T20:13:34Z</dc:date>
    </item>
    <item>
      <title>Re: Use additional filters to refine results where Count = zero</title>
      <link>https://community.qlik.com/t5/QlikView/Use-additional-filters-to-refine-results-where-Count-zero/m-p/654489#M473806</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try count({1&amp;lt;[Banker Name]=e({&amp;lt;[Request Id]={'*'}&amp;gt;}[Banker Name])&amp;gt;}1)&lt;/P&gt;&lt;P&gt;See attached qvw.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 18 Oct 2014 18:00:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-additional-filters-to-refine-results-where-Count-zero/m-p/654489#M473806</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2014-10-18T18:00:48Z</dc:date>
    </item>
    <item>
      <title>Re: Use additional filters to refine results where Count = zero</title>
      <link>https://community.qlik.com/t5/QlikView/Use-additional-filters-to-refine-results-where-Count-zero/m-p/654490#M473807</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks &lt;A href="https://community.qlik.com/qlik-users/34814"&gt;Gabriela Morales&lt;/A&gt; but that did not work exactly as I was hoping. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Seems to be fine when you filter a region, but any additional filters cause zero results. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g. If I select UK there are 5 bankers. A, B and C have done work, H and I have not. &lt;/P&gt;&lt;P&gt;If I then look at 2014 only for year, the result = 0, whereas actually H and I have also not done any work in 2014. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think this is the tricky part as I want to overlay those two (and there could be others) on top of the region selection. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Oct 2014 16:39:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-additional-filters-to-refine-results-where-Count-zero/m-p/654490#M473807</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-10-20T16:39:04Z</dc:date>
    </item>
    <item>
      <title>Re: Use additional filters to refine results where Count = zero</title>
      <link>https://community.qlik.com/t5/QlikView/Use-additional-filters-to-refine-results-where-Count-zero/m-p/654491#M473808</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks &lt;A href="https://community.qlik.com/qlik-users/96544"&gt;Gysbert Wassenaar&lt;/A&gt; but this did not work as expected. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using your file, if I select a region (e.g. UK team), the no work completed box contains all bankers that have not done any work, regardless of the region they come from. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to be able to show just those bankers from that region who have not done any work. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Additionally, there is a time component - my real data goes back 3 years and in practice it is only 2014 we are interested in. Sometime we want to look at a case like: Who has worked with us in the last 3 months of 2014 who is in the UK time, with the reverse of that in who out of those UK team bankers has not worked with us in that 3 month period in 2014. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Oct 2014 16:43:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-additional-filters-to-refine-results-where-Count-zero/m-p/654491#M473808</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-10-20T16:43:40Z</dc:date>
    </item>
    <item>
      <title>Re: Use additional filters to refine results where Count = zero</title>
      <link>https://community.qlik.com/t5/QlikView/Use-additional-filters-to-refine-results-where-Count-zero/m-p/654492#M473809</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perhaps this one then: &lt;/P&gt;&lt;P&gt;count({1&amp;lt;[Banker Region]=p([Banker Region]), [Banker Name]=e({&amp;lt;[Request Id]={'*'}&amp;gt;}[Banker Name])&amp;gt;}1)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Oct 2014 18:44:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-additional-filters-to-refine-results-where-Count-zero/m-p/654492#M473809</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2014-10-20T18:44:06Z</dc:date>
    </item>
    <item>
      <title>Re: Use additional filters to refine results where Count = zero</title>
      <link>https://community.qlik.com/t5/QlikView/Use-additional-filters-to-refine-results-where-Count-zero/m-p/654493#M473810</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count({$&amp;lt;Year=, Month=, [Banker Name]={"=COUNT({$&amp;lt;Year=, Month=&amp;gt;}[Request Id])=0"}&amp;gt;} 1)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Oct 2014 18:45:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-additional-filters-to-refine-results-where-Count-zero/m-p/654493#M473810</guid>
      <dc:creator>gmoraleswit</dc:creator>
      <dc:date>2014-10-20T18:45:35Z</dc:date>
    </item>
    <item>
      <title>Re: Use additional filters to refine results where Count = zero</title>
      <link>https://community.qlik.com/t5/QlikView/Use-additional-filters-to-refine-results-where-Count-zero/m-p/654494#M473811</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the help Gabriela. The code that Gysbert recommended below solved my problem but many thanks for your help. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Oct 2014 11:09:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-additional-filters-to-refine-results-where-Count-zero/m-p/654494#M473811</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-10-21T11:09:27Z</dc:date>
    </item>
    <item>
      <title>Re: Use additional filters to refine results where Count = zero</title>
      <link>https://community.qlik.com/t5/QlikView/Use-additional-filters-to-refine-results-where-Count-zero/m-p/654495#M473812</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perfect! Thanks &lt;A href="https://community.qlik.com/qlik-users/96544"&gt;Gysbert Wassenaar&lt;/A&gt; - I have been scratching my head on this one for weeks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can I just get one last bit of help in understanding what is going on here. My assumed logic below: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;count({1&amp;lt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // count for all possible values&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;[Banker Region]=p([Banker Region]),&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //where possible values (P) are in the banker region selection (enforces scope to be banker region only)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;[Banker Name]=e({&amp;lt;[Request Id]={'*'}&amp;gt;}&amp;nbsp; //where banker name is different (E) from current selected request Ids (effectively means the request Ids associated with the current year / month / any other filter)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;[Banker Name])&amp;gt; //count of the banker name&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;}1) // not sure what this part does? &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; 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: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Ben&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Oct 2014 11:14:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-additional-filters-to-refine-results-where-Count-zero/m-p/654495#M473812</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-10-21T11:14:31Z</dc:date>
    </item>
    <item>
      <title>Re: Use additional filters to refine results where Count = zero</title>
      <link>https://community.qlik.com/t5/QlikView/Use-additional-filters-to-refine-results-where-Count-zero/m-p/654496#M473813</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;count(&lt;/STRONG&gt; --just an aggregation function to return a number other than zero so the row won't be suppressed&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG&gt;{1&amp;lt;&lt;/STRONG&gt; --ignore all current selections, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG&gt;[Banker Region]=p([Banker Region])&lt;/STRONG&gt; --but do use the current selection in the Banker Region field&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG&gt;[Banker Name]=e({&amp;lt;[Request Id]={'*'}&amp;gt;} [Banker Name])&lt;/STRONG&gt; --and exclude the bankers that given the current selection do have a request id.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG&gt;1)&lt;/STRONG&gt; --count 1 or 2 or any number will do as will any aggregation function like sum, max, min, avg...etc.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Oct 2014 11:40:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-additional-filters-to-refine-results-where-Count-zero/m-p/654496#M473813</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2014-10-21T11:40:31Z</dc:date>
    </item>
    <item>
      <title>Re: Use additional filters to refine results where Count = zero</title>
      <link>https://community.qlik.com/t5/QlikView/Use-additional-filters-to-refine-results-where-Count-zero/m-p/654497#M473814</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Top man – many thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Oct 2014 11:43:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-additional-filters-to-refine-results-where-Count-zero/m-p/654497#M473814</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-10-21T11:43:02Z</dc:date>
    </item>
  </channel>
</rss>

