<?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 - given a subset of users, count users in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-analysis-given-a-subset-of-users-count-users/m-p/1042032#M465937</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You probably know the white / green / grey colors in QV list boxes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The p() functions work like retrieving the white colored UserID when you make selections HitType = {Scrolling}, MaxScroll -= {0} resp. HitType = {Click}. So you are retrieving two sets for UserID, then intersect these two sets using the intersection operator *.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically it's just translating your requirement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"Basically I need users who scrolled over 0 (easy =count({&amp;lt;HitType = {Scrolling}, MaxScroll -= {0}&amp;gt;}distinct UserId)) and &lt;EM&gt;of those users &lt;/EM&gt;how many clicked. I'm not sure how to go about doing this."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;into QV syntax:&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 29 Feb 2016 20:04:00 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2016-02-29T20:04:00Z</dc:date>
    <item>
      <title>Set analysis - given a subset of users, count users</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-given-a-subset-of-users-count-users/m-p/1042029#M465934</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm looking to write a set analysis that counts a number of users from a subset of users.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's the data I'm working with:&lt;/P&gt;&lt;P&gt;MaxScroll only populates if HitType is 'Scroll'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid #000000; width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;UserId&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Page&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;HitType&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;MaxScroll&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;&lt;P&gt;1&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;www.blah.com/blah1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Scroll&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;www.blah.com&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Scroll&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;0.25&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;www.blah.com&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Click&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;-&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;3&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;www.blah.com/blah2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Scroll&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;0.50&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;4&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;www.blah.com/blah&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Scroll&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;0.75&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;4&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;www.blah.com/blah&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Click&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;-&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;5&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;www.blah.com/blah3&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Scroll&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;0.25&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to count UserId's of users who scrolled more than 0, and who also clicked.&lt;/P&gt;&lt;P&gt;count({&amp;lt;HitType = {Scroll, Click}, MaxScroll -= {0}&amp;gt;}distinct UserId) does not work, since MaxScroll is null in cases of 'Click' HitType, so it returns 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically I need users who scrolled over 0 (easy =count({&amp;lt;HitType = {Scrolling}, MaxScroll -= {0}&amp;gt;}distinct UserId)) and &lt;EM&gt;of those users &lt;/EM&gt;how many clicked. I'm not sure how to go about doing this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Feb 2016 19:57:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-given-a-subset-of-users-count-users/m-p/1042029#M465934</guid>
      <dc:creator />
      <dc:date>2016-02-26T19:57:23Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis - given a subset of users, count users</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-given-a-subset-of-users-count-users/m-p/1042030#M465935</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Count({&amp;lt;UserId = p({&amp;lt;HitType = {Scrolling}, MaxScroll -= {0}&amp;gt;})*p({&amp;lt;HitType = {Click}&amp;gt;}) &amp;gt;} DISTINCT UserId)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Feb 2016 20:38:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-given-a-subset-of-users-count-users/m-p/1042030#M465935</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-02-26T20:38:06Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis - given a subset of users, count users</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-given-a-subset-of-users-count-users/m-p/1042031#M465936</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That worked, thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would you mind explaining why that worked? I've read about the p() function, but I'm not sure how it's working in this case.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Feb 2016 14:32:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-given-a-subset-of-users-count-users/m-p/1042031#M465936</guid>
      <dc:creator />
      <dc:date>2016-02-29T14:32:28Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis - given a subset of users, count users</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-given-a-subset-of-users-count-users/m-p/1042032#M465937</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You probably know the white / green / grey colors in QV list boxes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The p() functions work like retrieving the white colored UserID when you make selections HitType = {Scrolling}, MaxScroll -= {0} resp. HitType = {Click}. So you are retrieving two sets for UserID, then intersect these two sets using the intersection operator *.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically it's just translating your requirement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"Basically I need users who scrolled over 0 (easy =count({&amp;lt;HitType = {Scrolling}, MaxScroll -= {0}&amp;gt;}distinct UserId)) and &lt;EM&gt;of those users &lt;/EM&gt;how many clicked. I'm not sure how to go about doing this."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;into QV syntax:&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Feb 2016 20:04:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-given-a-subset-of-users-count-users/m-p/1042032#M465937</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-02-29T20:04:00Z</dc:date>
    </item>
  </channel>
</rss>

