<?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: Previous 12 Months in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Previous-12-Months/m-p/895819#M1007080</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Gysbert, I tried that already but I fear the issue is my dates&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 07 May 2015 11:12:43 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-05-07T11:12:43Z</dc:date>
    <item>
      <title>Previous 12 Months</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-12-Months/m-p/895812#M1007073</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Apologies if I have duplicated other threads but I have had a look through and could not find the answer or better still understand the concept&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my document I have a graph on the details tab which has been setup to look at the previous 12 months from the previous month back.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I want to now convert this to current month (so it updates when data is refreshed).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I amend the expression below so that it updates and also 0 values are shown. I have a master calendar setup&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;DateRaised&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"&amp;gt;=$(=addmonths(monthstart(today()),-13)) 00:00:00 &amp;lt;=$(=addmonths(Monthend)today()),-2,1) 23:59:59"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;},&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;ValueID&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'*24*'}, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;IncidentType&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'*Accident*'}, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;ListTitle&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'*Employee*'}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;ValueID&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Thanks again in advance&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2015 10:39:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-12-Months/m-p/895812#M1007073</guid>
      <dc:creator />
      <dc:date>2015-05-07T10:39:07Z</dc:date>
    </item>
    <item>
      <title>Re: Previous 12 Months</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-12-Months/m-p/895813#M1007074</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;MonthEnd returns a timestamp so you don't have to add 23:59:59. And MonthStart and MonthEnd also accept an offset parameter so AddMonths isn't needed:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count({$&amp;lt;DateRaised={"&amp;gt;=$(=MonthStart(Today(),-13))&amp;lt;=$(=MonthEnd(Today(),-1))"},ValueID={'*24*'}, IncidentType={'*Accident*'}, ListTitle={'*Employee*'}&amp;gt;}ValueID)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2015 10:45:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-12-Months/m-p/895813#M1007074</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-05-07T10:45:30Z</dc:date>
    </item>
    <item>
      <title>Re: Previous 12 Months</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-12-Months/m-p/895814#M1007075</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;PFA&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2015 10:49:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-12-Months/m-p/895814#M1007075</guid>
      <dc:creator />
      <dc:date>2015-05-07T10:49:14Z</dc:date>
    </item>
    <item>
      <title>Re: Previous 12 Months</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-12-Months/m-p/895815#M1007076</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Both, Venkat I need it to be automated on current month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gybert, your function does not allow the current month/active month to show, how can I amend it to say from now back 12 months (May 15 to June 14)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2015 10:55:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-12-Months/m-p/895815#M1007076</guid>
      <dc:creator />
      <dc:date>2015-05-07T10:55:21Z</dc:date>
    </item>
    <item>
      <title>Re: Previous 12 Months</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-12-Months/m-p/895816#M1007077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you don't want to show the previous 12 months, but the previous 12 months &lt;STRONG&gt;&lt;EM&gt;and&lt;/EM&gt;&lt;/STRONG&gt; the current month then change MonthEnd(Today(),-1) in MonthEnd(Today()).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to show the last 365 days use:&lt;/P&gt;&lt;P&gt;count({$&amp;lt;DateRaised={"&amp;gt;=$(=AddYears(Today(),-1))&amp;lt;=$(=Today())"},ValueID={'*24*'}, IncidentType={'*Accident*'}, ListTitle={'*Employee*'}&amp;gt;}ValueID)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2015 11:00:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-12-Months/m-p/895816#M1007077</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-05-07T11:00:26Z</dc:date>
    </item>
    <item>
      <title>Re: Previous 12 Months</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-12-Months/m-p/895817#M1007078</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Gysbert, that is ideal but months with 0 are not appearing, despite having a Master Calendar set up?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you know why this might be?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2015 11:05:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-12-Months/m-p/895817#M1007078</guid>
      <dc:creator />
      <dc:date>2015-05-07T11:05:05Z</dc:date>
    </item>
    <item>
      <title>Re: Previous 12 Months</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-12-Months/m-p/895818#M1007079</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Disable the Suppress Zero values option on the Presentation tab of the charts properties window.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2015 11:09:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-12-Months/m-p/895818#M1007079</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-05-07T11:09:54Z</dc:date>
    </item>
    <item>
      <title>Re: Previous 12 Months</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-12-Months/m-p/895819#M1007080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Gysbert, I tried that already but I fear the issue is my dates&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2015 11:12:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-12-Months/m-p/895819#M1007080</guid>
      <dc:creator />
      <dc:date>2015-05-07T11:12:43Z</dc:date>
    </item>
    <item>
      <title>Re: Previous 12 Months</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-12-Months/m-p/895820#M1007081</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you post a qlikview document that demonstrates the problem?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2015 11:16:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-12-Months/m-p/895820#M1007081</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-05-07T11:16:57Z</dc:date>
    </item>
    <item>
      <title>Re: Previous 12 Months</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-12-Months/m-p/895821#M1007082</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;PFA&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The graph on the details tab is the one I am wrestling with (so to speak)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2015 11:19:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-12-Months/m-p/895821#M1007082</guid>
      <dc:creator />
      <dc:date>2015-05-07T11:19:38Z</dc:date>
    </item>
    <item>
      <title>Re: Previous 12 Months</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-12-Months/m-p/895822#M1007083</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I forgot to mention, there is no data for December 14 as an example, but I want it to show up as 0 on the graph (same as May 15)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2015 13:23:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-12-Months/m-p/895822#M1007083</guid>
      <dc:creator />
      <dc:date>2015-05-07T13:23:52Z</dc:date>
    </item>
    <item>
      <title>Re: Previous 12 Months</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-12-Months/m-p/895823#M1007084</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See attached qvw.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2015 14:10:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-12-Months/m-p/895823#M1007084</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-05-07T14:10:36Z</dc:date>
    </item>
    <item>
      <title>Re: Previous 12 Months</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-12-Months/m-p/895824#M1007085</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Gysbert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can see what you have done but is there a way to show 0 on the graph? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2015 14:19:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-12-Months/m-p/895824#M1007085</guid>
      <dc:creator />
      <dc:date>2015-05-07T14:19:41Z</dc:date>
    </item>
    <item>
      <title>Re: Previous 12 Months</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-12-Months/m-p/895825#M1007086</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Enable the Zero on Bars option on the Presentation tab.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2015 14:20:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-12-Months/m-p/895825#M1007086</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-05-07T14:20:51Z</dc:date>
    </item>
    <item>
      <title>Re: Previous 12 Months</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-12-Months/m-p/895826#M1007087</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Fantastic!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you so very much for your time and patience helping me with this &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2015 14:23:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-12-Months/m-p/895826#M1007087</guid>
      <dc:creator />
      <dc:date>2015-05-07T14:23:36Z</dc:date>
    </item>
  </channel>
</rss>

