<?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 exclude null in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-analysis-exclude-null/m-p/288598#M496909</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Shall I report this as a bug?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 02 Nov 2011 10:03:58 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-11-02T10:03:58Z</dc:date>
    <item>
      <title>Set analysis exclude null</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-exclude-null/m-p/288596#M496907</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to create a set analysis and exclude null records on a field. Something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Sum({$&amp;lt;Group -= Null()&amp;gt;} Amount)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found something saying to do it like the following line, but the editor still gives me a curly red underlining.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Sum({$&amp;lt;Group={*}&amp;gt;} Amount)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;Could someone give me the right way to do this?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;I'm working with QV version 11 RC.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Nov 2011 17:59:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-exclude-null/m-p/288596#M496907</guid>
      <dc:creator />
      <dc:date>2011-11-01T17:59:06Z</dc:date>
    </item>
    <item>
      <title>Set analysis exclude null</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-exclude-null/m-p/288597#M496908</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, Some time it used to say the expression is error but still it work fine.&lt;/P&gt;&lt;P&gt;Just go ahead and check the result for the expressions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Srini.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Nov 2011 18:08:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-exclude-null/m-p/288597#M496908</guid>
      <dc:creator>rrsrini2907</dc:creator>
      <dc:date>2011-11-01T18:08:07Z</dc:date>
    </item>
    <item>
      <title>Set analysis exclude null</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-exclude-null/m-p/288598#M496909</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Shall I report this as a bug?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Nov 2011 10:03:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-exclude-null/m-p/288598#M496909</guid>
      <dc:creator />
      <dc:date>2011-11-02T10:03:58Z</dc:date>
    </item>
    <item>
      <title>Set analysis exclude null</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-exclude-null/m-p/288599#M496910</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; try this expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; Sum({$&amp;lt;Group -= {""}&amp;gt;}Amount)&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kaushik Solanki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Nov 2011 10:06:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-exclude-null/m-p/288599#M496910</guid>
      <dc:creator>kaushiknsolanki</dc:creator>
      <dc:date>2011-11-02T10:06:12Z</dc:date>
    </item>
    <item>
      <title>Set analysis exclude null</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-exclude-null/m-p/288600#M496911</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kaushik,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;QV still gives a syntax error for your expression. As Srini mentioned the code is working, but the syntax error is annoying.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Nov 2011 15:17:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-exclude-null/m-p/288600#M496911</guid>
      <dc:creator />
      <dc:date>2011-11-02T15:17:22Z</dc:date>
    </item>
    <item>
      <title>Set analysis exclude null</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-exclude-null/m-p/288601#M496912</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think this is a known bug of the syntax checker. If you don't like the misleading false syntax error, use something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Sum({$&amp;lt;Group = Group - {Value}&amp;gt;}Amount)&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Nov 2011 15:28:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-exclude-null/m-p/288601#M496912</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-11-02T15:28:12Z</dc:date>
    </item>
    <item>
      <title>Set analysis exclude null</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-exclude-null/m-p/288602#M496913</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's kind of Bug.&lt;/P&gt;&lt;P&gt;Since they didn't mention that as a correct syntax.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can just inform to Qlikview Support.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Srini.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Nov 2011 16:37:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-exclude-null/m-p/288602#M496913</guid>
      <dc:creator>rrsrini2907</dc:creator>
      <dc:date>2011-11-02T16:37:25Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis exclude null</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-exclude-null/m-p/288603#M496914</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;EM style="font-family: trebuchet ms,geneva;"&gt;Hi,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-family: trebuchet ms,geneva;"&gt;I would use somthing like this...&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #000080;"&gt;&lt;EM style="font-family: trebuchet ms,geneva;"&gt;Sum({$&amp;lt;Group -= "=Null()"&amp;gt;} Amount)&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM style="font-family: trebuchet ms,geneva;"&gt;Cheers - DV&lt;BR /&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Nov 2011 14:57:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-exclude-null/m-p/288603#M496914</guid>
      <dc:creator>IAMDV</dc:creator>
      <dc:date>2011-11-04T14:57:27Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis exclude null</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-exclude-null/m-p/288604#M496915</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There's no way to select nulls or unselect nulls, this is what you should do, select everything else&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #636363; font-family: Arial;"&gt;&lt;STRONG style="color: #000080;"&gt;&lt;EM style="font-family: 'trebuchet ms', geneva;"&gt;Sum({$&amp;lt;Group = {'*'}&amp;gt;} Amount)&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #000080;"&gt;&lt;EM style="font-family: 'trebuchet ms', geneva;"&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Nov 2011 18:11:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-exclude-null/m-p/288604#M496915</guid>
      <dc:creator>danielrozental</dc:creator>
      <dc:date>2011-11-04T18:11:08Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis exclude null</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-exclude-null/m-p/288605#M496916</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Daniel - Not sure...but my expression works and it excludes nulls. I have used the above expression many times with QV SR7.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks -DV&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 05 Nov 2011 02:09:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-exclude-null/m-p/288605#M496916</guid>
      <dc:creator>IAMDV</dc:creator>
      <dc:date>2011-11-05T02:09:47Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis exclude null</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-exclude-null/m-p/288606#M496917</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think I know the right syntax.&lt;/P&gt;&lt;P&gt;If you want to choose only NULL values you should use:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum(&amp;nbsp; {$ &amp;lt;Group&amp;nbsp; = {$(=&lt;STRONG&gt;list_of_groups_with_NULL&lt;/STRONG&gt;)}&amp;gt; } Amount&amp;nbsp; )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where&lt;STRONG&gt; list_of_groups_with_NULL&lt;/STRONG&gt; is generated like this:&lt;/P&gt;&lt;P&gt;Concat( DISTINCT TOTAL If(IsNull(Group), Chr(39) &amp;amp; Group &amp;amp; Chr(39)), ', ')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now you can just use this statement with "-" to choose all groups without NULLs:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum(&amp;nbsp; {$ &amp;lt;Group&amp;nbsp; &lt;STRONG&gt; -&lt;/STRONG&gt;&amp;nbsp; = {$(=&lt;STRONG&gt;list_of_groups_with_NULL&lt;/STRONG&gt;)}&amp;gt; } Amount&amp;nbsp; )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jun 2012 08:04:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-exclude-null/m-p/288606#M496917</guid>
      <dc:creator />
      <dc:date>2012-06-15T08:04:04Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis exclude null</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-exclude-null/m-p/288607#M496918</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pawel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your solution works. We're using it to calculate the total sales amount for groups of stores, except some stores that don't have a storegroup assigned. I did it in this way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create a variable &lt;STRONG&gt;&lt;EM&gt;$StoresWithoutFormulaGroup &lt;/EM&gt;&lt;/STRONG&gt;with the expression:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;=Concat( DISTINCT TOTAL If(IsNull(StoreGroupFormulaCode), Chr(39) &amp;amp; StoreCode &amp;amp; Chr(39)), ', ')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The result of this variable expression is something like: &lt;EM&gt;'100','101','102','103'&lt;/EM&gt;. These are the storecodes without a storegroup.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have different storegroups and stores can only be assigned to 1 of these groups. For example: &lt;EM&gt;'Stores NL','Stores BE','Stores XL','Store in Store'&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;The stores we want to exclude are stores in non of these groups.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now create the following expression to summarize the sales per storegroup in a pivot table:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;=Sum( {&amp;lt; StoreCode -= {$(StoresWithoutFormulaGroup) } &amp;gt; } SalesAmount )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;And of course we can also select all storegroups to exclude the stores without a storegroup.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jun 2012 15:03:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-exclude-null/m-p/288607#M496918</guid>
      <dc:creator />
      <dc:date>2012-06-20T15:03:31Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis exclude null</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-exclude-null/m-p/288608#M496919</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could also try:&amp;nbsp;&amp;nbsp; Sum({$&amp;lt;Group -= {'=(NULL())'} &amp;gt;} Amount)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Oct 2015 10:55:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-exclude-null/m-p/288608#M496919</guid>
      <dc:creator />
      <dc:date>2015-10-09T10:55:34Z</dc:date>
    </item>
  </channel>
</rss>

