<?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 Multiple filters in set analysis? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Multiple-filters-in-set-analysis/m-p/360436#M133856</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm pretty new here so go easy on me!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Trying to run set analysis that runs a count distinct function, but that filters on two fields. While this should be easy, one of the filters needs to select null values, and another needs to filter on a value in a different field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a working solution to select the null values:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count({$-&amp;lt;[new] = -{}&amp;gt;} distinct [key])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But what I would like to have is something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count({-&amp;lt;[new] = -{}&amp;gt;}, [state] = {"APPS"}&amp;gt;} distinct [key])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I know this isn't correct due to this specific syntax required for nulls..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So a couple of questions: how would I create and expression that used 'not in' syntax in the first filter (select &amp;lt;&amp;gt; "No" instead of select Null.&amp;nbsp; Or, how can I embed these two types of filters into one expression?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this makes sense. Thanks in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 Mar 2012 17:25:05 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-03-20T17:25:05Z</dc:date>
    <item>
      <title>Multiple filters in set analysis?</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-filters-in-set-analysis/m-p/360436#M133856</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm pretty new here so go easy on me!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Trying to run set analysis that runs a count distinct function, but that filters on two fields. While this should be easy, one of the filters needs to select null values, and another needs to filter on a value in a different field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a working solution to select the null values:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count({$-&amp;lt;[new] = -{}&amp;gt;} distinct [key])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But what I would like to have is something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count({-&amp;lt;[new] = -{}&amp;gt;}, [state] = {"APPS"}&amp;gt;} distinct [key])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I know this isn't correct due to this specific syntax required for nulls..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So a couple of questions: how would I create and expression that used 'not in' syntax in the first filter (select &amp;lt;&amp;gt; "No" instead of select Null.&amp;nbsp; Or, how can I embed these two types of filters into one expression?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this makes sense. Thanks in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Mar 2012 17:25:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-filters-in-set-analysis/m-p/360436#M133856</guid>
      <dc:creator />
      <dc:date>2012-03-20T17:25:05Z</dc:date>
    </item>
    <item>
      <title>Multiple filters in set analysis?</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-filters-in-set-analysis/m-p/360437#M133857</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;[new] -= -{'No'}&amp;gt;}, [state] = {'APPS'}&amp;gt;} distinct [key])&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 May 2012 20:49:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-filters-in-set-analysis/m-p/360437#M133857</guid>
      <dc:creator />
      <dc:date>2012-05-16T20:49:11Z</dc:date>
    </item>
    <item>
      <title>Multiple filters in set analysis?</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-filters-in-set-analysis/m-p/360438#M133858</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Something like this should work:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count({&amp;lt;state={'APPS'},key={"=len(trim(new))=0"}&amp;gt;} distinct key)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will select rows where "state"=APPS and "new" is null.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vlad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 May 2012 17:05:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-filters-in-set-analysis/m-p/360438#M133858</guid>
      <dc:creator>vgutkovsky</dc:creator>
      <dc:date>2012-05-17T17:05:19Z</dc:date>
    </item>
    <item>
      <title>Multiple filters in set analysis?</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-filters-in-set-analysis/m-p/360439#M133859</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Another thing you could do is to transform this Null values on your script, and stating an especific value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example suppose your field (in which you want to select nulls) is called fNull&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(fNull = Null, 'nullField',fNull) as fNull&lt;/P&gt;&lt;P&gt;...etc...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This should make all null values equal to 'nullField', try diferent values depending on the field format(for example if it is a number try putting -1 or else)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;after that in the set analysis you won't need to look for nulls but for values equal to 'nullField' filling that spot where should be a null value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 May 2012 17:50:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-filters-in-set-analysis/m-p/360439#M133859</guid>
      <dc:creator />
      <dc:date>2012-05-17T17:50:06Z</dc:date>
    </item>
  </channel>
</rss>

