<?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 Last 12 months in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Last-12-months/m-p/216292#M715304</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Michael,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank very much for this file! The only thing is, that now maximum date is December 2010 (insted of current- January), so it's not exactly what I wanted. I am trying to find why maximum date is December 2010, and when it will be changed it will be perfect! If you see the mistake, please let me know.&lt;/P&gt;&lt;P&gt;Acha, and I would like to ask you for one more thing- could you next time copy/paste changes you made, insted of attaching a file? Unfortunately I'm still Personal Edition user:(&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance,&lt;/P&gt;&lt;P&gt;Best greetings,&lt;/P&gt;&lt;P&gt;Beata&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Jan 2010 09:03:09 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-01-20T09:03:09Z</dc:date>
    <item>
      <title>Last 12 months</title>
      <link>https://community.qlik.com/t5/QlikView/Last-12-months/m-p/216283#M715295</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hallo everybody,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to show on the graph last 12 months (only) and till now I tried to work with calculating dimension. As it didn't work I thought to add new position (last12Months) in script. Could anybody help? In attachment my Calendar;-)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thnak you in advance,&lt;/P&gt;&lt;P&gt;Beata Jablonska&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jan 2010 10:11:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-12-months/m-p/216283#M715295</guid>
      <dc:creator />
      <dc:date>2010-01-19T10:11:01Z</dc:date>
    </item>
    <item>
      <title>Last 12 months</title>
      <link>https://community.qlik.com/t5/QlikView/Last-12-months/m-p/216284#M715296</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 suggest you to use "set analysis" in expression. I attached qv application with this expression in it.&lt;/P&gt;&lt;P&gt;I hope this will help you &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jan 2010 11:06:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-12-months/m-p/216284#M715296</guid>
      <dc:creator />
      <dc:date>2010-01-19T11:06:10Z</dc:date>
    </item>
    <item>
      <title>Last 12 months</title>
      <link>https://community.qlik.com/t5/QlikView/Last-12-months/m-p/216285#M715297</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Milda,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you send it as an expression?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm grateful,&lt;/P&gt;&lt;P&gt;Beata&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jan 2010 11:09:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-12-months/m-p/216285#M715297</guid>
      <dc:creator />
      <dc:date>2010-01-19T11:09:02Z</dc:date>
    </item>
    <item>
      <title>Last 12 months</title>
      <link>https://community.qlik.com/t5/QlikView/Last-12-months/m-p/216286#M715298</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My point is, that I could't use set analysis (at least in the way I know it). I'm calculating expression by Sum (invoiceAmount) and aggregate it 12 steps back (so I can show Moving Annual Total). When I want to show recent 12 months, the graph is useless, as it starts to calculate expression from the first shown month (instead of keeping old aggregation) I tried few things, and nothing helps, so I though script could be an idea.&lt;/P&gt;&lt;P&gt;Above the graph I need:&lt;A href="http://community.qlik.com/cfs-file.ashx/__key/CommunityServer.Discussions.Components.Files/11/3632.12.jpg"&gt;&lt;IMG alt="" border="0" height="497" src="http://community.qlik.com/resized-image.ashx/__size/550x0/__key/CommunityServer.Discussions.Components.Files/11/3632.12.jpg" width="550" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jan 2010 11:30:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-12-months/m-p/216286#M715298</guid>
      <dc:creator />
      <dc:date>2010-01-19T11:30:39Z</dc:date>
    </item>
    <item>
      <title>Last 12 months</title>
      <link>https://community.qlik.com/t5/QlikView/Last-12-months/m-p/216287#M715299</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum(&lt;BR /&gt;{$&amp;lt;&lt;BR /&gt;CalendarDate={'*'},&lt;BR /&gt;CalendarDay={'*'},&lt;BR /&gt;CalendarMonthAndYear={'*'},&lt;BR /&gt;CalendarQuarter={'*'},&lt;BR /&gt;CalendarWeek={'*'},&lt;BR /&gt;CalendarWeekAndYear={'*'},&lt;BR /&gt;CurYTDFlag={'*'},&lt;BR /&gt;WeekDay={'*'},&lt;BR /&gt;CalendarYear={'*'},&lt;BR /&gt;CalendarMonth={'*'},&lt;BR /&gt;CalendarDate={$(='"&amp;gt;' &amp;amp; ADDMONTHS(max(CalendarDate),-12)&amp;amp;'&amp;lt;=' &amp;amp; max(CalendarDate) &amp;amp;'"' )}&lt;BR /&gt;&amp;gt;}&lt;BR /&gt;1)&lt;/P&gt;&lt;P&gt;Here i used sum() function as an example. You can use any other function instead.&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jan 2010 11:33:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-12-months/m-p/216287#M715299</guid>
      <dc:creator />
      <dc:date>2010-01-19T11:33:05Z</dc:date>
    </item>
    <item>
      <title>Last 12 months</title>
      <link>https://community.qlik.com/t5/QlikView/Last-12-months/m-p/216288#M715300</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So you need that, for example, at column "1-1-2010" would be the sum of "1-1-2009.....1-1-2010" periods?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jan 2010 11:44:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-12-months/m-p/216288#M715300</guid>
      <dc:creator />
      <dc:date>2010-01-19T11:44:21Z</dc:date>
    </item>
    <item>
      <title>Last 12 months</title>
      <link>https://community.qlik.com/t5/QlikView/Last-12-months/m-p/216289#M715301</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Milda,&lt;/P&gt;&lt;P&gt;Firstly thank you for your effort. Secondly, unfortunately it doesn't worl:( I have error:&lt;/P&gt;&lt;P&gt;Error in expression:&lt;BR /&gt;{ is not a valid function&lt;BR /&gt;&lt;BR /&gt;MasterCalendar:&lt;BR /&gt;LOAD&lt;BR /&gt; CalendarDate={(internal error)}&amp;gt;}1,&lt;/P&gt;&lt;P&gt;I put expression as following:&lt;/P&gt;&lt;P style="font-weight: bold"&gt;MasterCalendar:&lt;BR /&gt;LOAD&lt;BR /&gt; TempDate AS CalendarDate,&lt;BR /&gt; Day(TempDate) AS CalendarDay,&lt;BR /&gt; Week(TempDate) AS CalendarWeek,&lt;BR /&gt; Weekday(TempDate) AS WeekDay,&lt;BR /&gt; Month(TempDate) AS CalendarMonth,&lt;BR /&gt; Year(TempDate) AS CalendarYear,&lt;BR /&gt; 'Q' &amp;amp; Ceil(Month(TempDate)/3) AS CalendarQuarter,&lt;BR /&gt; Month(TempDate) &amp;amp; '-' &amp;amp; Year(TempDate) AS CalendarMonthAndYear,&lt;BR /&gt; Week (TempDate) &amp;amp; '-'&amp;amp; Year (TempDate) as CalendarWeekAndYear,&lt;BR /&gt; Year2Date(TempDate, 0, 1, $(vToday))*-1 AS CurYTDFlag,&lt;BR /&gt; CalendarDate={$(='"&amp;gt;' &amp;amp; ADDMONTHS(max(CalendarDate),-12)&amp;amp;'&amp;lt;=' &amp;amp; max(CalendarDate) &amp;amp;'"' )}&amp;gt;}1)&lt;/P&gt;&lt;P&gt;I hope you can help me,&lt;/P&gt;&lt;P&gt;Greetings,&lt;/P&gt;&lt;P&gt;Beata&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jan 2010 11:48:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-12-months/m-p/216289#M715301</guid>
      <dc:creator />
      <dc:date>2010-01-19T11:48:40Z</dc:date>
    </item>
    <item>
      <title>Last 12 months</title>
      <link>https://community.qlik.com/t5/QlikView/Last-12-months/m-p/216290#M715302</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, at column `1/1/2010` I should have a sum for last 12 months so, from February 2009:-)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jan 2010 11:50:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-12-months/m-p/216290#M715302</guid>
      <dc:creator />
      <dc:date>2010-01-19T11:50:09Z</dc:date>
    </item>
    <item>
      <title>Last 12 months</title>
      <link>https://community.qlik.com/t5/QlikView/Last-12-months/m-p/216291#M715303</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One solution is generating a rolling months table to associate to your calendar table. Please see the attached.&lt;/P&gt;&lt;P&gt;One note: I changed how you were generating CalendarMonthAndYear so it could be sorted numerically.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jan 2010 17:47:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-12-months/m-p/216291#M715303</guid>
      <dc:creator>msteedle</dc:creator>
      <dc:date>2010-01-19T17:47:33Z</dc:date>
    </item>
    <item>
      <title>Last 12 months</title>
      <link>https://community.qlik.com/t5/QlikView/Last-12-months/m-p/216292#M715304</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Michael,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank very much for this file! The only thing is, that now maximum date is December 2010 (insted of current- January), so it's not exactly what I wanted. I am trying to find why maximum date is December 2010, and when it will be changed it will be perfect! If you see the mistake, please let me know.&lt;/P&gt;&lt;P&gt;Acha, and I would like to ask you for one more thing- could you next time copy/paste changes you made, insted of attaching a file? Unfortunately I'm still Personal Edition user:(&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance,&lt;/P&gt;&lt;P&gt;Best greetings,&lt;/P&gt;&lt;P&gt;Beata&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jan 2010 09:03:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-12-months/m-p/216292#M715304</guid>
      <dc:creator />
      <dc:date>2010-01-20T09:03:09Z</dc:date>
    </item>
    <item>
      <title>Last 12 months</title>
      <link>https://community.qlik.com/t5/QlikView/Last-12-months/m-p/216293#M715305</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good morning Beata,&lt;/P&gt;&lt;P&gt;now you should be able to open Michaels file.&lt;/P&gt;&lt;P&gt;Best wishes&lt;/P&gt;&lt;P&gt;Rainer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jan 2010 09:17:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-12-months/m-p/216293#M715305</guid>
      <dc:creator />
      <dc:date>2010-01-20T09:17:38Z</dc:date>
    </item>
    <item>
      <title>Last 12 months</title>
      <link>https://community.qlik.com/t5/QlikView/Last-12-months/m-p/216294#M715306</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Rainer!&lt;/P&gt;&lt;P&gt;Have a great day,&lt;/P&gt;&lt;P&gt;Beata&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jan 2010 10:14:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-12-months/m-p/216294#M715306</guid>
      <dc:creator />
      <dc:date>2010-01-20T10:14:14Z</dc:date>
    </item>
    <item>
      <title>Last 12 months</title>
      <link>https://community.qlik.com/t5/QlikView/Last-12-months/m-p/216295#M715307</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It was built assuming that the calendar ran through today instead of the end of the current year. To make it work based on today, add the following clause to the &lt;I&gt;AllMonths&lt;/I&gt; load (row 38 in the script):&lt;/P&gt;&lt;P&gt;WHERE CalendarMonthAndYear &amp;lt;= $(vDateToday)&lt;/P&gt;&lt;P&gt;Also, I didn't make it clear before, but all you would need to do to build the chart is use Rolling Month as the dimension and sum(InvoiceAmount) as the expression.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jan 2010 14:33:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-12-months/m-p/216295#M715307</guid>
      <dc:creator>msteedle</dc:creator>
      <dc:date>2010-01-20T14:33:58Z</dc:date>
    </item>
    <item>
      <title>Last 12 months</title>
      <link>https://community.qlik.com/t5/QlikView/Last-12-months/m-p/216296#M715308</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's amazing Michael! Moving annual total works perfectly! I changed &lt;I&gt;AllMonths&lt;/I&gt; load and it works fine but still MasterCalendar shows date till December 2010. As a reasult all my max expressions have to be changed. I tried to make it alone it script, but my abilities are still too low. Could you help one more time?&lt;/P&gt;&lt;P&gt;Thank you very much,&lt;/P&gt;&lt;P&gt;Beata&lt;/P&gt;&lt;P&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, 20 Jan 2010 16:08:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-12-months/m-p/216296#M715308</guid>
      <dc:creator />
      <dc:date>2010-01-20T16:08:05Z</dc:date>
    </item>
    <item>
      <title>Last 12 months</title>
      <link>https://community.qlik.com/t5/QlikView/Last-12-months/m-p/216297#M715309</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I used the Master Calendar table from the original QVW you attached, which also goes through the end of 2010. Look at your LOAD...WHILE statement for TempCalendar, and you should be able to see why it generates rows through the end of the year.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jan 2010 16:32:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-12-months/m-p/216297#M715309</guid>
      <dc:creator>msteedle</dc:creator>
      <dc:date>2010-01-20T16:32:11Z</dc:date>
    </item>
  </channel>
</rss>

