<?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 Could not apply intersection operation using set analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Could-not-apply-intersection-operation-using-set-analysis/m-p/171811#M502630</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a specific business requirement to find the intersection for the below tables.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Person_Table:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Person_id, First_name, Last_Name&lt;/P&gt;&lt;P&gt;1,A,B&lt;/P&gt;&lt;P&gt;2,B,C&lt;/P&gt;&lt;P&gt;3,R,T&lt;/P&gt;&lt;P&gt;4,B,H&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Event_Table:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Event_id,Event_Name,Event_city&lt;/P&gt;&lt;P&gt;100,Event_1,X&lt;/P&gt;&lt;P&gt;101,Event_2,X&lt;/P&gt;&lt;P&gt;102,Event_3,X&lt;/P&gt;&lt;P&gt;103,Event_4,X&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Event_Attendance_Table:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Event_id,Person_id&lt;/P&gt;&lt;P&gt;100,1&lt;/P&gt;&lt;P&gt;100,2&lt;/P&gt;&lt;P&gt;&lt;EM&gt;100,3&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;100,4&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;101,1&lt;/P&gt;&lt;P&gt;101,2&lt;/P&gt;&lt;P&gt;I need to find the list of people who has attended both events (i.e Event_id : 100 and 101 respectively). I tried a lot using set analysis intersection operation. Please find the list of commands i gave in expressions&lt;/P&gt;&lt;P&gt;Eg:&lt;/P&gt;&lt;P&gt;count({$*$1}Event_code) /*** Assuming Event#100 is selected in $ and Event#101 is selected in $1 ****/&lt;/P&gt;&lt;P&gt;count({$&amp;lt;Event_code *= {101} &amp;gt; }Event_code ) /*** Assuming Event# 100 and 101 selected in multi box *****/&lt;/P&gt;&lt;P&gt;count({ BK01 * BK02 } Event_code) /*** Assuming Event#100 is selected in BK01 and Event#101 is selected in BK02 ****/&lt;/P&gt;&lt;P&gt;None of the above expressions are seems to be working for me. Please help with your inputs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Aug 2010 05:02:30 GMT</pubDate>
    <dc:creator>balawinner</dc:creator>
    <dc:date>2010-08-24T05:02:30Z</dc:date>
    <item>
      <title>Could not apply intersection operation using set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Could-not-apply-intersection-operation-using-set-analysis/m-p/171811#M502630</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a specific business requirement to find the intersection for the below tables.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Person_Table:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Person_id, First_name, Last_Name&lt;/P&gt;&lt;P&gt;1,A,B&lt;/P&gt;&lt;P&gt;2,B,C&lt;/P&gt;&lt;P&gt;3,R,T&lt;/P&gt;&lt;P&gt;4,B,H&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Event_Table:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Event_id,Event_Name,Event_city&lt;/P&gt;&lt;P&gt;100,Event_1,X&lt;/P&gt;&lt;P&gt;101,Event_2,X&lt;/P&gt;&lt;P&gt;102,Event_3,X&lt;/P&gt;&lt;P&gt;103,Event_4,X&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Event_Attendance_Table:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Event_id,Person_id&lt;/P&gt;&lt;P&gt;100,1&lt;/P&gt;&lt;P&gt;100,2&lt;/P&gt;&lt;P&gt;&lt;EM&gt;100,3&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;100,4&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;101,1&lt;/P&gt;&lt;P&gt;101,2&lt;/P&gt;&lt;P&gt;I need to find the list of people who has attended both events (i.e Event_id : 100 and 101 respectively). I tried a lot using set analysis intersection operation. Please find the list of commands i gave in expressions&lt;/P&gt;&lt;P&gt;Eg:&lt;/P&gt;&lt;P&gt;count({$*$1}Event_code) /*** Assuming Event#100 is selected in $ and Event#101 is selected in $1 ****/&lt;/P&gt;&lt;P&gt;count({$&amp;lt;Event_code *= {101} &amp;gt; }Event_code ) /*** Assuming Event# 100 and 101 selected in multi box *****/&lt;/P&gt;&lt;P&gt;count({ BK01 * BK02 } Event_code) /*** Assuming Event#100 is selected in BK01 and Event#101 is selected in BK02 ****/&lt;/P&gt;&lt;P&gt;None of the above expressions are seems to be working for me. Please help with your inputs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Aug 2010 05:02:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Could-not-apply-intersection-operation-using-set-analysis/m-p/171811#M502630</guid>
      <dc:creator>balawinner</dc:creator>
      <dc:date>2010-08-24T05:02:30Z</dc:date>
    </item>
    <item>
      <title>Could not apply intersection operation using set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Could-not-apply-intersection-operation-using-set-analysis/m-p/171812#M502631</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, do you want a list or do you want a count? I'm also assuming you have some people that did not attend either event, or some events that you don't care about. For count of these 2 events, try this: count({&amp;lt;Event_id={100,101}&amp;gt;} Person_id)&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Aug 2010 06:10:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Could-not-apply-intersection-operation-using-set-analysis/m-p/171812#M502631</guid>
      <dc:creator>vgutkovsky</dc:creator>
      <dc:date>2010-08-24T06:10:04Z</dc:date>
    </item>
  </channel>
</rss>

