<?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: Using the intersection set operator in a chart expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Using-the-intersection-set-operator-in-a-chart-expression/m-p/353083#M1172056</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;that's what I said, I don't think the intersection operator works correctly between two set modifier. But have you tried using the intersection operator like suggested above, within one field element set expression?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please see attached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 Jun 2012 09:03:16 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2012-06-19T09:03:16Z</dc:date>
    <item>
      <title>Using the intersection set operator in a chart expression</title>
      <link>https://community.qlik.com/t5/QlikView/Using-the-intersection-set-operator-in-a-chart-expression/m-p/353078#M1172051</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am having trouble getting the intersection set operator to work in an expression for a bar chart. I want to count the people who belong to both set operands but the expression is returning no data. In the raw data there are people who belong to both sets. The user needs to select the term of entry for the chart conditions to be fulfilled.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Advice would be appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the expression I'm currently using;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;TermofEntry&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(= only (TermofEntry))&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;}, &lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;LevelCode&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {'PGR'}, &lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;ExtractType&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {1},&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;YearofProgram&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {'1'}, &lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;RegStatusCode&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {'RE','RS'}, &lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;InstanceTerm&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(= only (TermofEntry))&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;}, &lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;CollegeCode&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {'AF', 'SF', 'HF'},&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;ResearchDoctMastInd&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {R}, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;ModeofStudy&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {'FT'}&lt;BR /&gt;&lt;BR /&gt;&amp;gt; *&lt;BR /&gt;&lt;BR /&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;TermofEntry&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(= only (TermofEntry))&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;}, &lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;LevelCode&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {'PGR'}, &lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;ExtractType&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {1},&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;YearofProgram&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {'2'}, &lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;RegStatusCode&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {'RE', 'RS'}, &lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;InstanceTerm&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(= only (TermofEntry)+ 100)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;}, &lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;CollegeCode&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {'AF', 'SF', 'HF'},&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;ResearchDoctMastInd&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {'R'}, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;ModeofStudy&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {'FT'}&lt;BR /&gt;&lt;BR /&gt; &amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;pidm&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jun 2012 10:54:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-the-intersection-set-operator-in-a-chart-expression/m-p/353078#M1172051</guid>
      <dc:creator />
      <dc:date>2012-06-14T10:54:03Z</dc:date>
    </item>
    <item>
      <title>Re: Using the intersection set operator in a chart expression</title>
      <link>https://community.qlik.com/t5/QlikView/Using-the-intersection-set-operator-in-a-chart-expression/m-p/353079#M1172052</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I wasn't able to use the intersection operator between set modifiers in the past, too (only union and exclusion seem to work). But you can achieve something similar probably using&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;=count({&amp;lt;PersonKey =p( {&amp;lt;Year={2011}&amp;gt;})*p({&amp;lt;Year= {2012}&amp;gt;})&amp;gt;}&amp;nbsp; distinct PersonKey)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;({$&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;lt;pidm = p( { &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;TermofEntry&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;$(= only (TermofEntry))&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;}, &lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;LevelCode&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {'PGR'}, &lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;ExtractType&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {1},&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;YearofProgram&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {'1'}, &lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;RegStatusCode&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {'RE','RS'}, &lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;InstanceTerm&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;$(= only (TermofEntry))&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;}, &lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;CollegeCode&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {'AF', 'SF', 'HF'},&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;ResearchDoctMastInd&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {R}, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;ModeofStudy&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {'FT'}&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;gt; } )* p({&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;TermofEntry&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;$(= only (TermofEntry))&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;}, &lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;LevelCode&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {'PGR'}, &lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;ExtractType&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {1},&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;YearofProgram&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {'2'}, &lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;RegStatusCode&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {'RE', 'RS'}, &lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;InstanceTerm&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;$(= only (TermofEntry)+ 100)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;}, &lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;CollegeCode&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {'AF', 'SF', 'HF'},&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;ResearchDoctMastInd&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {'R'}, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;ModeofStudy&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {'FT'}&lt;BR /&gt;&lt;BR /&gt; &lt;STRONG&gt;&amp;gt;} )&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;gt;}&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;pidm&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Hope this helps and that I haven't missed a bracket here (I hope the idea is clear?)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Stefan&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jun 2012 13:27:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-the-intersection-set-operator-in-a-chart-expression/m-p/353079#M1172052</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-06-14T13:27:07Z</dc:date>
    </item>
    <item>
      <title>Re: Using the intersection set operator in a chart expression</title>
      <link>https://community.qlik.com/t5/QlikView/Using-the-intersection-set-operator-in-a-chart-expression/m-p/353080#M1172053</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;Thanks for this - the expression builder reads 'expression ok' but no data is being extracted. I can get the original expression working with a union operator but it's not outputting the correct data. Has anything else worked for you when using intersections?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jun 2012 13:18:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-the-intersection-set-operator-in-a-chart-expression/m-p/353080#M1172053</guid>
      <dc:creator />
      <dc:date>2012-06-15T13:18:16Z</dc:date>
    </item>
    <item>
      <title>Re: Using the intersection set operator in a chart expression</title>
      <link>https://community.qlik.com/t5/QlikView/Using-the-intersection-set-operator-in-a-chart-expression/m-p/353081#M1172054</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you maybe upload a small sample file? Upload is available here using the advanced editor (follow link in editor).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jun 2012 13:50:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-the-intersection-set-operator-in-a-chart-expression/m-p/353081#M1172054</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-06-15T13:50:26Z</dc:date>
    </item>
    <item>
      <title>Re: Using the intersection set operator in a chart expression</title>
      <link>https://community.qlik.com/t5/QlikView/Using-the-intersection-set-operator-in-a-chart-expression/m-p/353082#M1172055</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've attached a small sample file. I have created similar charts using the intersection operator in one and the union operator in the other for the 'Progressed to year 2' expression but as you can see no data is displayed from the intersection expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Danielle&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jun 2012 08:50:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-the-intersection-set-operator-in-a-chart-expression/m-p/353082#M1172055</guid>
      <dc:creator />
      <dc:date>2012-06-19T08:50:08Z</dc:date>
    </item>
    <item>
      <title>Re: Using the intersection set operator in a chart expression</title>
      <link>https://community.qlik.com/t5/QlikView/Using-the-intersection-set-operator-in-a-chart-expression/m-p/353083#M1172056</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;that's what I said, I don't think the intersection operator works correctly between two set modifier. But have you tried using the intersection operator like suggested above, within one field element set expression?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please see attached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jun 2012 09:03:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-the-intersection-set-operator-in-a-chart-expression/m-p/353083#M1172056</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-06-19T09:03:16Z</dc:date>
    </item>
    <item>
      <title>Re: Using the intersection set operator in a chart expression</title>
      <link>https://community.qlik.com/t5/QlikView/Using-the-intersection-set-operator-in-a-chart-expression/m-p/353084#M1172057</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stefan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That's great - I've tried this in my actual model now and the intersection works. Thanks so much for your help with this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Danielle&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jun 2012 10:35:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-the-intersection-set-operator-in-a-chart-expression/m-p/353084#M1172057</guid>
      <dc:creator />
      <dc:date>2012-06-19T10:35:12Z</dc:date>
    </item>
  </channel>
</rss>

