<?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: How to create a rolling 12 months flag in the script? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-create-a-rolling-12-months-flag-in-the-script/m-p/1454850#M609682</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Or, you may try with:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;InYearToDate()&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;InMonthToDate()&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 15 Jan 2018 11:04:41 GMT</pubDate>
    <dc:creator>tresB</dc:creator>
    <dc:date>2018-01-15T11:04:41Z</dc:date>
    <item>
      <title>How to create a rolling 12 months flag in the script?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-a-rolling-12-months-flag-in-the-script/m-p/1454842#M609674</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the code to create a rolling 12 months flag in the script?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I currently have a Master Calendar and would like to add it to the table but not sure how to create it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jan 2018 19:51:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-a-rolling-12-months-flag-in-the-script/m-p/1454842#M609674</guid>
      <dc:creator>mwallman</dc:creator>
      <dc:date>2018-01-11T19:51:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a rolling 12 months flag in the script?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-a-rolling-12-months-flag-in-the-script/m-p/1454843#M609675</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be just this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(DateField &amp;gt;= AddMonths(Today(), -1), 1, 0) as R12M_Flag&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jan 2018 20:08:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-a-rolling-12-months-flag-in-the-script/m-p/1454843#M609675</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-01-11T20:08:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a rolling 12 months flag in the script?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-a-rolling-12-months-flag-in-the-script/m-p/1454844#M609676</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; If(Num((TempDate))&amp;gt;=(Num(MonthStart(date($(varMaxDate)),-12))),1,0) as Month12Flag,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;add this to the mastercalendar table&lt;/P&gt;&lt;P&gt;I used &lt;A href="https://community.qlikview.com/thread/48693" title="https://community.qlikview.com/thread/48693"&gt;Creating A Master Calendar | Qlik Community &lt;/A&gt; as the mastercalendar sample.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jan 2018 20:25:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-a-rolling-12-months-flag-in-the-script/m-p/1454844#M609676</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-01-11T20:25:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a rolling 12 months flag in the script?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-a-rolling-12-months-flag-in-the-script/m-p/1454845#M609677</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Very similar to UI then. Should that be -12 instead of -1 in your example?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jan 2018 20:25:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-a-rolling-12-months-flag-in-the-script/m-p/1454845#M609677</guid>
      <dc:creator>mwallman</dc:creator>
      <dc:date>2018-01-11T20:25:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a rolling 12 months flag in the script?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-a-rolling-12-months-flag-in-the-script/m-p/1454846#M609678</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hahahaha yes you are right... I thought I was using AddYears()... but for AddMonths() it should be -12&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jan 2018 20:27:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-a-rolling-12-months-flag-in-the-script/m-p/1454846#M609678</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-01-11T20:27:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a rolling 12 months flag in the script?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-a-rolling-12-months-flag-in-the-script/m-p/1454847#M609679</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pavan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is between this or &lt;A href="https://community.qlik.com/qlik-users/171708"&gt;stalwar1&lt;/A&gt; code above?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jan 2018 20:32:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-a-rolling-12-months-flag-in-the-script/m-p/1454847#M609679</guid>
      <dc:creator>mwallman</dc:creator>
      <dc:date>2018-01-11T20:32:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a rolling 12 months flag in the script?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-a-rolling-12-months-flag-in-the-script/m-p/1454848#M609680</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Same thing. I used MonthStart instead of AddMonths. He posted was while I was testing mine. You can use either. Here is AddMonth using variables from mastercalendar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If(TempDate &amp;gt;= AddMonths(date($(varMaxDate)), -12), 1, 0) as R12M_Flag, &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jan 2018 20:38:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-a-rolling-12-months-flag-in-the-script/m-p/1454848#M609680</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-01-11T20:38:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a rolling 12 months flag in the script?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-a-rolling-12-months-flag-in-the-script/m-p/1454849#M609681</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How can I get it to be complete 12 months?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code above actually create a 13 month output because of Today() function inside the code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I want to do is go up to the end of previous month and take 12 months from there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So it would be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From the start of January 2017 to end of Dec 2017&lt;/P&gt;&lt;P&gt;Next month it would be: From the start of February2017 to end of January 2018&lt;/P&gt;&lt;P&gt;From the start of March 2017 to end of February 2017&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jan 2018 10:56:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-a-rolling-12-months-flag-in-the-script/m-p/1454849#M609681</guid>
      <dc:creator>mwallman</dc:creator>
      <dc:date>2018-01-15T10:56:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a rolling 12 months flag in the script?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-a-rolling-12-months-flag-in-the-script/m-p/1454850#M609682</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Or, you may try with:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;InYearToDate()&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;InMonthToDate()&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jan 2018 11:04:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-a-rolling-12-months-flag-in-the-script/m-p/1454850#M609682</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2018-01-15T11:04:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a rolling 12 months flag in the script?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-a-rolling-12-months-flag-in-the-script/m-p/1454851#M609683</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This may be&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;If(DateField &amp;gt;= &lt;SPAN style="color: #ff0000;"&gt;AddMonths&lt;/SPAN&gt;(Today(), &lt;SPAN style="color: #ff0000;"&gt;-11&lt;/SPAN&gt;), 1, 0) as R12M_Flag&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jan 2018 11:30:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-a-rolling-12-months-flag-in-the-script/m-p/1454851#M609683</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-01-15T11:30:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a rolling 12 months flag in the script?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-a-rolling-12-months-flag-in-the-script/m-p/1454852#M609684</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This doesn't quite work because it does Feb 2017 and includes Jan 2018.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want it to be ALL of January, up to the end of Dec 2017.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So it should not include the current month.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jan 2018 11:47:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-a-rolling-12-months-flag-in-the-script/m-p/1454852#M609684</guid>
      <dc:creator>mwallman</dc:creator>
      <dc:date>2018-01-15T11:47:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a rolling 12 months flag in the script?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-a-rolling-12-months-flag-in-the-script/m-p/1454853#M609685</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How about this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(DateField &amp;gt;= MonthStart(Today(), -12) and DateField &amp;lt; MonthStart(Today()), 1, 0) as R12M_Flag&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jan 2018 11:50:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-a-rolling-12-months-flag-in-the-script/m-p/1454853#M609685</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-01-15T11:50:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a rolling 12 months flag in the script?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-a-rolling-12-months-flag-in-the-script/m-p/1454854#M609686</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Will this include data from the start of the month 12 months ago? i.e. From January 1st? Or Feb 1st? Mar 1st? etc naturally?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This almost work I just want to check the above! &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jan 2018 11:59:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-a-rolling-12-months-flag-in-the-script/m-p/1454854#M609686</guid>
      <dc:creator>mwallman</dc:creator>
      <dc:date>2018-01-15T11:59:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a rolling 12 months flag in the script?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-a-rolling-12-months-flag-in-the-script/m-p/1454855#M609687</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;MonthStart should take your to the beginning of the day... so since today is Jan 15th... we should see this from the above&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;= 01/01/2017&amp;lt;01/01/2018&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here 01/01/2018 won't be included as we have used less than (and not less than equal to)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jan 2018 12:02:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-a-rolling-12-months-flag-in-the-script/m-p/1454855#M609687</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-01-15T12:02:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a rolling 12 months flag in the script?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-a-rolling-12-months-flag-in-the-script/m-p/1454856#M609688</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So if I use &amp;lt;= it will include data from the first day of each month?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jan 2018 12:05:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-a-rolling-12-months-flag-in-the-script/m-p/1454856#M609688</guid>
      <dc:creator>mwallman</dc:creator>
      <dc:date>2018-01-15T12:05:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a rolling 12 months flag in the script?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-a-rolling-12-months-flag-in-the-script/m-p/1454857#M609689</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No that is not what I meant.... what I trying to say is that since today is Jan 2018... you hopefully want to just include until the last day of Dec 2017, right? If that is true, then the above script should work for you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jan 2018 12:07:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-a-rolling-12-months-flag-in-the-script/m-p/1454857#M609689</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-01-15T12:07:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a rolling 12 months flag in the script?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-a-rolling-12-months-flag-in-the-script/m-p/1454858#M609690</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Michael,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; You still haven't solved this you try the following.&lt;/P&gt;&lt;P&gt;,InMonths(12, D, Today(), -1, num(month(Today()))) as Previous12Months&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Apr 2018 19:23:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-a-rolling-12-months-flag-in-the-script/m-p/1454858#M609690</guid>
      <dc:creator>ecrobles18</dc:creator>
      <dc:date>2018-04-27T19:23:28Z</dc:date>
    </item>
  </channel>
</rss>

