<?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: Include values in set, but exclude when excluded from selection? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Include-values-in-set-but-exclude-when-excluded-from-selection/m-p/670553#M476181</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If i got the requirement right, here is what you need:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUM({&amp;lt;$(=vDateAlias)={"&amp;gt;=$(=vRangeDate1)&amp;lt;=$(=vRangeDate2)"}&amp;gt;} if(callType='Residential',[Call Count]))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 Jun 2014 19:47:21 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-06-12T19:47:21Z</dc:date>
    <item>
      <title>Include values in set, but exclude when excluded from selection?</title>
      <link>https://community.qlik.com/t5/QlikView/Include-values-in-set-but-exclude-when-excluded-from-selection/m-p/670552#M476180</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a basic count of calls when a "type" value is set to Residential:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUM({&amp;lt;$(=vDateAlias)={"&amp;gt;=$(=vRangeDate1)&amp;lt;=$(=vRangeDate2)"}, callType={'Residential'}&amp;gt;}[Call Count])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This works fine.&amp;nbsp; However, when I make a selection that does not include this type (Such as "Business, Credit, Apartment"), the count does not change; it still shows the count of calls that have a type of Residential.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried changing to use the current selections as the base, but the number does not change:&lt;/P&gt;&lt;P&gt;SUM({$&amp;lt;$(=vDateAlias)={"&amp;gt;=$(=vRangeDate1)&amp;lt;=$(=vRangeDate2)"}, callType={'Residential'}&amp;gt;}[Call Count])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, if I have these counts:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Residential = 200&lt;/P&gt;&lt;P&gt;Business = 300&lt;/P&gt;&lt;P&gt;Credit = 400&lt;/P&gt;&lt;P&gt;Apartment = 500&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And make no selections, I would expect the above sum to show 200, which it does.&amp;nbsp; If I make a selection of Apartment, I would expect the number to change to 0.&amp;nbsp; It stays at 200.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I make the set respect both the Residential count, and current selections?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jun 2014 18:39:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Include-values-in-set-but-exclude-when-excluded-from-selection/m-p/670552#M476180</guid>
      <dc:creator />
      <dc:date>2014-06-12T18:39:21Z</dc:date>
    </item>
    <item>
      <title>Re: Include values in set, but exclude when excluded from selection?</title>
      <link>https://community.qlik.com/t5/QlikView/Include-values-in-set-but-exclude-when-excluded-from-selection/m-p/670553#M476181</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If i got the requirement right, here is what you need:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUM({&amp;lt;$(=vDateAlias)={"&amp;gt;=$(=vRangeDate1)&amp;lt;=$(=vRangeDate2)"}&amp;gt;} if(callType='Residential',[Call Count]))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jun 2014 19:47:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Include-values-in-set-but-exclude-when-excluded-from-selection/m-p/670553#M476181</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-06-12T19:47:21Z</dc:date>
    </item>
  </channel>
</rss>

