<?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 dynamic date range dimension in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/dynamic-date-range-dimension/m-p/573075#M213477</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have the following dimension on a line chart and i was looking for a way to make this dimension a dynamic 12 months.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;month([Work Entry Month]) &amp;amp; ' ' &amp;amp; year([Work Entry Month])&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 27 Jan 2014 15:18:42 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-01-27T15:18:42Z</dc:date>
    <item>
      <title>dynamic date range dimension</title>
      <link>https://community.qlik.com/t5/QlikView/dynamic-date-range-dimension/m-p/573075#M213477</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have the following dimension on a line chart and i was looking for a way to make this dimension a dynamic 12 months.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;month([Work Entry Month]) &amp;amp; ' ' &amp;amp; year([Work Entry Month])&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jan 2014 15:18:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/dynamic-date-range-dimension/m-p/573075#M213477</guid>
      <dc:creator />
      <dc:date>2014-01-27T15:18:42Z</dc:date>
    </item>
    <item>
      <title>Re: dynamic date range dimension</title>
      <link>https://community.qlik.com/t5/QlikView/dynamic-date-range-dimension/m-p/573076#M213478</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What exactly do you mean by a dynamic 12 months? do you mean the most recent 12 months?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could achieve this a number of different ways. I am sure you could make it work somehow using dimension limits or you could just use set analysis in your expression, such as:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;avg({&amp;lt;Date={'&amp;gt;=$(=addmonths(max(Date),-12))'}&amp;gt;}Grade)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or if you want it as a dimension, then maybe like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(Date&amp;gt;='$(=addmonths(max(Date),-12))', Date)&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;=if(Date&amp;gt;addmonths(today(),-12)), Date)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But this would depend on if your date is in date format or not. I would suggest creating a Month-Year Field in your loadscript. Then use something like above for you set analysis. If this doesn't help, can you explain more, or maybe even attach a sample app that demonstrates your problem/what you are attempting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jan 2014 15:46:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/dynamic-date-range-dimension/m-p/573076#M213478</guid>
      <dc:creator>jerem1234</dc:creator>
      <dc:date>2014-01-27T15:46:13Z</dc:date>
    </item>
    <item>
      <title>Re: dynamic date range dimension</title>
      <link>https://community.qlik.com/t5/QlikView/dynamic-date-range-dimension/m-p/573077#M213479</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks for the help.&amp;nbsp; I was looking for the latest 12 months and used the following dimension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(Date&amp;gt;addmonths(today(),-12)), Date)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jan 2014 18:23:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/dynamic-date-range-dimension/m-p/573077#M213479</guid>
      <dc:creator />
      <dc:date>2014-01-27T18:23:15Z</dc:date>
    </item>
  </channel>
</rss>

