<?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: Set analysis best practice in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-analysis-best-practice/m-p/664788#M1061623</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Both expressions will count distinct sessionIDs with TestAccount = False,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The first will exclude Usernames like TEST and Firm like TEST.&lt;/P&gt;&lt;P&gt;The second expression in also counting distinct TestAccounts that are false, but will include Username like Test and Frim like TEST.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 22 Sep 2014 16:26:48 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-09-22T16:26:48Z</dc:date>
    <item>
      <title>Set analysis best practice</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-best-practice/m-p/664786#M1061621</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What exactly is the difference between using the - sign as a set operator in a set analysis and using -= as a set identifier.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, what is the difference between these two expressions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;COUNT(DISTINCT {$&amp;lt;TestAccount={'false'},UserName-={'*test*'},Firm-={'*TEST*'}&amp;gt;}SessionId)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;COUNT(DISTINCT {$&amp;lt;TestAccount={'false'}&amp;gt;-&amp;lt;UserName={'*test*'},Firm={'*TEST*'}&amp;gt;}SessionId)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please don't copy and paste help text from the application as it is not hugely helpful. If anyone could explain it in plain english, that would be be great!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks very much&lt;/P&gt;&lt;P&gt;Alex&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Sep 2014 16:12:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-best-practice/m-p/664786#M1061621</guid>
      <dc:creator />
      <dc:date>2014-09-22T16:12:10Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis best practice</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-best-practice/m-p/664787#M1061622</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;UserName-={'*test*'}&amp;nbsp; - &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Select Count(Distinct SessionId) from table where &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;TestAccount='false' and &lt;/SPAN&gt;UserName Not Like '*test*' &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;TestAccount={'false'}&amp;gt;-&amp;lt;UserName={'*test*'}&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;Select &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Count(Distinct SessionId) from (&lt;/SPAN&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;Select SessionId from table where &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;TestAccount='false'&lt;/SPAN&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;Minus&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;Select SessionId from table where &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;UserName like '*test*' )&lt;/SPAN&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;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Sep 2014 16:19:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-best-practice/m-p/664787#M1061622</guid>
      <dc:creator>anbu1984</dc:creator>
      <dc:date>2014-09-22T16:19:29Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis best practice</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-best-practice/m-p/664788#M1061623</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Both expressions will count distinct sessionIDs with TestAccount = False,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The first will exclude Usernames like TEST and Firm like TEST.&lt;/P&gt;&lt;P&gt;The second expression in also counting distinct TestAccounts that are false, but will include Username like Test and Frim like TEST.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Sep 2014 16:26:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-best-practice/m-p/664788#M1061623</guid>
      <dc:creator />
      <dc:date>2014-09-22T16:26:48Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis best practice</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-best-practice/m-p/664789#M1061624</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alex,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would take a look at this thread maybe, will give you a good overview of what the signage is doing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/docs/DOC-4951"&gt;http://community.qlik.com/docs/DOC-4951&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope that helps&lt;/P&gt;&lt;P&gt;Joe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Sep 2014 16:28:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-best-practice/m-p/664789#M1061624</guid>
      <dc:creator />
      <dc:date>2014-09-22T16:28:47Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis best practice</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-best-practice/m-p/664790#M1061625</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;Check this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-4708"&gt;Romancing with Set Analysis&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;ASHFAQ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Sep 2014 16:42:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-best-practice/m-p/664790#M1061625</guid>
      <dc:creator>ashfaq_haseeb</dc:creator>
      <dc:date>2014-09-22T16:42:17Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis best practice</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-best-practice/m-p/664791#M1061626</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alex,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; You have to be careful interchanging the two. I have attached a difference in your example depending on the kind of data you might have. The counts can be different. Here is an image explaining what happens (also attached the qvw):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="SetAnalysisImage.PNG.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/67359_SetAnalysisImage.PNG.png" style="width: 620px; height: 355px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Sep 2014 17:29:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-best-practice/m-p/664791#M1061626</guid>
      <dc:creator>jerem1234</dc:creator>
      <dc:date>2014-09-22T17:29:47Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis best practice</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-best-practice/m-p/664792#M1061627</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Jeremiah. That was very clearly explained. Exactly what i was looking for!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had overlooked the fact that the expression below meant AND and not OR&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;&amp;lt;UserName={'*test*'},Firm={'*TEST*'}&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Sep 2014 07:49:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-best-practice/m-p/664792#M1061627</guid>
      <dc:creator />
      <dc:date>2014-09-23T07:49:06Z</dc:date>
    </item>
  </channel>
</rss>

