<?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 month in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/dynamic-month/m-p/669207#M674810</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey guys, I'd like to add a condition or create a variable that pulls only data from the last 13 months, and the months while be dynamic, always giving me a rolling 13 months of data. So basically take whatever this month is, and give me the last 13 months of data, for which I have data_fields in my data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's my initial thought for how to do this:&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;AddMonths&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;MONTH_NUM&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, -13) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;That's definitely not how to do it, and then I read another post in the Qlik Community about a dynamic date, and here's the expression they suggested: &lt;A __default_attr="118877" __jive_macro_name="thread" class="jive_macro_thread jive_macro" href="https://community.qlik.com/"&gt;&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;let vFromDate=date(floor(today()-14))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Is this a viable option for me to use, and how would I translate this variable into pulling only 13 months of data?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Thanks!&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 28 Jul 2014 17:25:58 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-07-28T17:25:58Z</dc:date>
    <item>
      <title>dynamic month</title>
      <link>https://community.qlik.com/t5/QlikView/dynamic-month/m-p/669207#M674810</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey guys, I'd like to add a condition or create a variable that pulls only data from the last 13 months, and the months while be dynamic, always giving me a rolling 13 months of data. So basically take whatever this month is, and give me the last 13 months of data, for which I have data_fields in my data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's my initial thought for how to do this:&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;AddMonths&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;MONTH_NUM&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, -13) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;That's definitely not how to do it, and then I read another post in the Qlik Community about a dynamic date, and here's the expression they suggested: &lt;A __default_attr="118877" __jive_macro_name="thread" class="jive_macro_thread jive_macro" href="https://community.qlik.com/"&gt;&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;let vFromDate=date(floor(today()-14))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Is this a viable option for me to use, and how would I translate this variable into pulling only 13 months of data?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Thanks!&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jul 2014 17:25:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/dynamic-month/m-p/669207#M674810</guid>
      <dc:creator />
      <dc:date>2014-07-28T17:25:58Z</dc:date>
    </item>
    <item>
      <title>Re: dynamic month</title>
      <link>https://community.qlik.com/t5/QlikView/dynamic-month/m-p/669208#M674811</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;see attachment&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jul 2014 19:54:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/dynamic-month/m-p/669208#M674811</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2014-07-28T19:54:06Z</dc:date>
    </item>
  </channel>
</rss>

