<?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: Last 13 months data in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Last-13-months-data/m-p/682388#M247393</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kalyani,&lt;/P&gt;&lt;P&gt;You can use below script in where clause to achieve that. Here, I am converting yearperiod field which has "&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;2013P01&lt;/SPAN&gt;" format to "1/1/2013" date format.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Where Date(Date#(yearperiod, 'YYYYPMM'))&amp;gt;AddMonths(Today(), -10);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps you&lt;/P&gt;&lt;P&gt;Satya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 01 Jul 2014 02:36:32 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-07-01T02:36:32Z</dc:date>
    <item>
      <title>Last 13 months data</title>
      <link>https://community.qlik.com/t5/QlikView/Last-13-months-data/m-p/682387#M247392</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have data of 20 &lt;SPAN class="GINGER_SOFTWARE_mark"&gt;period&lt;/SPAN&gt; as 2013P01 format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have only one field &lt;SPAN class="GINGER_SOFTWARE_mark"&gt;yearperiod&lt;/SPAN&gt;&lt;SPAN class="GINGER_SOFTWARE_mark"&gt;,,&lt;/SPAN&gt;based on &lt;SPAN class="GINGER_SOFTWARE_mark"&gt;this how&lt;/SPAN&gt; could &lt;SPAN class="GINGER_SOFTWARE_mark"&gt;i&lt;/SPAN&gt; apply last 10 months data. &lt;SPAN class="GINGER_SOFTWARE_mark"&gt;whatever&lt;/SPAN&gt; data come &lt;SPAN class="GINGER_SOFTWARE_mark"&gt;i&lt;/SPAN&gt; always want to keep &lt;SPAN class="GINGER_SOFTWARE_mark"&gt;last 10 mnths&lt;/SPAN&gt; data in my report. Could you please help me&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jun 2014 14:41:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-13-months-data/m-p/682387#M247392</guid>
      <dc:creator />
      <dc:date>2014-06-30T14:41:30Z</dc:date>
    </item>
    <item>
      <title>Re: Last 13 months data</title>
      <link>https://community.qlik.com/t5/QlikView/Last-13-months-data/m-p/682388#M247393</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kalyani,&lt;/P&gt;&lt;P&gt;You can use below script in where clause to achieve that. Here, I am converting yearperiod field which has "&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;2013P01&lt;/SPAN&gt;" format to "1/1/2013" date format.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Where Date(Date#(yearperiod, 'YYYYPMM'))&amp;gt;AddMonths(Today(), -10);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps you&lt;/P&gt;&lt;P&gt;Satya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Jul 2014 02:36:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-13-months-data/m-p/682388#M247393</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-07-01T02:36:32Z</dc:date>
    </item>
    <item>
      <title>Re: Last 13 months data</title>
      <link>https://community.qlik.com/t5/QlikView/Last-13-months-data/m-p/682389#M247394</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Satyadev.&lt;SPAN class="GINGER_SOFTWARE_mark"&gt;.&lt;/SPAN&gt;thanks a lot for your response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I have tried with the above &lt;SPAN class="GINGER_SOFTWARE_mark"&gt;expression but&lt;/SPAN&gt; it is not working.&lt;/P&gt;&lt;P&gt;While loading &lt;SPAN class="GINGER_SOFTWARE_mark"&gt;yearperiod&lt;/SPAN&gt; I &lt;SPAN class="GINGER_SOFTWARE_mark"&gt;an&lt;/SPAN&gt; restricting with &lt;SPAN class="GINGER_SOFTWARE_mark"&gt;thus&lt;/SPAN&gt; expression&lt;SPAN class="GINGER_SOFTWARE_mark"&gt;,&lt;/SPAN&gt;but not working for me,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Jul 2014 17:24:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-13-months-data/m-p/682389#M247394</guid>
      <dc:creator />
      <dc:date>2014-07-01T17:24:19Z</dc:date>
    </item>
    <item>
      <title>Re: Last 13 months data</title>
      <link>https://community.qlik.com/t5/QlikView/Last-13-months-data/m-p/682390#M247395</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;Try this. In your expression put:&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;YEARPERIOD={"&amp;gt;=$(=AddMonths(Today(), -10))&amp;lt;=$(=Date(Today(),'YYYYMM'))"}&amp;gt;} FIELD)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Jul 2014 17:48:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-13-months-data/m-p/682390#M247395</guid>
      <dc:creator>MarcoARaymundo</dc:creator>
      <dc:date>2014-07-01T17:48:11Z</dc:date>
    </item>
    <item>
      <title>Re: Last 13 months data</title>
      <link>https://community.qlik.com/t5/QlikView/Last-13-months-data/m-p/682391#M247396</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kalyani,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you getting any error? Could you share a sample app to understand more on this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above script first converting yearperiod which is in &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;2013P01&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;"&lt;/SPAN&gt; format to date format and extracting last 10 months data by comparing with addmonths(today(), -10).&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jul 2014 01:17:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-13-months-data/m-p/682391#M247396</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-07-02T01:17:51Z</dc:date>
    </item>
    <item>
      <title>Re: Last 13 months data</title>
      <link>https://community.qlik.com/t5/QlikView/Last-13-months-data/m-p/682392#M247397</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 style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;*,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: arial, sans-serif; color: #222222;"&gt;MakeDate(Left(MonthFieldName, 4), Right(&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;MonthFieldName&lt;/SPAN&gt;, 2)) AS DateFieldName&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: arial, sans-serif; color: #222222;"&gt;FROM DataSource;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: arial, sans-serif; color: #222222;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: arial, sans-serif; color: #222222;"&gt;Now use this expression&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: arial, sans-serif; color: #222222;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: arial, sans-serif; color: #222222;"&gt;=sum({&amp;lt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;MonthFieldName&lt;/SPAN&gt;=, YearFieldName=, &lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;DateFieldName&lt;/SPAN&gt;={'&amp;gt;=$(=MonthStart(Max(&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;DateFieldName&lt;/SPAN&gt;), -10))&amp;lt;=$(=Date(Max(&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;DateFieldName&lt;/SPAN&gt;)))'}&amp;gt;} MeasureName)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: arial, sans-serif; color: #222222;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: arial, sans-serif; color: #222222;"&gt;or&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: arial, sans-serif; color: #222222;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: arial, sans-serif; color: #222222;"&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif;"&gt;=sum({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-style: inherit; font-weight: inherit;"&gt;MonthFieldName&lt;/SPAN&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif;"&gt;=, YearFieldName=, &lt;/SPAN&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-style: inherit; font-weight: inherit;"&gt;DateFieldName&lt;/SPAN&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif;"&gt;={'&amp;gt;=$(=MonthStart(Max(&lt;/SPAN&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-style: inherit; font-weight: inherit;"&gt;DateFieldName&lt;/SPAN&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif;"&gt;), -9))&amp;lt;=$(=Date(Max(&lt;/SPAN&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-style: inherit; font-weight: inherit;"&gt;DateFieldName&lt;/SPAN&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif;"&gt;)))'}&amp;gt;} MeasureName)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: arial, sans-serif; color: #222222;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: arial, sans-serif; color: #222222;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: arial, sans-serif; color: #222222;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: arial, sans-serif; color: #222222;"&gt;Jagan.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jul 2014 02:07:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-13-months-data/m-p/682392#M247397</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2014-07-02T02:07:12Z</dc:date>
    </item>
    <item>
      <title>Re: Last 13 months data</title>
      <link>https://community.qlik.com/t5/QlikView/Last-13-months-data/m-p/682393#M247398</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN class="GINGER_SOFTWARE_mark"&gt;hi&lt;/SPAN&gt; &lt;SPAN class="GINGER_SOFTWARE_mark"&gt;guys thanx&lt;/SPAN&gt;&amp;nbsp; a lot&lt;SPAN class="GINGER_SOFTWARE_mark"&gt;,&lt;/SPAN&gt;it works &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 Jul 2014 06:57:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-13-months-data/m-p/682393#M247398</guid>
      <dc:creator />
      <dc:date>2014-07-12T06:57:34Z</dc:date>
    </item>
    <item>
      <title>Re: Last 13 months data</title>
      <link>https://community.qlik.com/t5/QlikView/Last-13-months-data/m-p/682394#M247399</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kalyani,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please close this thread by giving Correct and Useful Answers to the posts which are helpful to you, so that it would be helpful for others.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jul 2014 02:23:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-13-months-data/m-p/682394#M247399</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2014-07-14T02:23:33Z</dc:date>
    </item>
  </channel>
</rss>

