<?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 intersection in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-analysis-intersection/m-p/1622584#M445874</link>
    <description>&lt;P&gt;Without a sample, this is more going to be a guess work, but try this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Count(DISTINCT {1&amp;lt;[SchemeNo] = P({&amp;lt;PeerGroupName = {"$(vPG1)"}&amp;gt;} PeerSchemeNo) * P({&amp;lt;PeerGroupName = {"$(vPG2)"}&amp;gt;} PeerSchemeNo)&amp;gt;} SchemeNo)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 11 Sep 2019 11:40:23 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2019-09-11T11:40:23Z</dc:date>
    <item>
      <title>Set analysis intersection</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-intersection/m-p/1622565#M445872</link>
      <description>&lt;P&gt;HI All,&lt;/P&gt;&lt;P&gt;I'm trying to set the selections in one field 'SchemeNo' to the values of 'PeerSchemeNo' that are the intersection of 2 simple sets.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've tried this, but it seems to only return 0 (there is definitely some overlap)&lt;/P&gt;&lt;P&gt;&lt;EM&gt;count(DISTINCT&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;{1&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;lt;[SchemeNo]=P({&amp;lt;PeerGroupName={"$(vPG1)"}&amp;gt;}PeerSchemeNo)&amp;gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;*&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;lt;[SchemeNo]=P({&amp;lt;PeerGroupName={"$(vPG2)"}&amp;gt;}PeerSchemeNo)&amp;gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;}&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;SchemeNo&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I set it all to use 'PeerSchemeNo' instead of SchemeNo, then I get the correct number of intersecting schemes. But it is not that field that I want to make affect. Also, if I just use one of the 'P' sets above then it does give me the expected answer, so they seem to be working in isolation.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Julian&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 02:30:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-intersection/m-p/1622565#M445872</guid>
      <dc:creator>juleshartley</dc:creator>
      <dc:date>2024-11-16T02:30:52Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis intersection</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-intersection/m-p/1622584#M445874</link>
      <description>&lt;P&gt;Without a sample, this is more going to be a guess work, but try this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Count(DISTINCT {1&amp;lt;[SchemeNo] = P({&amp;lt;PeerGroupName = {"$(vPG1)"}&amp;gt;} PeerSchemeNo) * P({&amp;lt;PeerGroupName = {"$(vPG2)"}&amp;gt;} PeerSchemeNo)&amp;gt;} SchemeNo)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Sep 2019 11:40:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-intersection/m-p/1622584#M445874</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-09-11T11:40:23Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis intersection</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-intersection/m-p/1622599#M445876</link>
      <description>&lt;P&gt;Try it with:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;count(DISTINCT&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;{1&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;lt;[&lt;STRONG&gt;PeerGroupName&lt;/STRONG&gt;]=P({&amp;lt;PeerGroupName={"$(vPG1)"}&amp;gt;}PeerSchemeNo)&amp;gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;*&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;lt;[&lt;STRONG&gt;PeerGroupName&lt;/STRONG&gt;]=P({&amp;lt;PeerGroupName={"$(vPG2)"}&amp;gt;}PeerSchemeNo)&amp;gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;}&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;SchemeNo&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Wed, 11 Sep 2019 12:00:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-intersection/m-p/1622599#M445876</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2019-09-11T12:00:52Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis intersection</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-intersection/m-p/1622715#M445896</link>
      <description>&lt;P&gt;Thanks both - I'm not sure why it didn't work but I've ended up using a concat to build a string to feed into the set analysis, which seems to work ok&lt;/P&gt;</description>
      <pubDate>Wed, 11 Sep 2019 15:20:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-intersection/m-p/1622715#M445896</guid>
      <dc:creator>juleshartley</dc:creator>
      <dc:date>2019-09-11T15:20:42Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis intersection</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-intersection/m-p/1622716#M445897</link>
      <description>&lt;P&gt;SchemeNo={&lt;/P&gt;&lt;P&gt;$(&lt;/P&gt;&lt;P&gt;=concat(DISTINCT{&amp;lt;[PeerSchemeNo]=P({&amp;lt;PeerGroupName={"$(vPG_First)"}&amp;gt;}PeerSchemeNo)&amp;gt;&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;&amp;lt;[PeerSchemeNo]=P({&amp;lt;PeerGroupName={"$(vPG_Last)"}&amp;gt;}PeerSchemeNo)&amp;gt;}PeerSchemeNo,', ')&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;</description>
      <pubDate>Wed, 11 Sep 2019 15:21:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-intersection/m-p/1622716#M445897</guid>
      <dc:creator>juleshartley</dc:creator>
      <dc:date>2019-09-11T15:21:48Z</dc:date>
    </item>
  </channel>
</rss>

