<?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: Only show the last 12 months in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Only-show-the-last-12-months/m-p/1997227#M1221341</link>
    <description>&lt;P&gt;I understand this is very old question. I thought to share an alternative way to solve this.&lt;/P&gt;
&lt;P&gt;I have created a variable to capture max-month in Load script (vMaxMonth) and then used this variable in the table/chart for the dimension as :&lt;/P&gt;
&lt;P&gt;=if(Month&amp;gt;Addmonths(vMaxMonth,-12), Month)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thought to share in case this may help others in the future.&lt;/P&gt;</description>
    <pubDate>Wed, 26 Oct 2022 16:38:18 GMT</pubDate>
    <dc:creator>KL1</dc:creator>
    <dc:date>2022-10-26T16:38:18Z</dc:date>
    <item>
      <title>Only show the last 12 months</title>
      <link>https://community.qlik.com/t5/QlikView/Only-show-the-last-12-months/m-p/1315429#M845966</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Im creating a chart which displays the amount of new debtors per month. However, I want to only show the last 12 months in my chart and can't seem to fix it with a dimension limit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the line of code I use to define the debtor start date and also use this as my month filter in the chart:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;, Month(Debtor_StartDate) &amp;amp; '/' &amp;amp; Year(Debtor_StartDate) as Debtor_StartMonth&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Load&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Date(Min(Date_Key)) as Debtor_StartDate&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;from&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;[.......]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Thanks in advance&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Only-show-the-last-12-months/m-p/1315429#M845966</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Only show the last 12 months</title>
      <link>https://community.qlik.com/t5/QlikView/Only-show-the-last-12-months/m-p/1315430#M845967</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 like this,&lt;/P&gt;&lt;P&gt;&lt;A href="https://qlikviewtips.wordpress.com/tag/last-12-months/" title="https://qlikviewtips.wordpress.com/tag/last-12-months/"&gt;Last 12 months | QlikView Help, Tips &amp;amp; Hints&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Mar 2017 05:51:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Only-show-the-last-12-months/m-p/1315430#M845967</guid>
      <dc:creator>devarasu07</dc:creator>
      <dc:date>2017-03-31T05:51:54Z</dc:date>
    </item>
    <item>
      <title>Re: Only show the last 12 months</title>
      <link>https://community.qlik.com/t5/QlikView/Only-show-the-last-12-months/m-p/1315431#M845968</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dimension limit really won't possible and it won't help for you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create chart and use dim as month&lt;/P&gt;&lt;P&gt;and expression is&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum({&amp;lt;Month = {"&amp;gt;=AddMonths(Max(Month),-12) &amp;lt;=Max(Month)"}&amp;gt;}Measure)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Mar 2017 06:16:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Only-show-the-last-12-months/m-p/1315431#M845968</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-03-31T06:16:40Z</dc:date>
    </item>
    <item>
      <title>Re: Only show the last 12 months</title>
      <link>https://community.qlik.com/t5/QlikView/Only-show-the-last-12-months/m-p/1315432#M845969</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I found a solution to my problem&lt;BR /&gt;This is what I added into the script and then used a Set Analysis to get in right into the graph.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Script:&lt;BR /&gt;If(Date &amp;lt;= Today() And Date &amp;gt;= SetDateYear(Today(), Year(Today())-1), 1, 0) As Last12Months&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set Analysis:&lt;/P&gt;&lt;P&gt;=Count({&amp;lt; Last12Months = {1}&amp;gt;} Debtor_StartDate)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Apr 2017 10:51:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Only-show-the-last-12-months/m-p/1315432#M845969</guid>
      <dc:creator />
      <dc:date>2017-04-04T10:51:25Z</dc:date>
    </item>
    <item>
      <title>Re: Only show the last 12 months</title>
      <link>https://community.qlik.com/t5/QlikView/Only-show-the-last-12-months/m-p/1315433#M845970</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you so much for this Ivo. It looked so easy but have spent all morning working on it. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Nov 2017 12:40:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Only-show-the-last-12-months/m-p/1315433#M845970</guid>
      <dc:creator>mboreham</dc:creator>
      <dc:date>2017-11-07T12:40:03Z</dc:date>
    </item>
    <item>
      <title>Re: Only show the last 12 months</title>
      <link>https://community.qlik.com/t5/QlikView/Only-show-the-last-12-months/m-p/1997227#M1221341</link>
      <description>&lt;P&gt;I understand this is very old question. I thought to share an alternative way to solve this.&lt;/P&gt;
&lt;P&gt;I have created a variable to capture max-month in Load script (vMaxMonth) and then used this variable in the table/chart for the dimension as :&lt;/P&gt;
&lt;P&gt;=if(Month&amp;gt;Addmonths(vMaxMonth,-12), Month)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thought to share in case this may help others in the future.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Oct 2022 16:38:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Only-show-the-last-12-months/m-p/1997227#M1221341</guid>
      <dc:creator>KL1</dc:creator>
      <dc:date>2022-10-26T16:38:18Z</dc:date>
    </item>
  </channel>
</rss>

