<?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 Problem with excluding sites in a YTD Comparison, Example Attached in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Problem-with-excluding-sites-in-a-YTD-Comparison-Example/m-p/203609#M60881</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Add this:&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;StoreName*=P({1&amp;lt;YearMonth = {$(vPYMaxDate)}&amp;gt;} StoreName)&lt;/P&gt;&lt;P&gt;Which gives you this:&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;=num(sum({1&amp;lt;YearMonth= {$(vMaxDate)}, AdvertiserNew = {'Aspen-Pharmacare'},TerminalsFlag = {'1'},ManufacturerGroup = {'Aspen-Pharmacare'},StoreName*=P({1&amp;lt;YearMonth = {$(vPYMaxDate)}&amp;gt;} StoreName) &amp;gt;} Sales ),'R#' )&lt;/P&gt;&lt;P&gt;The extra condition says to intersect the StoreNames that would have been "selected" with the StoreNames that were posssible (had sales) the same month last year. So you'll only include StoreNames that have sales in this month both this year and last year. I believe that's what you're asking for. However, I'm worried that it's a mistake. What do you want to do if a store had sales last year this month, but NOT this year this month? Currently, you'd see sales going down, even if other stores have replaced the one you lost. Not sure if that's really what you're after, but maybe it is.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 17 Sep 2010 00:06:21 GMT</pubDate>
    <dc:creator>johnw</dc:creator>
    <dc:date>2010-09-17T00:06:21Z</dc:date>
    <item>
      <title>Problem with excluding sites in a YTD Comparison, Example Attached</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-excluding-sites-in-a-YTD-Comparison-Example/m-p/203607#M60879</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;Please see in the Attached Demo File, what i am trying to do. I only want a comparison of the possible Stores, not the new Stores that are only active in 201007, i hope this is enough information. If not please let me know.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Sep 2010 09:17:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-excluding-sites-in-a-YTD-Comparison-Example/m-p/203607#M60879</guid>
      <dc:creator />
      <dc:date>2010-09-16T09:17:25Z</dc:date>
    </item>
    <item>
      <title>Problem with excluding sites in a YTD Comparison, Example Attached</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-excluding-sites-in-a-YTD-Comparison-Example/m-p/203608#M60880</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does anyone know what i'm talking about? &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Sep 2010 13:14:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-excluding-sites-in-a-YTD-Comparison-Example/m-p/203608#M60880</guid>
      <dc:creator />
      <dc:date>2010-09-16T13:14:50Z</dc:date>
    </item>
    <item>
      <title>Problem with excluding sites in a YTD Comparison, Example Attached</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-excluding-sites-in-a-YTD-Comparison-Example/m-p/203609#M60881</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Add this:&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;StoreName*=P({1&amp;lt;YearMonth = {$(vPYMaxDate)}&amp;gt;} StoreName)&lt;/P&gt;&lt;P&gt;Which gives you this:&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;=num(sum({1&amp;lt;YearMonth= {$(vMaxDate)}, AdvertiserNew = {'Aspen-Pharmacare'},TerminalsFlag = {'1'},ManufacturerGroup = {'Aspen-Pharmacare'},StoreName*=P({1&amp;lt;YearMonth = {$(vPYMaxDate)}&amp;gt;} StoreName) &amp;gt;} Sales ),'R#' )&lt;/P&gt;&lt;P&gt;The extra condition says to intersect the StoreNames that would have been "selected" with the StoreNames that were posssible (had sales) the same month last year. So you'll only include StoreNames that have sales in this month both this year and last year. I believe that's what you're asking for. However, I'm worried that it's a mistake. What do you want to do if a store had sales last year this month, but NOT this year this month? Currently, you'd see sales going down, even if other stores have replaced the one you lost. Not sure if that's really what you're after, but maybe it is.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Sep 2010 00:06:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-excluding-sites-in-a-YTD-Comparison-Example/m-p/203609#M60881</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2010-09-17T00:06:21Z</dc:date>
    </item>
  </channel>
</rss>

