<?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 Extract Last 3 months  from date in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Extract-Last-3-months-from-date/m-p/1551560#M457027</link>
    <description>&lt;P&gt;I have a date Update_Date in this date i have 4 years data like 2016,2017,2018,2019&amp;nbsp;&lt;/P&gt;&lt;P&gt;i extract year , month and quarter&amp;nbsp; from this date like this&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;year(update_Date) as Update_year&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;month(update_Date) as Update_month&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;'Q' &amp;amp; Ceil (month(update_date)/3) as Update_quarter&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;now i want to extract last 3 months of current year from update_date e.g.&lt;/P&gt;&lt;P&gt;Today is March so from march last 3 months is Dec 2018, Jan 2019 and Feb 2019&lt;/P&gt;&lt;P&gt;So if today is June then last 3 months will be March 2019 , April 2019, May 2019&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;any solutions?&lt;/P&gt;</description>
    <pubDate>Mon, 04 Mar 2019 07:23:13 GMT</pubDate>
    <dc:creator>capriconuser</dc:creator>
    <dc:date>2019-03-04T07:23:13Z</dc:date>
    <item>
      <title>Extract Last 3 months  from date</title>
      <link>https://community.qlik.com/t5/QlikView/Extract-Last-3-months-from-date/m-p/1551560#M457027</link>
      <description>&lt;P&gt;I have a date Update_Date in this date i have 4 years data like 2016,2017,2018,2019&amp;nbsp;&lt;/P&gt;&lt;P&gt;i extract year , month and quarter&amp;nbsp; from this date like this&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;year(update_Date) as Update_year&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;month(update_Date) as Update_month&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;'Q' &amp;amp; Ceil (month(update_date)/3) as Update_quarter&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;now i want to extract last 3 months of current year from update_date e.g.&lt;/P&gt;&lt;P&gt;Today is March so from march last 3 months is Dec 2018, Jan 2019 and Feb 2019&lt;/P&gt;&lt;P&gt;So if today is June then last 3 months will be March 2019 , April 2019, May 2019&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;any solutions?&lt;/P&gt;</description>
      <pubDate>Mon, 04 Mar 2019 07:23:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Extract-Last-3-months-from-date/m-p/1551560#M457027</guid>
      <dc:creator>capriconuser</dc:creator>
      <dc:date>2019-03-04T07:23:13Z</dc:date>
    </item>
    <item>
      <title>Re: Extract Last 3 months  from date</title>
      <link>https://community.qlik.com/t5/QlikView/Extract-Last-3-months-from-date/m-p/1551563#M457028</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Create variable in script like&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;vLast3MonthStartDate=Monthstart(&lt;SPAN&gt;Update_Date&amp;nbsp;&lt;/SPAN&gt;,-4);&lt;/P&gt;&lt;P&gt;vLastMonthEndDate=MonthEnd(&lt;SPAN&gt;Update_Date&amp;nbsp;&lt;/SPAN&gt;,-1);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;while loading data use variable in where clause&lt;/P&gt;&lt;P&gt;like&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Load *&lt;/P&gt;&lt;P&gt;from table&lt;/P&gt;&lt;P&gt;where &lt;SPAN&gt;Update_Date&amp;nbsp;&lt;/SPAN&gt;&amp;gt;=$(vLast3MonthStartDate) and &lt;SPAN&gt;Update_Date&amp;nbsp;&lt;/SPAN&gt;&amp;lt;=$(vLastMonthEndDate)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can also use an expression for calculating.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Mar 2019 07:33:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Extract-Last-3-months-from-date/m-p/1551563#M457028</guid>
      <dc:creator>shiveshsingh</dc:creator>
      <dc:date>2019-03-04T07:33:08Z</dc:date>
    </item>
    <item>
      <title>Re: Extract Last 3 months  from date</title>
      <link>https://community.qlik.com/t5/QlikView/Extract-Last-3-months-from-date/m-p/1551565#M457029</link>
      <description>&lt;P&gt;in expression i use this&amp;nbsp;&lt;SPAN&gt;Monthstart(&lt;/SPAN&gt;&lt;SPAN&gt;Update_Date&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;,-4);&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;or&amp;nbsp; this&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;MonthEnd(&lt;/SPAN&gt;&lt;SPAN&gt;Update_Date&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;,-1);&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Mar 2019 07:38:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Extract-Last-3-months-from-date/m-p/1551565#M457029</guid>
      <dc:creator>capriconuser</dc:creator>
      <dc:date>2019-03-04T07:38:23Z</dc:date>
    </item>
    <item>
      <title>Re: Extract Last 3 months  from date</title>
      <link>https://community.qlik.com/t5/QlikView/Extract-Last-3-months-from-date/m-p/1551566#M457030</link>
      <description>&lt;P&gt;You can try this expression, plz modify it as required.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;=Sum({&amp;lt;Date = {"&amp;gt;=$(=Max((Addmonths(Date,-3)))) &amp;lt;$(=Max (Addmonths(Date)))"}&amp;gt;} Sales)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Mar 2019 07:39:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Extract-Last-3-months-from-date/m-p/1551566#M457030</guid>
      <dc:creator>shiveshsingh</dc:creator>
      <dc:date>2019-03-04T07:39:08Z</dc:date>
    </item>
    <item>
      <title>Re: Extract Last 3 months  from date</title>
      <link>https://community.qlik.com/t5/QlikView/Extract-Last-3-months-from-date/m-p/1551634#M457031</link>
      <description>&lt;P&gt;will you please explain this expression&lt;/P&gt;</description>
      <pubDate>Mon, 04 Mar 2019 10:24:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Extract-Last-3-months-from-date/m-p/1551634#M457031</guid>
      <dc:creator>capriconuser</dc:creator>
      <dc:date>2019-03-04T10:24:38Z</dc:date>
    </item>
    <item>
      <title>Re: Extract Last 3 months  from date</title>
      <link>https://community.qlik.com/t5/QlikView/Extract-Last-3-months-from-date/m-p/1552309#M457032</link>
      <description>&lt;P&gt;It will give you sum of sales wherein the date is greater than last three months and less than the current month.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Mar 2019 11:09:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Extract-Last-3-months-from-date/m-p/1552309#M457032</guid>
      <dc:creator>shiveshsingh</dc:creator>
      <dc:date>2019-03-05T11:09:47Z</dc:date>
    </item>
    <item>
      <title>Re: Extract Last 3 months  from date</title>
      <link>https://community.qlik.com/t5/QlikView/Extract-Last-3-months-from-date/m-p/1552693#M457033</link>
      <description>&lt;P&gt;ok is this possible to add this date expression without sum ?&lt;/P&gt;&lt;P&gt;like from below expression if we remove sum then how we modify it?&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;=Sum({&amp;lt;Date = {"&amp;gt;=$(=Max((Addmonths(Date,-3)))) &amp;lt;$(=Max (Addmonths(Date)))"}&amp;gt;} Sales)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Mar 2019 06:18:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Extract-Last-3-months-from-date/m-p/1552693#M457033</guid>
      <dc:creator>capriconuser</dc:creator>
      <dc:date>2019-03-06T06:18:07Z</dc:date>
    </item>
  </channel>
</rss>

