<?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: YTD - Set Analysis Exclusion in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/YTD-Set-Analysis-Exclusion/m-p/1263744#M398327</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;&lt;STRONG&gt;=Sum({$&amp;lt;YEAR= {$(vPrevYear)}, [Acc Month] = {"&amp;lt;=$(=max({&lt;SPAN style="color: #ff0000;"&gt;1&lt;/SPAN&gt;&amp;lt;[Acc Year]={$(=max(&lt;SPAN style="color: #ff0000;"&gt;{1}&lt;/SPAN&gt;[Acc Year]))}&amp;gt;} [Acc Month]))"}&amp;gt;} Line_Pending_Count)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Jan 2017 18:52:57 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2017-01-17T18:52:57Z</dc:date>
    <item>
      <title>YTD - Set Analysis Exclusion</title>
      <link>https://community.qlik.com/t5/QlikView/YTD-Set-Analysis-Exclusion/m-p/1263742#M398325</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;Below is a working formula that I am using to get the SUM of my Previous Year:&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;=sum({$&amp;lt;YEAR= {$(vPrevYear)}, [Acc Month] = {"&amp;lt;=$(=max({&amp;lt;[Acc Year]={$(=max([Acc Year]))}&amp;gt;} [Acc Month]))"} &amp;gt;} Line_Pending_Count)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My issue is that I have a filter box using the [YEAR] field listing the current years in the data (2016, 2015). When "2016" is selected in the filter box the formula above is correct, but when "2015" is selected it is taking the SUM of the entire year (2015). I know this is because [Acc Year] is being modified when making a selection to the [YEAR] filter box. So for example: if I select [YEAR] = 2015... the MAX([Acc Year] is now 2015.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question is how do I override this in the formula above? I would like max[Acc Year] to always be the TRUE max. I know you can place a {1} in front of the field, but I can't seem to get that to work in the particular formula.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions would be greatly appreciated!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jan 2017 18:45:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/YTD-Set-Analysis-Exclusion/m-p/1263742#M398325</guid>
      <dc:creator />
      <dc:date>2017-01-17T18:45:44Z</dc:date>
    </item>
    <item>
      <title>Re: YTD - Set Analysis Exclusion</title>
      <link>https://community.qlik.com/t5/QlikView/YTD-Set-Analysis-Exclusion/m-p/1263743#M398326</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try Adding the selection exclusion for the [Acc Year] field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope below expression helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;=sum({$&amp;lt;[Acc Year]=, YEAR= {$(vPrevYear)}, [Acc Month] = {"&amp;lt;=$(=max({&amp;lt;[Acc Year]={$(=max([Acc Year]))}&amp;gt;} [Acc Month]))"} &amp;gt;} Line_Pending_Count)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jan 2017 18:52:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/YTD-Set-Analysis-Exclusion/m-p/1263743#M398326</guid>
      <dc:creator>krishnacbe</dc:creator>
      <dc:date>2017-01-17T18:52:46Z</dc:date>
    </item>
    <item>
      <title>Re: YTD - Set Analysis Exclusion</title>
      <link>https://community.qlik.com/t5/QlikView/YTD-Set-Analysis-Exclusion/m-p/1263744#M398327</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;&lt;STRONG&gt;=Sum({$&amp;lt;YEAR= {$(vPrevYear)}, [Acc Month] = {"&amp;lt;=$(=max({&lt;SPAN style="color: #ff0000;"&gt;1&lt;/SPAN&gt;&amp;lt;[Acc Year]={$(=max(&lt;SPAN style="color: #ff0000;"&gt;{1}&lt;/SPAN&gt;[Acc Year]))}&amp;gt;} [Acc Month]))"}&amp;gt;} Line_Pending_Count)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jan 2017 18:52:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/YTD-Set-Analysis-Exclusion/m-p/1263744#M398327</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-01-17T18:52:57Z</dc:date>
    </item>
    <item>
      <title>Re: YTD - Set Analysis Exclusion</title>
      <link>https://community.qlik.com/t5/QlikView/YTD-Set-Analysis-Exclusion/m-p/1263745#M398328</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Works !!!! Thank you!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jan 2017 18:58:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/YTD-Set-Analysis-Exclusion/m-p/1263745#M398328</guid>
      <dc:creator />
      <dc:date>2017-01-17T18:58:21Z</dc:date>
    </item>
  </channel>
</rss>

