<?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 and operator in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-analysis-and-operator/m-p/1049062#M352448</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 would like to count the distinct number of sessions where trader A and B &lt;EM&gt;both&lt;/EM&gt; participated on a Tuesday. Should the set analysis look like this? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count({&amp;lt;SessionId = p({&amp;lt;[TraderName] = {'Mark'}&amp;gt;}) * p({&amp;lt;[TraderName] = {'Bob'}&amp;gt;}),Day={'Tues'}&amp;gt;} distinct SessionId)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 18 Apr 2016 11:06:57 GMT</pubDate>
    <dc:creator>sifatnabil</dc:creator>
    <dc:date>2016-04-18T11:06:57Z</dc:date>
    <item>
      <title>Set analysis and operator</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-and-operator/m-p/1049062#M352448</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 would like to count the distinct number of sessions where trader A and B &lt;EM&gt;both&lt;/EM&gt; participated on a Tuesday. Should the set analysis look like this? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count({&amp;lt;SessionId = p({&amp;lt;[TraderName] = {'Mark'}&amp;gt;}) * p({&amp;lt;[TraderName] = {'Bob'}&amp;gt;}),Day={'Tues'}&amp;gt;} distinct SessionId)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Apr 2016 11:06:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-and-operator/m-p/1049062#M352448</guid>
      <dc:creator>sifatnabil</dc:creator>
      <dc:date>2016-04-18T11:06:57Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis and operator</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-and-operator/m-p/1049063#M352449</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be like:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;count({&amp;lt;[TraderName] = {'Mark'},&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;Day={'Tues'}&lt;/STRONG&gt;&lt;/SPAN&gt;&amp;gt; *&amp;lt;[TraderName] = {'Bob'}&amp;gt;},Day={'Tues'}&amp;gt;} distinct SessionId)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Apr 2016 11:26:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-and-operator/m-p/1049063#M352449</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2016-04-18T11:26:24Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis and operator</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-and-operator/m-p/1049064#M352450</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What about this?&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; font-size: 13px;"&gt;&lt;STRONG&gt;Count({&amp;lt;SessionId = p({&amp;lt;[TraderName] = {'Mark', 'Bob'}, &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Day={'Tues'}&lt;/SPAN&gt;&amp;gt;})&amp;gt;} distinct SessionId)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Apr 2016 11:29:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-and-operator/m-p/1049064#M352450</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-04-18T11:29:30Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis and operator</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-and-operator/m-p/1049065#M352451</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A href="https://community.qlik.com/qlik-users/171708"&gt;sunindia&lt;/A&gt;‌, this is close, but it's doing Mark OR Bob. How can we make it count sessions for Mark AND Bob ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Apr 2016 12:58:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-and-operator/m-p/1049065#M352451</guid>
      <dc:creator>sifatnabil</dc:creator>
      <dc:date>2016-04-18T12:58:52Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis and operator</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-and-operator/m-p/1049066#M352452</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/people/tresesco"&gt;tresesco&lt;/A&gt;‌ expression did not work as well?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Apr 2016 13:01:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-and-operator/m-p/1049066#M352452</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-04-18T13:01:45Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis and operator</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-and-operator/m-p/1049067#M352453</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, that one seems to return zero. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Apr 2016 13:02:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-and-operator/m-p/1049067#M352453</guid>
      <dc:creator>sifatnabil</dc:creator>
      <dc:date>2016-04-18T13:02:40Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis and operator</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-and-operator/m-p/1049068#M352454</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What about this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Count({&amp;lt;SessionId = p({&amp;lt;[TraderName] = {'Mark'}, &lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;Day={'Tues'}&lt;/SPAN&gt;&amp;gt;}) * &lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;p({&amp;lt;[TraderName] = {'Bob'}, &lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;Day={'Tues'}&lt;/SPAN&gt;&amp;gt;})&lt;/STRONG&gt;&amp;gt;} distinct SessionId)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Apr 2016 13:05:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-and-operator/m-p/1049068#M352454</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-04-18T13:05:51Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis and operator</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-and-operator/m-p/1049069#M352455</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think it would be better to create a sample either by some one to see the results &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/blush.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Apr 2016 13:13:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-and-operator/m-p/1049069#M352455</guid>
      <dc:creator>kkkumar82</dc:creator>
      <dc:date>2016-04-18T13:13:19Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis and operator</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-and-operator/m-p/1049070#M352456</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, I just checked the data and it looks like both these variations work: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count({&amp;lt;SessionId=p({&amp;lt;[TraderName] = {'Bob'},Day={'Tue'}&amp;gt;})*p({&amp;lt;TraderName={'Mark'},Day={'Tue'}&amp;gt;})&amp;gt;}distinct &lt;SPAN style="font-size: 13.3333330154419px;"&gt;Session&lt;/SPAN&gt;Id)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OR &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count({&amp;lt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Session&lt;/SPAN&gt;Id = p({&amp;lt;[TraderName] = {'Bob'}&amp;gt;}) * p({&amp;lt;[TraderName] = {'Mark'}&amp;gt;}),Day={'Tue'}&amp;gt;} distinct &lt;SPAN style="font-size: 13.3333330154419px;"&gt;Session&lt;/SPAN&gt;Id)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea why tresesco's doesn't work? Is it because TraderName itself cannot be 2 different names simultaneously?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Apr 2016 13:16:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-and-operator/m-p/1049070#M352456</guid>
      <dc:creator>sifatnabil</dc:creator>
      <dc:date>2016-04-18T13:16:14Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis and operator</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-and-operator/m-p/1049071#M352457</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, you are right, a single row of data cannot have both TraderName on it. But a single SessionId can have multiple rows where one contains Mark and other contains Bob. He might have forgot to add SessionId and the p.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Apr 2016 13:20:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-and-operator/m-p/1049071#M352457</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-04-18T13:20:27Z</dc:date>
    </item>
  </channel>
</rss>

