<?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: Set Analysis and max date in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-and-max-date/m-p/1007643#M342152</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That works!&amp;nbsp; The 1 in front is making the difference.&amp;nbsp; Thank you so much!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 Sep 2015 21:14:50 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-09-09T21:14:50Z</dc:date>
    <item>
      <title>Set Analysis and max date</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-and-max-date/m-p/1007635#M342144</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&amp;nbsp; I'm trying to compare amounts based on the max month available.&lt;/P&gt;&lt;P&gt;My issue occurs whenever I select a month, the expressions sum the selected month's amount instead of the previous month's amount.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's an example of my code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First Column:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;=sum({&amp;lt;Reporting_Period_Num = {'=(max(Reporting_Period_Num))'}&amp;gt;} Account_Balance)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Second column:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;=sum({&amp;lt;Reporting_Period_Num = {'=(max(Reporting_Period_Num)-1)'}&amp;gt;} Account_Balance)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Sep 2015 20:34:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-and-max-date/m-p/1007635#M342144</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-09-09T20:34:46Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis and max date</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-and-max-date/m-p/1007636#M342145</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You mean your second column shows you the sum for the selected period?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Sep 2015 20:40:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-and-max-date/m-p/1007636#M342145</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-09-09T20:40:11Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis and max date</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-and-max-date/m-p/1007637#M342146</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Both columns do.&amp;nbsp; When a month is not selected, it shows the sum for all periods as if the set analysis is being ignored&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Sep 2015 20:41:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-and-max-date/m-p/1007637#M342146</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-09-09T20:41:42Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis and max date</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-and-max-date/m-p/1007638#M342147</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See if this helps:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;First Column:&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-size: 13.3333px; font-style: inherit; font-family: inherit;"&gt;&lt;STRONG&gt;=Sum({&amp;lt;Reporting_Period_Num = {&lt;SPAN style="color: #ff0000;"&gt;"$(=&lt;/SPAN&gt;Max(Reporting_Period_Num))&lt;SPAN style="color: #ff0000;"&gt;"&lt;/SPAN&gt;}&amp;gt;} Account_Balance)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-size: 13.3333px; font-style: inherit; font-family: inherit;"&gt;&lt;STRONG&gt;Second column:&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;=Sum({&amp;lt;Reporting_Period_Num = {&lt;SPAN style="color: #ff0000;"&gt;"$(=&lt;/SPAN&gt;Max(Reporting_Period_Num)-1)&lt;SPAN style="color: #ff0000;"&gt;"&lt;/SPAN&gt;}&amp;gt;} Account_Balance)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Sep 2015 20:43:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-and-max-date/m-p/1007638#M342147</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-09-09T20:43:06Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis and max date</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-and-max-date/m-p/1007639#M342148</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That just gives me 0's across the board&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Sep 2015 20:45:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-and-max-date/m-p/1007639#M342148</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-09-09T20:45:59Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis and max date</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-and-max-date/m-p/1007640#M342149</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I made some changes to the expression, did you use these?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;First Column:&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;&lt;STRONG style="font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;=Sum({&amp;lt;Reporting_Period_Num = {&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit; color: #ff0000;"&gt;"$(=&lt;/SPAN&gt;Max(Reporting_Period_Num))&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit; color: #ff0000;"&gt;"&lt;/SPAN&gt;}&amp;gt;} Account_Balance)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;&lt;STRONG style="font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;Second column:&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;=Sum({&amp;lt;Reporting_Period_Num = {&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff0000;"&gt;"$(=&lt;/SPAN&gt;Max(Reporting_Period_Num)-1)&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff0000;"&gt;"&lt;/SPAN&gt;}&amp;gt;} Account_Balance)&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;If not, try them. If you did, then can you share some date to check?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Sep 2015 20:47:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-and-max-date/m-p/1007640#M342149</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-09-09T20:47:28Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis and max date</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-and-max-date/m-p/1007641#M342150</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Close.&amp;nbsp; It works now until I select a month, then the column that takes the max period-1 turns to 0&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Sep 2015 21:09:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-and-max-date/m-p/1007641#M342150</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-09-09T21:09:11Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis and max date</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-and-max-date/m-p/1007642#M342151</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you will need to add other mastercalendar fields in here to work:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-style: inherit; font-size: 13px; font-family: inherit; color: #3d3d3d;"&gt;=Sum({&amp;lt;Reporting_Period_Num = {&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff0000;"&gt;"$(=&lt;/SPAN&gt;Max(Reporting_Period_Num)-1)&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff0000;"&gt;"&lt;/SPAN&gt;}, Month = , Year = , Date = &amp;gt;} Account_Balance)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or try this with a 1 to restrict any selections except the one (&lt;STRONG style="font-style: inherit; font-size: 13px; font-family: inherit; color: #3d3d3d;"&gt;Reporting_Period_Num&lt;/STRONG&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-style: inherit; font-size: 13px; font-family: inherit; color: #3d3d3d;"&gt;=Sum({1&amp;lt;Reporting_Period_Num = {&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff0000;"&gt;"$(=&lt;/SPAN&gt;Max(Reporting_Period_Num)-1)&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff0000;"&gt;"&lt;/SPAN&gt;}&amp;gt;} Account_Balance)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Sep 2015 21:12:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-and-max-date/m-p/1007642#M342151</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-09-09T21:12:01Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis and max date</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-and-max-date/m-p/1007643#M342152</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That works!&amp;nbsp; The 1 in front is making the difference.&amp;nbsp; Thank you so much!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Sep 2015 21:14:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-and-max-date/m-p/1007643#M342152</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-09-09T21:14:50Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis and max date</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-and-max-date/m-p/1007644#M342153</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;But make sure you understand what it is doing. 1 in the front will make the expression not respond to any selection except Reporting_Period_Num. Is that what you want? If not, I would suggest using the other expression with all the master calendar fields in it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Sep 2015 21:16:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-and-max-date/m-p/1007644#M342153</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-09-09T21:16:40Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis and max date</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-and-max-date/m-p/1007645#M342154</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You're right.&amp;nbsp; Utilizing the master calendar is the better way to go here as I don't want to ignore the other filters&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Sep 2015 21:30:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-and-max-date/m-p/1007645#M342154</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-09-09T21:30:53Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis and max date</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-and-max-date/m-p/1007646#M342155</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for providing this response this has helped my implement a comparison between current and previous period.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Count({$&amp;lt;Period_seq={$(=max(Period_seq))}&amp;gt;} NPS)&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Count({$&amp;lt;Period_seq={$(=max(Period_seq-1))}&amp;gt;} NPS)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;1=30/11/2015&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;2=31/12/2015&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;3=31/1/2016&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;etc&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I now want to include all data over the last 12 months, so need to add a greater than sign to the above, something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Count({$&amp;lt;Period_seq&lt;STRONG&gt;&amp;gt;&lt;/STRONG&gt;{$(=max(Period_seq-&lt;STRONG&gt;13&lt;/STRONG&gt;))}&amp;gt;} NPS)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Can you help?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Best wishes&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Feb 2017 05:55:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-and-max-date/m-p/1007646#M342155</guid>
      <dc:creator />
      <dc:date>2017-02-10T05:55:12Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis and max date</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-and-max-date/m-p/1007647#M342156</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;&lt;STRONG&gt;If(Period_seq &amp;gt; AddMonths(Max(Period_seq),-12), Count(NPS))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;&lt;STRONG&gt;Or&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;&lt;STRONG&gt;Count({&amp;lt;Period_seq = {"&amp;gt; $(=AddMonths(Max(Period_seq),-12))"}&amp;gt;}NPS)&lt;/STRONG&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;&lt;STRONG&gt;Or&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;&lt;STRONG&gt;Count({&amp;lt;Period_seq = {"&amp;gt; $(=AddYears(Max(Period_seq),-1))"}&amp;gt;}NPS)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;Or&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #575757; font-style: inherit; font-size: 10pt; font-family: Arial, sans-serif; font-weight: inherit;"&gt;&lt;STRONG&gt;Count&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #575757;"&gt;&lt;STRONG&gt;&lt;SPAN style="font-style: inherit; font-size: 10pt; font-family: Arial, sans-serif;"&gt; ({&amp;lt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;&lt;STRONG&gt;Period_seq &lt;/STRONG&gt;&lt;/SPAN&gt;= &lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 10pt; font-family: Arial, sans-serif;"&gt;{&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 10pt; font-family: Arial, sans-serif;"&gt;"=Aggr(If(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;&lt;STRONG&gt;Period_seq &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 10pt;"&gt;&amp;gt;AddMonths(Max(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;&lt;STRONG&gt;Period_seq&lt;/STRONG&gt;&lt;/SPAN&gt;),-1)&lt;SPAN style="font-style: inherit; font-size: 10pt;"&gt;,&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;&lt;STRONG&gt;Period_seq &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 10pt;"&gt;),&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;&lt;STRONG&gt;Period_seq &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 10pt;"&gt;)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: Arial, sans-serif;"&gt;&lt;STRONG&gt;&lt;SPAN style="font-style: inherit; font-size: 10pt;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 10pt;"&gt;}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 10pt;"&gt;NPS&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt;"&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-size: 10pt; font-style: inherit; font-family: Arial, sans-serif; font-weight: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Feb 2017 06:04:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-and-max-date/m-p/1007647#M342156</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-02-10T06:04:20Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis and max date</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-and-max-date/m-p/1007648#M342157</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Count({$&amp;lt;Period_seq = {"$(='&amp;gt;=' &amp;amp; Max(Period_seq-13) &amp;amp; '&amp;lt;=' &amp;amp; Max(Period_seq))"}&amp;gt;} NPS)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would add less then equal to Max(Period_seq) to make sure you still see 12 months of data if you have made selections. Otherwise if you don't but the &amp;lt;= condition, you will see a lot of more data then you expect after selection in Period_seq&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Feb 2017 06:14:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-and-max-date/m-p/1007648#M342157</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-02-10T06:14:33Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis and max date</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-and-max-date/m-p/1007649#M342158</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks so much!&amp;nbsp; This works!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Feb 2017 06:41:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-and-max-date/m-p/1007649#M342158</guid>
      <dc:creator />
      <dc:date>2017-02-10T06:41:21Z</dc:date>
    </item>
  </channel>
</rss>

