<?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: Max sales date from March in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Max-sales-date-from-March/m-p/628923#M477034</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If I'm reading this right to get the last day of a month 2 months ago use...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Date(MonthEnd(Max(date),-2))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...with date being your date field. Just change the number to the number of months ago desired.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 11 May 2014 19:09:01 GMT</pubDate>
    <dc:creator>johnca</dc:creator>
    <dc:date>2014-05-11T19:09:01Z</dc:date>
    <item>
      <title>Max sales date from March</title>
      <link>https://community.qlik.com/t5/QlikView/Max-sales-date-from-March/m-p/628921#M477032</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'm desperately trying to catch last sales date from two months back. Since it's May now, I shoud find last date from March. This is how I tried to do that:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum(Month(AddMonths(Date(Today()),-2)), 'M/D/YYYY'), {&amp;lt;[Snapshot Date] = date(max({1}[Snapshot Date])},Year = {$(=only(Year))} )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 May 2014 16:04:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-sales-date-from-March/m-p/628921#M477032</guid>
      <dc:creator />
      <dc:date>2014-05-11T16:04:31Z</dc:date>
    </item>
    <item>
      <title>Re: Max sales date from March</title>
      <link>https://community.qlik.com/t5/QlikView/Max-sales-date-from-March/m-p/628922#M477033</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;not sure to understand as you have 3 field, year, month and snapshot date and I don't know the meaning;&lt;/P&gt;&lt;P&gt;if d is the date field, m the month field and y the year field &lt;/P&gt;&lt;P&gt;the max date of two months ago maybe &lt;/P&gt;&lt;P&gt;=max ({$&amp;lt;m={"$(=month(addmonths(Today(),-2)))"},y={"$(=year(addmonths(Today(),-2)))"}&amp;gt;} d)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 May 2014 18:06:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-sales-date-from-March/m-p/628922#M477033</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2014-05-11T18:06:25Z</dc:date>
    </item>
    <item>
      <title>Re: Max sales date from March</title>
      <link>https://community.qlik.com/t5/QlikView/Max-sales-date-from-March/m-p/628923#M477034</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If I'm reading this right to get the last day of a month 2 months ago use...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Date(MonthEnd(Max(date),-2))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...with date being your date field. Just change the number to the number of months ago desired.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 May 2014 19:09:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-sales-date-from-March/m-p/628923#M477034</guid>
      <dc:creator>johnca</dc:creator>
      <dc:date>2014-05-11T19:09:01Z</dc:date>
    </item>
  </channel>
</rss>

