<?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: How to get date (last day of prev. quarter) from quarter? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-get-date-last-day-of-prev-quarter-from-quarter/m-p/999729#M339902</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;EM style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;DayName(QuarterEnd(maxdate),-1)&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Aug 2015 14:56:30 GMT</pubDate>
    <dc:creator>MarcoWedel</dc:creator>
    <dc:date>2015-08-26T14:56:30Z</dc:date>
    <item>
      <title>How to get date (last day of prev. quarter) from quarter?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-date-last-day-of-prev-quarter-from-quarter/m-p/999726#M339899</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I need to compare results of current quarter and previous quarter (I use set analysis) and I need to extract whole date from quarter..&lt;/P&gt;&lt;P&gt;I know how to get max month from previous quarter -&amp;gt;&lt;EM&gt; previous_quarter_month =Month(QuarterEnd(maxdate))-3 &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;(maxdate is variable max(date))&lt;/P&gt;&lt;P&gt;but I do not know how to extract also the last day of the month..because if I use &lt;EM&gt;day_previous_quarter&lt;/EM&gt; =&lt;EM&gt;day(MonthEnd(previous_quarter_month))&lt;/EM&gt; it returns bad value (e.g. 31 even if the month is June which has just 30 days..)&lt;/P&gt;&lt;P&gt;In set analysis I need to define month and day separately.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea how to find out the whole date of the last day of the previous quarter?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you so much.&lt;/P&gt;&lt;P&gt;Nela&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Aug 2015 13:04:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-date-last-day-of-prev-quarter-from-quarter/m-p/999726#M339899</guid>
      <dc:creator />
      <dc:date>2015-08-26T13:04:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to get date (last day of prev. quarter) from quarter?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-date-last-day-of-prev-quarter-from-quarter/m-p/999727#M339900</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The problem is with the function month, this function does not return a date, but only the month. MonthEnd however expects a date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So for &lt;EM style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;day_previous_quarter&lt;/EM&gt;&lt;EM style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt; try use&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;=day(QuarterEnd('$(=Addmonths(Max(Date),-3))'))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also mind the quotes&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Aug 2015 14:05:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-date-last-day-of-prev-quarter-from-quarter/m-p/999727#M339900</guid>
      <dc:creator>stigchel</dc:creator>
      <dc:date>2015-08-26T14:05:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to get date (last day of prev. quarter) from quarter?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-date-last-day-of-prev-quarter-from-quarter/m-p/999728#M339901</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use a second argument to function quarterend() to indicate previous quarter:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;QuarterEnd&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;today&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(),-1)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Or &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;=QuarterEnd(Max(Date), -1)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;This will return a timestamp, use floor if you want to get the integer:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;=Date(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Floor&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;QuarterEnd&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(max(Date)&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,-1)) )&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Or to get the Month or Day:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Month&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;QuarterEnd&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;max(Date)&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,-1)) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;=Day(QuarterEnd(max(Date), -1))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Aug 2015 14:13:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-date-last-day-of-prev-quarter-from-quarter/m-p/999728#M339901</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-08-26T14:13:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to get date (last day of prev. quarter) from quarter?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-date-last-day-of-prev-quarter-from-quarter/m-p/999729#M339902</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;EM style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;DayName(QuarterEnd(maxdate),-1)&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Aug 2015 14:56:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-date-last-day-of-prev-quarter-from-quarter/m-p/999729#M339902</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2015-08-26T14:56:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to get date (last day of prev. quarter) from quarter?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-date-last-day-of-prev-quarter-from-quarter/m-p/999730#M339903</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you so much, it works &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Aug 2015 06:42:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-date-last-day-of-prev-quarter-from-quarter/m-p/999730#M339903</guid>
      <dc:creator />
      <dc:date>2015-08-27T06:42:17Z</dc:date>
    </item>
  </channel>
</rss>

