<?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 Using P in Set Analysis in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Using-P-in-Set-Analysis/m-p/1654225#M48880</link>
    <description>&lt;P&gt;Hey community,&lt;/P&gt;&lt;P&gt;Scenario:&lt;/P&gt;&lt;P&gt;I have a website that shows videos. Before entering the video, there is a pretest.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to find the amount of people who took the pretest and watched the segment. (I can't use an "if" statement as the fields are from different databases and the numbers come all messed up). I am trying to use the possible P into the equations and it has yet to work for me.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The fields are session_id,&amp;nbsp; quiz_type, and event_type.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Once again I need the count of distinct session_id's that took the pretest (quiz_type = 1) and played the video (event_type=33,34,35).&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the code I tried.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Count(${&amp;lt;session_id = P({&amp;lt;event_type={33,34,35}, quiz_type = {1} &amp;gt;} distinct session_id)&amp;gt;} distinct session_id)&lt;/P&gt;&lt;P&gt;It actually produces the same result as&amp;nbsp;&lt;/P&gt;&lt;P&gt;Count( distinct session_id)&lt;/P&gt;&lt;P&gt;which means something is wrong in here&amp;nbsp;${&amp;lt;session_id = P({&amp;lt;event_type={33,34,35}, quiz_type = {1} &amp;gt;} distinct session_id)&amp;gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help is greatly appreciated!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 03:55:32 GMT</pubDate>
    <dc:creator>Josh</dc:creator>
    <dc:date>2024-11-16T03:55:32Z</dc:date>
    <item>
      <title>Using P in Set Analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Using-P-in-Set-Analysis/m-p/1654225#M48880</link>
      <description>&lt;P&gt;Hey community,&lt;/P&gt;&lt;P&gt;Scenario:&lt;/P&gt;&lt;P&gt;I have a website that shows videos. Before entering the video, there is a pretest.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to find the amount of people who took the pretest and watched the segment. (I can't use an "if" statement as the fields are from different databases and the numbers come all messed up). I am trying to use the possible P into the equations and it has yet to work for me.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The fields are session_id,&amp;nbsp; quiz_type, and event_type.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Once again I need the count of distinct session_id's that took the pretest (quiz_type = 1) and played the video (event_type=33,34,35).&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the code I tried.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Count(${&amp;lt;session_id = P({&amp;lt;event_type={33,34,35}, quiz_type = {1} &amp;gt;} distinct session_id)&amp;gt;} distinct session_id)&lt;/P&gt;&lt;P&gt;It actually produces the same result as&amp;nbsp;&lt;/P&gt;&lt;P&gt;Count( distinct session_id)&lt;/P&gt;&lt;P&gt;which means something is wrong in here&amp;nbsp;${&amp;lt;session_id = P({&amp;lt;event_type={33,34,35}, quiz_type = {1} &amp;gt;} distinct session_id)&amp;gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help is greatly appreciated!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 03:55:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Using-P-in-Set-Analysis/m-p/1654225#M48880</guid>
      <dc:creator>Josh</dc:creator>
      <dc:date>2024-11-16T03:55:32Z</dc:date>
    </item>
    <item>
      <title>Re: Using P in Set Analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Using-P-in-Set-Analysis/m-p/1654231#M48881</link>
      <description>&lt;P&gt;Hey, can you share some data sample?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Dec 2019 17:11:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Using-P-in-Set-Analysis/m-p/1654231#M48881</guid>
      <dc:creator>y_grynechko</dc:creator>
      <dc:date>2019-12-04T17:11:11Z</dc:date>
    </item>
    <item>
      <title>Re: Using P in Set Analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Using-P-in-Set-Analysis/m-p/1654245#M48883</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture33.PNG" style="width: 382px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/24936i91682CA6F3087DCD/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture33.PNG" alt="Capture33.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;So there are two tables with session_Id being the primary keys.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Dec 2019 17:41:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Using-P-in-Set-Analysis/m-p/1654245#M48883</guid>
      <dc:creator>Josh</dc:creator>
      <dc:date>2019-12-04T17:41:07Z</dc:date>
    </item>
    <item>
      <title>Re: Using P in Set Analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Using-P-in-Set-Analysis/m-p/1654254#M48885</link>
      <description>&lt;P&gt;What is the expected count of sessions id based on the input shared?&lt;/P&gt;</description>
      <pubDate>Wed, 04 Dec 2019 18:03:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Using-P-in-Set-Analysis/m-p/1654254#M48885</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-12-04T18:03:44Z</dc:date>
    </item>
    <item>
      <title>Re: Using P in Set Analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Using-P-in-Set-Analysis/m-p/1654259#M48886</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture33.PNG" style="width: 382px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/24937i55578B12B747259F/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture33.PNG" alt="Capture33.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;For this particular example: the output for distinct session_id should be 3. Because A,B,and C all have a 1 for a quiz type and at least 1 of the 3 required event_types (33,34,35).&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Dec 2019 18:11:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Using-P-in-Set-Analysis/m-p/1654259#M48886</guid>
      <dc:creator>Josh</dc:creator>
      <dc:date>2019-12-04T18:11:37Z</dc:date>
    </item>
    <item>
      <title>Re: Using P in Set Analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Using-P-in-Set-Analysis/m-p/1654260#M48887</link>
      <description>&lt;P&gt;Your expression with small modifications give me 3&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Count({$&amp;lt;session_id = P({&amp;lt;event_type = {33,34,35}, quiz_type = {1}&amp;gt;} session_id)&amp;gt;} DISTINCT session_id)&lt;/LI-CODE&gt;&lt;P&gt;1) Note that $ comes after { and not before&lt;/P&gt;&lt;P&gt;2) DISTINCT is not needed within the p() function&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Dec 2019 18:21:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Using-P-in-Set-Analysis/m-p/1654260#M48887</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-12-04T18:21:06Z</dc:date>
    </item>
    <item>
      <title>Re: Using P in Set Analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Using-P-in-Set-Analysis/m-p/1654267#M48889</link>
      <description>&lt;P&gt;Sunny,&lt;/P&gt;&lt;P&gt;Unfortunately that didn't work....it gives me 0.&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, with some trial and error over the past few hours we have this now that seems to work....BUT I would appreciate feedback on what people think of this new formula. Just want to see if it seems sound as I am not used to using *.&amp;nbsp;&lt;/P&gt;&lt;P&gt;=count( {&amp;lt; session_id = p( {&amp;lt;quiz_type={1}&amp;gt;} ) * p( {&amp;lt;event_type={33,34,35}&amp;gt;} ) &amp;gt;} distinct session_id)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Dec 2019 18:27:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Using-P-in-Set-Analysis/m-p/1654267#M48889</guid>
      <dc:creator>Josh</dc:creator>
      <dc:date>2019-12-04T18:27:56Z</dc:date>
    </item>
    <item>
      <title>Re: Using P in Set Analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Using-P-in-Set-Analysis/m-p/1654272#M48891</link>
      <description>&lt;P&gt;Did you open the .qvf file and not seeing this?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 975px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/24941i7260D4125B153CDD/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Dec 2019 18:35:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Using-P-in-Set-Analysis/m-p/1654272#M48891</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-12-04T18:35:25Z</dc:date>
    </item>
  </channel>
</rss>

