<?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: -= operator in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/operator/m-p/552951#M1125105</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;-= is used to exclude the values from the current selections.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Year&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sales&lt;/P&gt;&lt;P&gt;2010&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 100&lt;/P&gt;&lt;P&gt;2011&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 200&lt;/P&gt;&lt;P&gt;2012&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 300&lt;/P&gt;&lt;P&gt;2013&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 400&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example 2010, 2011 and 2012 are selected then using the below expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum({&amp;lt;Year-={2011}&amp;gt;} Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above expression with exclude 2011 from the current selection and return 400 (100 + 300) instead of 600(100 + 200 + 300).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 04 Jan 2014 15:21:51 GMT</pubDate>
    <dc:creator>jagan</dc:creator>
    <dc:date>2014-01-04T15:21:51Z</dc:date>
    <item>
      <title>-= operator</title>
      <link>https://community.qlik.com/t5/QlikView/operator/m-p/552950#M1125104</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what is the "-=" used for? can anyone please let me know its usage?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;Naveenchellaaraam.D&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 04 Jan 2014 15:11:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/operator/m-p/552950#M1125104</guid>
      <dc:creator>naveenchellaara</dc:creator>
      <dc:date>2014-01-04T15:11:08Z</dc:date>
    </item>
    <item>
      <title>Re: -= operator</title>
      <link>https://community.qlik.com/t5/QlikView/operator/m-p/552951#M1125105</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;-= is used to exclude the values from the current selections.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Year&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sales&lt;/P&gt;&lt;P&gt;2010&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 100&lt;/P&gt;&lt;P&gt;2011&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 200&lt;/P&gt;&lt;P&gt;2012&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 300&lt;/P&gt;&lt;P&gt;2013&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 400&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example 2010, 2011 and 2012 are selected then using the below expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum({&amp;lt;Year-={2011}&amp;gt;} Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above expression with exclude 2011 from the current selection and return 400 (100 + 300) instead of 600(100 + 200 + 300).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 04 Jan 2014 15:21:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/operator/m-p/552951#M1125105</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2014-01-04T15:21:51Z</dc:date>
    </item>
    <item>
      <title>Re: -= operator</title>
      <link>https://community.qlik.com/t5/QlikView/operator/m-p/552952#M1125106</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;From the HELP:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;H3&gt;Set Modifiers Using Assignments with Implicit Set Operators&lt;/H3&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above notation defines new selections, disregarding the current selection in the field. However, if you want to base your selection on the current selection in the field and add field values, e.g. you may want a modifier &amp;lt;Year = Year + {2007, 2008}&amp;gt;. A short and equivalent way to write this is &amp;lt;Year += {2007, 2008}&amp;gt;, i.e. the assignment operator implicitly defines a union. Also implicit intersections, exclusions and symmetric differences can be defined using “*=”, “–=” and “/=”. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="example"&gt;Examples:&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Bold"&gt;sum(&lt;/SPAN&gt; {$&amp;lt;Product += {OurProduct1, OurProduct2} &amp;gt;} Sales &lt;SPAN class="Bold"&gt;)&lt;/SPAN&gt;&lt;BR /&gt;returns the sales for the current selection, but using an implicit union to add the products “OurProduct1” and “OurProduct2” to the list of selected products. &lt;/P&gt;&lt;P&gt;&lt;SPAN class="Bold"&gt;sum(&lt;/SPAN&gt; {$&amp;lt;Year += {“20*”,1997} – {2000} &amp;gt;} Sales &lt;SPAN class="Bold"&gt;)&lt;/SPAN&gt;&lt;BR /&gt;returns the sales for the current selection but using an implicit union to add a number of years in the selection: 1997 and all that begin with “20” – however, not 2000. Note that if 2000 is included in the current selection, it will still be included after the modification. Same as &amp;lt;Year=Year + ({“20*”,1997}–{2000})&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Bold"&gt;sum(&lt;/SPAN&gt; {$&amp;lt;Product *= {OurProduct1} &amp;gt;} Sales &lt;SPAN class="Bold"&gt;)&lt;/SPAN&gt;&lt;BR /&gt;returns the sales for the current selection, but only for the intersection of currently selected products and the product “OurProduct1”. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 04 Jan 2014 15:25:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/operator/m-p/552952#M1125106</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2014-01-04T15:25:04Z</dc:date>
    </item>
  </channel>
</rss>

