<?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: Issue on retrieving the latest month in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Issue-on-retrieving-the-latest-month/m-p/1116267#M368430</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thnaks got it but , now wht i need is example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if &lt;/P&gt;&lt;P&gt;2015 have from jan to dec &lt;/P&gt;&lt;P&gt;2016 have from jan to may&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;they need latest 14 months &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so they need as &lt;/P&gt;&lt;P&gt;2016 from jan to may and also they need aug, sep, oct, nov, dec from 2015&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so they need latest 14 months?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 08 Jul 2016 06:13:00 GMT</pubDate>
    <dc:creator>manoranjan_d</dc:creator>
    <dc:date>2016-07-08T06:13:00Z</dc:date>
    <item>
      <title>Issue on retrieving the latest month</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-on-retrieving-the-latest-month/m-p/1116265#M368428</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I m using the the below coding, but its not considering to take the value for the LATEST_MONTH FIELD &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;load&lt;/P&gt;&lt;P&gt;date(DATE,'YYYY') as YEAR,&lt;/P&gt;&lt;P&gt;&amp;nbsp; date(DATE,'MMM') as MONTH,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&amp;nbsp; if(date(&lt;SPAN style="font-size: 13.3333px;"&gt;DATE&lt;/SPAN&gt;,'YYYY')=Year(Today()),date(&lt;SPAN style="font-size: 13.3333px;"&gt;DATE&lt;/SPAN&gt;,'MM')) as LATEST_MONTH&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;FROM XXX table&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jul 2016 05:57:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-on-retrieving-the-latest-month/m-p/1116265#M368428</guid>
      <dc:creator>manoranjan_d</dc:creator>
      <dc:date>2016-07-08T05:57:44Z</dc:date>
    </item>
    <item>
      <title>Re: Issue on retrieving the latest month</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-on-retrieving-the-latest-month/m-p/1116266#M368429</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Manioranjan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try,&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;Load&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date(DATE,'YYYY') as YEAR,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date(DATE,'MMM') as MONTH,&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: 10pt; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(&lt;STRONG&gt;Year&lt;/STRONG&gt;(&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;DATE&lt;/SPAN&gt;)=Year(Today()),date(&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;DATE&lt;/SPAN&gt;,'MM')) as LATEST_MONTH&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: 10pt; font-family: inherit;"&gt;FROM XXX table&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jul 2016 06:04:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-on-retrieving-the-latest-month/m-p/1116266#M368429</guid>
      <dc:creator>tamilarasu</dc:creator>
      <dc:date>2016-07-08T06:04:33Z</dc:date>
    </item>
    <item>
      <title>Re: Issue on retrieving the latest month</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-on-retrieving-the-latest-month/m-p/1116267#M368430</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thnaks got it but , now wht i need is example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if &lt;/P&gt;&lt;P&gt;2015 have from jan to dec &lt;/P&gt;&lt;P&gt;2016 have from jan to may&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;they need latest 14 months &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so they need as &lt;/P&gt;&lt;P&gt;2016 from jan to may and also they need aug, sep, oct, nov, dec from 2015&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so they need latest 14 months?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jul 2016 06:13:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-on-retrieving-the-latest-month/m-p/1116267#M368430</guid>
      <dc:creator>manoranjan_d</dc:creator>
      <dc:date>2016-07-08T06:13:00Z</dc:date>
    </item>
    <item>
      <title>Re: Issue on retrieving the latest month</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-on-retrieving-the-latest-month/m-p/1116268#M368431</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;Addmonths() can help you for the last 14 months data&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jul 2016 06:19:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-on-retrieving-the-latest-month/m-p/1116268#M368431</guid>
      <dc:creator>varshavig12</dc:creator>
      <dc:date>2016-07-08T06:19:08Z</dc:date>
    </item>
    <item>
      <title>Re: Issue on retrieving the latest month</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-on-retrieving-the-latest-month/m-p/1116269#M368432</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Fine. try like below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Load&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date(DATE,'YYYY') as YEAR,&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date(DATE,'MMM') as MONTH,&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(DATE &amp;gt;= Monthstart(Addmonths(Today(),-14)),Date(DATE,'MM')) as LAST_14_MONTH,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;FROM XXX table;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jul 2016 06:23:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-on-retrieving-the-latest-month/m-p/1116269#M368432</guid>
      <dc:creator>tamilarasu</dc:creator>
      <dc:date>2016-07-08T06:23:12Z</dc:date>
    </item>
  </channel>
</rss>

