<?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: Intersection in two alternate states in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Intersection-in-two-alternate-states/m-p/538823#M201353</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Nirmal,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the qvw file. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, there are only two data from A and B that are the same (4 &amp;amp; 5), how come your script yielded 11? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 29 Oct 2013 06:11:07 GMT</pubDate>
    <dc:creator>jasonseril</dc:creator>
    <dc:date>2013-10-29T06:11:07Z</dc:date>
    <item>
      <title>Intersection in two alternate states</title>
      <link>https://community.qlik.com/t5/QlikView/Intersection-in-two-alternate-states/m-p/538819#M201349</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a simple inline data: &lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13830186118308883" jivemacro_uid="_13830186118308883"&gt;
&lt;P&gt;test:&lt;/P&gt;
&lt;P&gt;LOAD * INLINE [&lt;/P&gt;
&lt;P&gt;&amp;nbsp; PLACE, VALUE&lt;/P&gt;
&lt;P&gt;&amp;nbsp; A, 4&lt;/P&gt;
&lt;P&gt;&amp;nbsp; A, 5&lt;/P&gt;
&lt;P&gt;&amp;nbsp; A, 6&lt;/P&gt;
&lt;P&gt;&amp;nbsp; A, 7&lt;/P&gt;
&lt;P&gt;&amp;nbsp; A, 8&lt;/P&gt;
&lt;P&gt;&amp;nbsp; B, 1&lt;/P&gt;
&lt;P&gt;&amp;nbsp; B, 2&lt;/P&gt;
&lt;P&gt;&amp;nbsp; B, 3&lt;/P&gt;
&lt;P&gt;&amp;nbsp; B, 4&lt;/P&gt;
&lt;P&gt;&amp;nbsp; B, 5&lt;/P&gt;
&lt;P&gt;&amp;nbsp; B, 9&lt;/P&gt;
&lt;P&gt;];&amp;nbsp; &lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;then I created two alternate states ([Group 1] and [Group 2].&amp;nbsp; I want to count the number of "intersection(s)' in dimension PLACE between the two alternate states. In the data (A and B), they have two the same values (4 and 5).&amp;nbsp; I tried some script (below) from a comment from another thread&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13830189189858443" jivemacro_uid="_13830189189858443"&gt;
&lt;P&gt;=Count({[Group 1]&amp;lt;PLACE*=p({$}PLACE::PLACE)&amp;gt; * [Group 2]&amp;lt;PLACE*=p({$}PLACE::PLACE)&amp;gt;} VALUE)&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;but it only displayed 0, not 2.&amp;nbsp; I have attached the image below:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="intersection_in_two_alternate_states.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/48255_intersection_in_two_alternate_states.jpg" style="width: 620px; height: 482px;" /&gt;&lt;/P&gt;&lt;P&gt;Please check if I missed something or the code is wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance and best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jason&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Oct 2013 04:00:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Intersection-in-two-alternate-states/m-p/538819#M201349</guid>
      <dc:creator>jasonseril</dc:creator>
      <dc:date>2013-10-29T04:00:31Z</dc:date>
    </item>
    <item>
      <title>Re: Intersection in two alternate states</title>
      <link>https://community.qlik.com/t5/QlikView/Intersection-in-two-alternate-states/m-p/538820#M201350</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jason,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you attach your testing appication? That will be more understandable.&lt;/P&gt;&lt;P&gt;Thanks!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Yojas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Oct 2013 04:43:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Intersection-in-two-alternate-states/m-p/538820#M201350</guid>
      <dc:creator />
      <dc:date>2013-10-29T04:43:00Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Intersection in two alternate states</title>
      <link>https://community.qlik.com/t5/QlikView/Intersection-in-two-alternate-states/m-p/538821#M201351</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="text-align: left; color: #575757; text-indent: 0px;"&gt;Hello Yojas,&lt;/P&gt;&lt;P style="text-align: left; color: #575757; text-indent: 0px;"&gt;&lt;/P&gt;&lt;P style="text-align: left; color: #575757; text-indent: 0px;"&gt;thank you for a fast reply, please find attached the qvw for your checking. &lt;/P&gt;&lt;P style="text-align: left; color: #575757; text-indent: 0px;"&gt;&lt;/P&gt;&lt;P style="text-align: left; color: #575757; text-indent: 0px;"&gt;best,&lt;/P&gt;&lt;P style="text-align: left; color: #575757; text-indent: 0px;"&gt;&lt;/P&gt;&lt;P style="text-align: left; color: #575757; text-indent: 0px;"&gt;Jason&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Oct 2013 05:17:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Intersection-in-two-alternate-states/m-p/538821#M201351</guid>
      <dc:creator>jasonseril</dc:creator>
      <dc:date>2013-10-29T05:17:23Z</dc:date>
    </item>
    <item>
      <title>Re: Intersection in two alternate states</title>
      <link>https://community.qlik.com/t5/QlikView/Intersection-in-two-alternate-states/m-p/538822#M201352</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;PFA hope it will help you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Oct 2013 06:00:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Intersection-in-two-alternate-states/m-p/538822#M201352</guid>
      <dc:creator />
      <dc:date>2013-10-29T06:00:48Z</dc:date>
    </item>
    <item>
      <title>Re: Intersection in two alternate states</title>
      <link>https://community.qlik.com/t5/QlikView/Intersection-in-two-alternate-states/m-p/538823#M201353</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Nirmal,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the qvw file. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, there are only two data from A and B that are the same (4 &amp;amp; 5), how come your script yielded 11? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Oct 2013 06:11:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Intersection-in-two-alternate-states/m-p/538823#M201353</guid>
      <dc:creator>jasonseril</dc:creator>
      <dc:date>2013-10-29T06:11:07Z</dc:date>
    </item>
    <item>
      <title>Re: Intersection in two alternate states</title>
      <link>https://community.qlik.com/t5/QlikView/Intersection-in-two-alternate-states/m-p/538824#M201354</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry Jason after that i saw the exact requirement&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Oct 2013 06:20:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Intersection-in-two-alternate-states/m-p/538824#M201354</guid>
      <dc:creator />
      <dc:date>2013-10-29T06:20:52Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Re: Intersection in two alternate states</title>
      <link>https://community.qlik.com/t5/QlikView/Intersection-in-two-alternate-states/m-p/538825#M201355</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;EM style="color: #333399;"&gt;Hi Jason,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333399;"&gt;&lt;EM&gt;PFA for your requirement.&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333399;"&gt;&lt;EM&gt;I hope it hte same which you were expecting!!!&amp;nbsp; &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333399;"&gt;&lt;EM&gt;Regards,&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="color: #333399;"&gt;Yojas&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Oct 2013 10:24:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Intersection-in-two-alternate-states/m-p/538825#M201355</guid>
      <dc:creator />
      <dc:date>2013-10-29T10:24:24Z</dc:date>
    </item>
    <item>
      <title>Re: Intersection in two alternate states</title>
      <link>https://community.qlik.com/t5/QlikView/Intersection-in-two-alternate-states/m-p/538826#M201356</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Jason,&lt;/P&gt;&lt;P&gt;PFA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use expression: =Count({[Group 1]&amp;lt;VALUE=P({&amp;lt;PLACE=[Group 2]::PLACE&amp;gt;})&amp;gt;}VALUE)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Oct 2013 10:24:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Intersection-in-two-alternate-states/m-p/538826#M201356</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2013-10-29T10:24:29Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Re: Intersection in two alternate states</title>
      <link>https://community.qlik.com/t5/QlikView/Intersection-in-two-alternate-states/m-p/538827#M201357</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jason,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please update us if you got your solution by marking it correct !!!&lt;/P&gt;&lt;P&gt;Thanks!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Yojas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Oct 2013 11:07:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Intersection-in-two-alternate-states/m-p/538827#M201357</guid>
      <dc:creator />
      <dc:date>2013-10-29T11:07:25Z</dc:date>
    </item>
    <item>
      <title>Re: Intersection in two alternate states</title>
      <link>https://community.qlik.com/t5/QlikView/Intersection-in-two-alternate-states/m-p/538828#M201358</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi tresesco,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it's correct, thank you very much.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;jason&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Oct 2013 08:19:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Intersection-in-two-alternate-states/m-p/538828#M201358</guid>
      <dc:creator>jasonseril</dc:creator>
      <dc:date>2013-10-30T08:19:51Z</dc:date>
    </item>
    <item>
      <title>Re: Intersection in two alternate states</title>
      <link>https://community.qlik.com/t5/QlikView/Intersection-in-two-alternate-states/m-p/538829#M201359</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;A href="https://community.qlik.com/qlik-users/82182"&gt;Yojas Samarth&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check &lt;A href="https://community.qlik.com/qlik-users/26418"&gt;tresesco&lt;/A&gt; attached qlikview and script, it worked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;jason&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Oct 2013 08:23:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Intersection-in-two-alternate-states/m-p/538829#M201359</guid>
      <dc:creator>jasonseril</dc:creator>
      <dc:date>2013-10-30T08:23:50Z</dc:date>
    </item>
  </channel>
</rss>

