<?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 Multiple Set Intersections &amp; Unions in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Multiple-Set-Intersections-Unions/m-p/437181#M484150</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am in need of set analysis advice.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using multiple set selections to find their intersections and add them together (ie. {&amp;lt;...&amp;gt;*&amp;lt;...&amp;gt;+&amp;lt;...&amp;gt;*&amp;lt;...&amp;gt;}). This worked just fine for me up until now. I've isolated the issue to a "prior date" selection that I'm adding to my set. It's purpose is to enable me to compare two timeframes. When I leave the prior date selection out, the set analysis returns what I want it to but when added in, it zeros out the results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is an example of the code that I'm working with:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. This works! &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({1&lt;/P&gt;&lt;P&gt;&amp;lt;&lt;SPAN style="color: #800000;"&gt;[Client]&lt;/SPAN&gt;=P()&amp;gt;*&amp;lt;&lt;SPAN style="color: #800000;"&gt;[Client]&lt;/SPAN&gt;={&lt;SPAN style="color: #800000;"&gt;"NV*"&lt;/SPAN&gt;,&lt;SPAN style="color: #800000;"&gt;"*W"&lt;/SPAN&gt;}&amp;gt;&lt;/P&gt;&lt;P&gt;+&lt;/P&gt;&lt;P&gt;&amp;lt;&lt;SPAN style="color: #800000;"&gt;[Client]&lt;/SPAN&gt;=P()&amp;gt;*&amp;lt;&lt;SPAN style="color: #800000;"&gt;[Client]&lt;/SPAN&gt;={&lt;SPAN style="color: #800000;"&gt;"STR*"&lt;/SPAN&gt;}-{&lt;SPAN style="color: #800000;"&gt;"*W"&lt;/SPAN&gt;},&lt;SPAN style="color: #800000;"&gt;[Flag]&lt;/SPAN&gt;={1}&amp;gt;&lt;/P&gt;&lt;P&gt;} &lt;SPAN style="color: #800000;"&gt;[Count Net]&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. This doesn't. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({1&lt;/P&gt;&lt;P&gt;&amp;lt;&lt;SPAN style="color: #800000;"&gt;[Client]&lt;/SPAN&gt;=P(),&lt;SPAN style="color: #800000;"&gt;[Submit Dt]&lt;/SPAN&gt;={&lt;SPAN style="color: #800000;"&gt;"&amp;gt;=$(vPastStartDt)&amp;lt;=$(vPastEndDt)"&lt;/SPAN&gt;}&amp;gt;*&amp;lt;&lt;SPAN style="color: #800000;"&gt;[Client]&lt;/SPAN&gt;={&lt;SPAN style="color: #800000;"&gt;"NV*"&lt;/SPAN&gt;,&lt;SPAN style="color: #800000;"&gt;"*W"&lt;/SPAN&gt;}&amp;gt;&lt;/P&gt;&lt;P&gt;+&lt;/P&gt;&lt;P&gt;&amp;lt;&lt;SPAN style="color: #800000;"&gt;[Client]&lt;/SPAN&gt;=P(),&lt;SPAN style="color: #800000;"&gt;[Submit Dt]&lt;/SPAN&gt;={&lt;SPAN style="color: #800000;"&gt;"&amp;gt;=$(vPastStartDt)&amp;lt;=$(vPastEndDt)"&lt;/SPAN&gt;}&amp;gt;*&amp;lt;&lt;SPAN style="color: #800000;"&gt;[Client]&lt;/SPAN&gt;={&lt;SPAN style="color: #800000;"&gt;"STR*"&lt;/SPAN&gt;}-{&lt;SPAN style="color: #800000;"&gt;"*W"&lt;/SPAN&gt;},&lt;SPAN style="color: #800000;"&gt;[Flag]&lt;/SPAN&gt;={1}&amp;gt;&lt;/P&gt;&lt;P&gt;} &lt;SPAN style="color: #800000;"&gt;[Count Net]&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've been struggling with this issue for a few weeks now and am really open to any suggestions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance for your help and insight!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 04 Jun 2013 15:38:10 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-06-04T15:38:10Z</dc:date>
    <item>
      <title>Multiple Set Intersections &amp; Unions</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-Set-Intersections-Unions/m-p/437181#M484150</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am in need of set analysis advice.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using multiple set selections to find their intersections and add them together (ie. {&amp;lt;...&amp;gt;*&amp;lt;...&amp;gt;+&amp;lt;...&amp;gt;*&amp;lt;...&amp;gt;}). This worked just fine for me up until now. I've isolated the issue to a "prior date" selection that I'm adding to my set. It's purpose is to enable me to compare two timeframes. When I leave the prior date selection out, the set analysis returns what I want it to but when added in, it zeros out the results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is an example of the code that I'm working with:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. This works! &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({1&lt;/P&gt;&lt;P&gt;&amp;lt;&lt;SPAN style="color: #800000;"&gt;[Client]&lt;/SPAN&gt;=P()&amp;gt;*&amp;lt;&lt;SPAN style="color: #800000;"&gt;[Client]&lt;/SPAN&gt;={&lt;SPAN style="color: #800000;"&gt;"NV*"&lt;/SPAN&gt;,&lt;SPAN style="color: #800000;"&gt;"*W"&lt;/SPAN&gt;}&amp;gt;&lt;/P&gt;&lt;P&gt;+&lt;/P&gt;&lt;P&gt;&amp;lt;&lt;SPAN style="color: #800000;"&gt;[Client]&lt;/SPAN&gt;=P()&amp;gt;*&amp;lt;&lt;SPAN style="color: #800000;"&gt;[Client]&lt;/SPAN&gt;={&lt;SPAN style="color: #800000;"&gt;"STR*"&lt;/SPAN&gt;}-{&lt;SPAN style="color: #800000;"&gt;"*W"&lt;/SPAN&gt;},&lt;SPAN style="color: #800000;"&gt;[Flag]&lt;/SPAN&gt;={1}&amp;gt;&lt;/P&gt;&lt;P&gt;} &lt;SPAN style="color: #800000;"&gt;[Count Net]&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. This doesn't. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({1&lt;/P&gt;&lt;P&gt;&amp;lt;&lt;SPAN style="color: #800000;"&gt;[Client]&lt;/SPAN&gt;=P(),&lt;SPAN style="color: #800000;"&gt;[Submit Dt]&lt;/SPAN&gt;={&lt;SPAN style="color: #800000;"&gt;"&amp;gt;=$(vPastStartDt)&amp;lt;=$(vPastEndDt)"&lt;/SPAN&gt;}&amp;gt;*&amp;lt;&lt;SPAN style="color: #800000;"&gt;[Client]&lt;/SPAN&gt;={&lt;SPAN style="color: #800000;"&gt;"NV*"&lt;/SPAN&gt;,&lt;SPAN style="color: #800000;"&gt;"*W"&lt;/SPAN&gt;}&amp;gt;&lt;/P&gt;&lt;P&gt;+&lt;/P&gt;&lt;P&gt;&amp;lt;&lt;SPAN style="color: #800000;"&gt;[Client]&lt;/SPAN&gt;=P(),&lt;SPAN style="color: #800000;"&gt;[Submit Dt]&lt;/SPAN&gt;={&lt;SPAN style="color: #800000;"&gt;"&amp;gt;=$(vPastStartDt)&amp;lt;=$(vPastEndDt)"&lt;/SPAN&gt;}&amp;gt;*&amp;lt;&lt;SPAN style="color: #800000;"&gt;[Client]&lt;/SPAN&gt;={&lt;SPAN style="color: #800000;"&gt;"STR*"&lt;/SPAN&gt;}-{&lt;SPAN style="color: #800000;"&gt;"*W"&lt;/SPAN&gt;},&lt;SPAN style="color: #800000;"&gt;[Flag]&lt;/SPAN&gt;={1}&amp;gt;&lt;/P&gt;&lt;P&gt;} &lt;SPAN style="color: #800000;"&gt;[Count Net]&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've been struggling with this issue for a few weeks now and am really open to any suggestions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance for your help and insight!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Jun 2013 15:38:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-Set-Intersections-Unions/m-p/437181#M484150</guid>
      <dc:creator />
      <dc:date>2013-06-04T15:38:10Z</dc:date>
    </item>
  </channel>
</rss>

