<?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 question - empty result set in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-question-empty-result-set/m-p/831332#M292565</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Example Data:&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/88426_pastedImage_0.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I want to display the count of Units with a status of 'OK' in a text box, I use:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;count&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;distinct&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; {&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;Status&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; = {'OK'}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;UnitNumber&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;)&amp;nbsp; and the result in the text box is 3&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;and it works fine. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;But - if the user were to click on the word 'Bad' in the above table box, the result in the text box remains at 3, when it should be 0.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;If the user were to click on the UnitNumber of 00003, it calculates correctly at 0&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 04 Jun 2015 18:12:59 GMT</pubDate>
    <dc:creator>theresaa</dc:creator>
    <dc:date>2015-06-04T18:12:59Z</dc:date>
    <item>
      <title>Set Analysis question - empty result set</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-question-empty-result-set/m-p/831332#M292565</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Example Data:&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/88426_pastedImage_0.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I want to display the count of Units with a status of 'OK' in a text box, I use:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;count&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;distinct&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; {&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;Status&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; = {'OK'}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;UnitNumber&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;)&amp;nbsp; and the result in the text box is 3&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;and it works fine. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;But - if the user were to click on the word 'Bad' in the above table box, the result in the text box remains at 3, when it should be 0.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;If the user were to click on the UnitNumber of 00003, it calculates correctly at 0&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jun 2015 18:12:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-question-empty-result-set/m-p/831332#M292565</guid>
      <dc:creator>theresaa</dc:creator>
      <dc:date>2015-06-04T18:12:59Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis question - empty result set</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-question-empty-result-set/m-p/831333#M292566</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this expression instead of the one you have.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Count(DISTINCT {&amp;lt;Status -= {'Bad'}&amp;gt;} UnitNumber) &lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jun 2015 18:37:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-question-empty-result-set/m-p/831333#M292566</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-06-04T18:37:58Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis question - empty result set</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-question-empty-result-set/m-p/831334#M292567</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;maybe&lt;/P&gt;&lt;P&gt;count(distinct {&amp;lt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;Status&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt; &lt;/SPAN&gt;= {'OK'&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;}&amp;gt;*&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;Status&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;=P(&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;Status&lt;/SPAN&gt;)&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333330154419px;"&gt;UnitNumber&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jun 2015 18:48:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-question-empty-result-set/m-p/831334#M292567</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2015-06-04T18:48:55Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis question - empty result set</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-question-empty-result-set/m-p/831335#M292568</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is the -= meaning NOT EQUAL?&amp;nbsp; It is working this way. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jun 2015 18:49:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-question-empty-result-set/m-p/831335#M292568</guid>
      <dc:creator>theresaa</dc:creator>
      <dc:date>2015-06-04T18:49:23Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis question - empty result set</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-question-empty-result-set/m-p/831336#M292569</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank You.&amp;nbsp; This solution works as well.&amp;nbsp; The 'P' suggests it looks for all possible values of Status?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jun 2015 18:52:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-question-empty-result-set/m-p/831336#M292569</guid>
      <dc:creator>theresaa</dc:creator>
      <dc:date>2015-06-04T18:52:25Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis question - empty result set</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-question-empty-result-set/m-p/831337#M292570</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;'-=' m&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;eans &lt;STRONG&gt;count&lt;/STRONG&gt; everywhere &lt;STRONG&gt;in your current selection&lt;/STRONG&gt; &lt;STRONG&gt;where Status is not 'Bad'&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jun 2015 18:52:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-question-empty-result-set/m-p/831337#M292570</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-06-04T18:52:55Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis question - empty result set</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-question-empty-result-set/m-p/831338#M292571</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;P possible, * intersection&lt;/P&gt;&lt;P&gt;more detail in the QlikView help or&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-4951"&gt;Set Analysis: syntaxes, examples&lt;/A&gt;‌ &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jun 2015 18:58:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-question-empty-result-set/m-p/831338#M292571</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2015-06-04T18:58:49Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis question - empty result set</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-question-empty-result-set/m-p/831339#M292572</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank You.&amp;nbsp; I will use your solution, because it is possible in our live data that there could be more than 2 status values, and your solution will also work in that situation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks very much again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jun 2015 19:02:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-question-empty-result-set/m-p/831339#M292572</guid>
      <dc:creator>theresaa</dc:creator>
      <dc:date>2015-06-04T19:02:51Z</dc:date>
    </item>
  </channel>
</rss>

