<?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 - exclude range in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-exclude-range/m-p/643209#M235667</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Try -= option&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 22 May 2014 10:28:48 GMT</pubDate>
    <dc:creator>ashwanin</dc:creator>
    <dc:date>2014-05-22T10:28:48Z</dc:date>
    <item>
      <title>Set Analysis - exclude range</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-exclude-range/m-p/643206#M235664</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;Any ideas about how to write the expression so that it will include the values not in the the current defined dates range?&lt;/P&gt;&lt;P&gt;I'm working in version 10, if it matters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;SuppReturns.ConfDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;={&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;"&amp;gt;=$(vMinReturnDate)&amp;lt;=$(vMaxReturnDate)"&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;Thanks!&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 May 2014 10:20:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-exclude-range/m-p/643206#M235664</guid>
      <dc:creator>dafnis14</dc:creator>
      <dc:date>2014-05-22T10:20:13Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis - exclude range</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-exclude-range/m-p/643207#M235665</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;Try&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;SuppReturns.ConfDate-&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;={&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;"&amp;gt;=$(vMinReturnDate)&amp;lt;=$(vMaxReturnDate)"&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 May 2014 10:26:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-exclude-range/m-p/643207#M235665</guid>
      <dc:creator />
      <dc:date>2014-05-22T10:26:32Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis - exclude range</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-exclude-range/m-p/643208#M235666</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;if you are trying to calculate everything except current selection then Use&lt;/P&gt;&lt;P&gt;sum({1 - $}{&amp;lt;your expresion&amp;gt;} Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It will return you inverse of current selection.&lt;/P&gt;&lt;P&gt;Attached document might help you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;ASHFAQ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 May 2014 10:28:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-exclude-range/m-p/643208#M235666</guid>
      <dc:creator>ashfaq_haseeb</dc:creator>
      <dc:date>2014-05-22T10:28:15Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis - exclude range</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-exclude-range/m-p/643209#M235667</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Try -= option&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 May 2014 10:28:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-exclude-range/m-p/643209#M235667</guid>
      <dc:creator>ashwanin</dc:creator>
      <dc:date>2014-05-22T10:28:48Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis - exclude range</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-exclude-range/m-p/643210#M235668</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;When i tried it, it gave an indication of a syntax error (red line).&lt;/P&gt;&lt;P&gt;I guess i can ignore it...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 May 2014 12:17:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-exclude-range/m-p/643210#M235668</guid>
      <dc:creator>dafnis14</dc:creator>
      <dc:date>2014-05-22T12:17:04Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis - exclude range</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-exclude-range/m-p/643211#M235669</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, you can ignore it. That's a qv parser error, otherwise syntax works fine.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 May 2014 12:19:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-exclude-range/m-p/643211#M235669</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2014-05-22T12:19:39Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis - exclude range</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-exclude-range/m-p/643212#M235670</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I like to avoid the proposed -= because it causes those nasty red lines and removes the benefits of syntax checker for the rest of the (sometimes long) expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can combine sets in set analysis. One set is the one you define between {} after the field name. In this case we could do the union of sets &lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;{&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: maroon;"&gt;"&amp;lt;=$(vMinReturnDate)"}&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; and {"&amp;gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: maroon;"&gt;=$(vMaxReturnDate)"&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;}&lt;/SPAN&gt;by using the +, so like this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: maroon;"&gt;SuppReturns.ConfDate &lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;= {&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: maroon;"&gt;"&amp;lt;=$(vMinReturnDate)"} + {"&amp;gt;=$(vMaxReturnDate)"&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;}.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;To get the range between, you actually used syntax I wasn't familiar with (but can be found from the help as well, it seems). I would have used * to get the intersection of the sets, like this:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: maroon;"&gt;SuppReturns.ConfDate &lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;= {&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: maroon;"&gt;"&amp;gt;=$(vMinReturnDate)"} * {"&amp;lt;=$(vMaxReturnDate)"&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope these help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Henry&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 May 2014 14:21:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-exclude-range/m-p/643212#M235670</guid>
      <dc:creator />
      <dc:date>2014-05-22T14:21:05Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis - exclude range</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-exclude-range/m-p/643213#M235671</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Henry,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the very bright explanation.&lt;/P&gt;&lt;P&gt;I definitely agree with your recommendation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dafnis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 24 May 2014 06:02:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-exclude-range/m-p/643213#M235671</guid>
      <dc:creator>dafnis14</dc:creator>
      <dc:date>2014-05-24T06:02:16Z</dc:date>
    </item>
  </channel>
</rss>

