<?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 Different results in set analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Different-results-in-set-analysis/m-p/914435#M317204</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using a set analysis statement like the following in a QlikView document.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am finding that if there are NO records where [Scope State] has a non-null value, then I get the entire list of records, where I would expect NO records returned.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, if I have at least 1 record where [Scope State] has a non-null value, then I get just the records I would expect, records where [Scope State] is set to a non-null value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas on this?&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial',sans-serif; color: black;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial',sans-serif; color: blue;"&gt;Concat&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial',sans-serif; color: black;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial',sans-serif; color: maroon;"&gt;[Scope State]&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial',sans-serif; color: black;"&gt; = {&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial',sans-serif; color: maroon;"&gt;"*"&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial',sans-serif; color: black;"&gt;} &amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial',sans-serif; color: maroon;"&gt;[Scope Name]&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial',sans-serif; color: black;"&gt;, '&amp;nbsp;&amp;nbsp;&amp;nbsp; ') &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 06 Aug 2015 19:10:49 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-08-06T19:10:49Z</dc:date>
    <item>
      <title>Different results in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Different-results-in-set-analysis/m-p/914435#M317204</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using a set analysis statement like the following in a QlikView document.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am finding that if there are NO records where [Scope State] has a non-null value, then I get the entire list of records, where I would expect NO records returned.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, if I have at least 1 record where [Scope State] has a non-null value, then I get just the records I would expect, records where [Scope State] is set to a non-null value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas on this?&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial',sans-serif; color: black;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial',sans-serif; color: blue;"&gt;Concat&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial',sans-serif; color: black;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial',sans-serif; color: maroon;"&gt;[Scope State]&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial',sans-serif; color: black;"&gt; = {&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial',sans-serif; color: maroon;"&gt;"*"&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial',sans-serif; color: black;"&gt;} &amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial',sans-serif; color: maroon;"&gt;[Scope Name]&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial',sans-serif; color: black;"&gt;, '&amp;nbsp;&amp;nbsp;&amp;nbsp; ') &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Aug 2015 19:10:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Different-results-in-set-analysis/m-p/914435#M317204</guid>
      <dc:creator />
      <dc:date>2015-08-06T19:10:49Z</dc:date>
    </item>
    <item>
      <title>Re: Different results in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Different-results-in-set-analysis/m-p/914436#M317205</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Fred,&lt;/P&gt;&lt;P&gt;You may want to filter out null values in your load script, or at least flag them like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(isnull([Scope State]),0,[Scope State]) as [Scope State]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then in your set analysis use&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; font-family: Arial, sans-serif; color: black;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: Arial, sans-serif; color: blue;"&gt;Concat&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: Arial, sans-serif; color: black;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: Arial, sans-serif; color: maroon;"&gt;[Scope State]&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: Arial, sans-serif; color: black;"&gt; -= {&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: Arial, sans-serif; color: maroon;"&gt;0&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: Arial, sans-serif; color: black;"&gt;} &amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: Arial, sans-serif; color: maroon;"&gt;[Scope Name]&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: Arial, sans-serif; color: black;"&gt;, '&amp;nbsp;&amp;nbsp;&amp;nbsp; ')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your statement is showing different results because when there are no values in Scope State, Qlikview doesn't have anything to select in your set analysis so it doesn't filter on anything.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does this help you?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Aug 2015 19:27:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Different-results-in-set-analysis/m-p/914436#M317205</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-08-06T19:27:35Z</dc:date>
    </item>
    <item>
      <title>Re: Different results in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Different-results-in-set-analysis/m-p/914437#M317206</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/105459"&gt;Napac1458&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your answer clarifies why I was getting the strange results.&amp;nbsp; And I was able to implement a solution based on your code sample.&amp;nbsp; So thank you very much.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fred&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Aug 2015 22:31:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Different-results-in-set-analysis/m-p/914437#M317206</guid>
      <dc:creator />
      <dc:date>2015-08-06T22:31:56Z</dc:date>
    </item>
  </channel>
</rss>

