<?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: Displaying data for last 12 monthsHi, in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Displaying-data-for-last-12-monthsHi/m-p/505588#M1127231</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I do not want to make any changes to the script. Is it not possible to achieve the objective without making any changes to the script?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Anushree Shetty&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 19 Dec 2013 10:15:11 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-12-19T10:15:11Z</dc:date>
    <item>
      <title>Displaying data for last 12 monthsHi,</title>
      <link>https://community.qlik.com/t5/QlikView/Displaying-data-for-last-12-monthsHi/m-p/505585#M1127228</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 have a requirement wherein the metric data corresponding to month must be displayed through two charts each chart displays the data for 6 month sorted as current month-1, current month-2.... to current month-12.So when I try displaying value for current month-11 and current month-12 data (i.e., data for Jan and Dec) I am getting the data displayed for Jan and Dec of current year and not the previous year. So can anyone please let me know how exactly I would be able to get data for current month-11 of current year i.e., data for Jan 2012 in the chart.&lt;/P&gt;&lt;P&gt;I have attached the application. Please let me know how this can achieved&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Dec 2013 07:28:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Displaying-data-for-last-12-monthsHi/m-p/505585#M1127228</guid>
      <dc:creator />
      <dc:date>2013-12-19T07:28:40Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying data for last 12 monthsHi,</title>
      <link>https://community.qlik.com/t5/QlikView/Displaying-data-for-last-12-monthsHi/m-p/505586#M1127229</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you can follow the below given steps to create a Year over Year metrics.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Since you have Month and Year so you can create a date field using makedate()&lt;/P&gt;&lt;P&gt;Create an inline table like below:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: arial,helvetica,sans-serif;"&gt;monthmap:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: arial,helvetica,sans-serif;"&gt;Mapping load * Inline [&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: arial,helvetica,sans-serif;"&gt;MonthNames,monno&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: arial,helvetica,sans-serif;"&gt;JAN,1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: arial,helvetica,sans-serif;"&gt;FEB,2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: arial,helvetica,sans-serif;"&gt;MAR,3&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: arial,helvetica,sans-serif;"&gt;APR,4&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: arial,helvetica,sans-serif;"&gt;MAY,5&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: arial,helvetica,sans-serif;"&gt;JUN,6&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: arial,helvetica,sans-serif;"&gt;JUL,7&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: arial,helvetica,sans-serif;"&gt;AUG,8&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: arial,helvetica,sans-serif;"&gt;SEP,9&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: arial,helvetica,sans-serif;"&gt;OCT,10&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: arial,helvetica,sans-serif;"&gt;NOV,11&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: arial,helvetica,sans-serif;"&gt;DEC,12&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: arial,helvetica,sans-serif;"&gt;];&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;2. Since you have 2012 and 2013 as values of Year field so you can create a Date field by passing Year, Month and 1 like below:&lt;/P&gt;&lt;P&gt;MakeDate(Year,ApplyMap('monthmap',upper(trim(Month))),1) as dt&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. Now in your chart you can use it like below to create the Year over Year&lt;/P&gt;&lt;P&gt;Dimension: Metric Name&lt;/P&gt;&lt;P&gt;Expression 1 Level: =MonthName(MonthStart(max(dt),-12))&lt;/P&gt;&lt;P&gt;Expression 1 Defn: sum({&amp;lt;Year=,Month=, dt={"$(=MonthStart(max(dt),-12))"} &amp;gt;} Value)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression 2 Level: =MonthName(MonthStart(max(dt),-11))&lt;/P&gt;&lt;P&gt;Expression 2 Defn: sum({&amp;lt;Year=,Month=, dt={"$(=MonthStart(max(dt),-11))"} &amp;gt;} Value)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;continue creating expressions until&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=MonthName(MonthStart(max(dt),-1))&lt;/P&gt;&lt;P&gt;=sum({&amp;lt;Year=,Month=, dt={"$(=MonthStart(max(dt),-1))"} &amp;gt;} Value)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=MonthName(MonthStart(max(dt)))&lt;/P&gt;&lt;P&gt;=sum({&amp;lt;Year=,Month=, dt={"$(=MonthStart(max(dt)))"} &amp;gt;} Value)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your chart will show you 13 months rolling. Dec 2012 till Dec 2013.&lt;/P&gt;&lt;P&gt;Please find the attached QVW for details.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Dec 2013 09:24:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Displaying-data-for-last-12-monthsHi/m-p/505586#M1127229</guid>
      <dc:creator>sudeepkm</dc:creator>
      <dc:date>2013-12-19T09:24:47Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying data for last 12 monthsHi,</title>
      <link>https://community.qlik.com/t5/QlikView/Displaying-data-for-last-12-monthsHi/m-p/505587#M1127230</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sorry I forgot to attach the QVW&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Dec 2013 09:26:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Displaying-data-for-last-12-monthsHi/m-p/505587#M1127230</guid>
      <dc:creator>sudeepkm</dc:creator>
      <dc:date>2013-12-19T09:26:55Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying data for last 12 monthsHi,</title>
      <link>https://community.qlik.com/t5/QlikView/Displaying-data-for-last-12-monthsHi/m-p/505588#M1127231</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I do not want to make any changes to the script. Is it not possible to achieve the objective without making any changes to the script?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Anushree Shetty&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Dec 2013 10:15:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Displaying-data-for-last-12-monthsHi/m-p/505588#M1127231</guid>
      <dc:creator />
      <dc:date>2013-12-19T10:15:11Z</dc:date>
    </item>
  </channel>
</rss>

