<?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: exclude a specific selection from total in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/exclude-a-specific-selection-from-total/m-p/393981#M146909</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;I just built a sample using the expression I suggested and it works fine, I think you're problem might be that you're using Sum( {1.....} Sales) which is designed to disregard all selections, perhaps change this to Sum( {$.....} Sales) and see if that works for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If my example is not doing what you want it to do then let me know what you think is wrong, I can then fix the example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Nigel.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 May 2013 10:05:36 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-05-22T10:05:36Z</dc:date>
    <item>
      <title>exclude a specific selection from total</title>
      <link>https://community.qlik.com/t5/QlikView/exclude-a-specific-selection-from-total/m-p/393978#M146906</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;Need some help for the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;I have four listboxes namely (MARKET,USUAGE,SPECIES and BRAND) and a bar chart showing 'value share' for different brands for past 1 month.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;The expression for the chart is like:&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;DATE = {'&amp;gt;=$(=AddMonths(Max(DATE), -1))&amp;lt;=$(=Date(Max(DATE)))'} &amp;gt;} [SALES DOLLARS])&lt;/P&gt;&lt;P&gt;/Sum({&amp;lt;DATE = {'&amp;gt;=$(=AddMonths(Max(DATE), -1))&amp;lt;=$(=Date(Max(DATE)))'} &amp;gt;}&amp;nbsp; TOTAL &amp;lt;MARKET,USAGE,SPECIES&amp;gt; [SALES DOLLARS])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However I don't want the denominator of this expression (which is total) to be effected by the selection in the 'BRAND' listbox i.e. the denominator should be total of what I select in the other three listboxes (MARKET,USUAGE,SPECIES).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone please tell me how to modify the above expression to ignore the selection in the 'BRAND' listbox?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 May 2013 05:21:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/exclude-a-specific-selection-from-total/m-p/393978#M146906</guid>
      <dc:creator />
      <dc:date>2013-05-22T05:21:10Z</dc:date>
    </item>
    <item>
      <title>Re: exclude a specific selection from total</title>
      <link>https://community.qlik.com/t5/QlikView/exclude-a-specific-selection-from-total/m-p/393979#M146907</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This should work:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;BRAND={'*'},DATE = {'&amp;gt;=$(=AddMonths(Max(DATE), -1))&amp;lt;=$(=Date(Max(DATE)))'} &amp;gt;} [SALES DOLLARS])&lt;/P&gt;&lt;P&gt;/Sum({&amp;lt;BRAND={'*'},DATE = {'&amp;gt;=$(=AddMonths(Max(DATE), -1))&amp;lt;=$(=Date(Max(DATE)))'} &amp;gt;}&amp;nbsp; TOTAL &amp;lt;MARKET,USAGE,SPECIES&amp;gt; [SALES DOLLARS])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think this should also work though:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;BRAND=,DATE = {'&amp;gt;=$(=AddMonths(Max(DATE), -1))&amp;lt;=$(=Date(Max(DATE)))'} &amp;gt;} [SALES DOLLARS])&lt;/P&gt;&lt;P&gt;/Sum({&amp;lt;BRAND=,DATE = {'&amp;gt;=$(=AddMonths(Max(DATE), -1))&amp;lt;=$(=Date(Max(DATE)))'} &amp;gt;}&amp;nbsp; TOTAL &amp;lt;MARKET,USAGE,SPECIES&amp;gt; [SALES DOLLARS])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nigel.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 May 2013 08:56:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/exclude-a-specific-selection-from-total/m-p/393979#M146907</guid>
      <dc:creator />
      <dc:date>2013-05-22T08:56:38Z</dc:date>
    </item>
    <item>
      <title>Re: exclude a specific selection from total</title>
      <link>https://community.qlik.com/t5/QlikView/exclude-a-specific-selection-from-total/m-p/393980#M146908</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Thanks but it is not giving the correct numbers. &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;I guess it is ignoring the dimension on the chart also (which is again 'BRAND'). &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;I just want to exclude the selection in the 'BRAND' listbox.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 May 2013 09:51:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/exclude-a-specific-selection-from-total/m-p/393980#M146908</guid>
      <dc:creator />
      <dc:date>2013-05-22T09:51:10Z</dc:date>
    </item>
    <item>
      <title>Re: exclude a specific selection from total</title>
      <link>https://community.qlik.com/t5/QlikView/exclude-a-specific-selection-from-total/m-p/393981#M146909</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;I just built a sample using the expression I suggested and it works fine, I think you're problem might be that you're using Sum( {1.....} Sales) which is designed to disregard all selections, perhaps change this to Sum( {$.....} Sales) and see if that works for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If my example is not doing what you want it to do then let me know what you think is wrong, I can then fix the example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Nigel.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 May 2013 10:05:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/exclude-a-specific-selection-from-total/m-p/393981#M146909</guid>
      <dc:creator />
      <dc:date>2013-05-22T10:05:36Z</dc:date>
    </item>
    <item>
      <title>Re: exclude a specific selection from total</title>
      <link>https://community.qlik.com/t5/QlikView/exclude-a-specific-selection-from-total/m-p/393982#M146910</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nigel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My mistake, your earlier expression is working except for a minor change&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;Sum({&amp;lt;DATE = {'&amp;gt;=$(=AddMonths(Max(DATE), -1))&amp;lt;=$(=Date(Max(DATE)))'} &amp;gt;} [SALES DOLLARS])&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;/Sum({&amp;lt;BRAND={'*'},DATE = {'&amp;gt;=$(=AddMonths(Max(DATE), -1))&amp;lt;=$(=Date(Max(DATE)))'} &amp;gt;}&amp;nbsp; TOTAL &amp;lt;MARKET,USAGE,SPECIES&amp;gt; [SALES DOLLARS])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;Thanks a lot...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 May 2013 10:26:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/exclude-a-specific-selection-from-total/m-p/393982#M146910</guid>
      <dc:creator />
      <dc:date>2013-05-22T10:26:38Z</dc:date>
    </item>
  </channel>
</rss>

