<?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: Flag for next 12 months in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Flag-for-next-12-months/m-p/713148#M672519</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD *,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (PeriodFinishDate &amp;lt; Today() and PeriodFinishDate &amp;gt;= addmonths(Today(),-1)) as FlagPrevMonth,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (PeriodFinishDate &amp;gt; Today() and PeriodFinishDate &amp;lt;= addmonths(Today(),1)) as FlagNextMonth,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (PeriodFinishDate &amp;gt; Today() and PeriodFinishDate &amp;lt;= addmonths(Today(),12)) as FlagNextYear&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;FROM ...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 05 Sep 2014 11:26:11 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2014-09-05T11:26:11Z</dc:date>
    <item>
      <title>Flag for next 12 months</title>
      <link>https://community.qlik.com/t5/QlikView/Flag-for-next-12-months/m-p/713145#M672516</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;BR /&gt;We have a forecast file containing weekly periods with a start and finish date.&lt;/P&gt;&lt;P&gt;The file contains historical data and future period data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I am trying to do is to set different flags on this file during load.&lt;/P&gt;&lt;P&gt;I would like to put a flag for Last month, next month and next 12 months but not sure how to do it as I have a start and finish interval per week.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope someone can help me on this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See attached excel file for better description of the data model.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Freddy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Sep 2014 16:30:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Flag-for-next-12-months/m-p/713145#M672516</guid>
      <dc:creator />
      <dc:date>2014-09-04T16:30:21Z</dc:date>
    </item>
    <item>
      <title>Re: Flag for next 12 months</title>
      <link>https://community.qlik.com/t5/QlikView/Flag-for-next-12-months/m-p/713146#M672517</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm not quite sure what you're after. But investigate the InMonth and InYear functions in the help file.&lt;/P&gt;&lt;P&gt;Perhaps you want something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD *,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; InMonth(PeriodFinishDate,today(),-1) as FlagPrevMonth&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; InMonth(PeriodFinishDate,today(),1) as FlagNextMonth&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; InYear(PeriodFinishDate,today(),1) as FlagNext12Months&lt;/P&gt;&lt;P&gt;FROM &lt;EM&gt;...excel_file...&lt;/EM&gt;;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Sep 2014 07:58:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Flag-for-next-12-months/m-p/713146#M672517</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2014-09-05T07:58:21Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Flag for next 12 months</title>
      <link>https://community.qlik.com/t5/QlikView/Flag-for-next-12-months/m-p/713147#M672518</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gysbert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot for your input. It is close. But as you can see in my attached file the next 12 months is really starting from next year. I would like to sum the forecast for next 12 months (or 52 weeks) from the weekly period starting after this weekly period.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Sep 2014 11:05:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Flag-for-next-12-months/m-p/713147#M672518</guid>
      <dc:creator />
      <dc:date>2014-09-05T11:05:58Z</dc:date>
    </item>
    <item>
      <title>Re: Flag for next 12 months</title>
      <link>https://community.qlik.com/t5/QlikView/Flag-for-next-12-months/m-p/713148#M672519</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD *,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (PeriodFinishDate &amp;lt; Today() and PeriodFinishDate &amp;gt;= addmonths(Today(),-1)) as FlagPrevMonth,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (PeriodFinishDate &amp;gt; Today() and PeriodFinishDate &amp;lt;= addmonths(Today(),1)) as FlagNextMonth,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (PeriodFinishDate &amp;gt; Today() and PeriodFinishDate &amp;lt;= addmonths(Today(),12)) as FlagNextYear&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;FROM ...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Sep 2014 11:26:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Flag-for-next-12-months/m-p/713148#M672519</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2014-09-05T11:26:11Z</dc:date>
    </item>
    <item>
      <title>Re: Flag for next 12 months</title>
      <link>https://community.qlik.com/t5/QlikView/Flag-for-next-12-months/m-p/713149#M672520</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nice! This does the job.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you so much for fast and accurate advise!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Freddy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Sep 2014 13:07:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Flag-for-next-12-months/m-p/713149#M672520</guid>
      <dc:creator />
      <dc:date>2014-09-05T13:07:22Z</dc:date>
    </item>
  </channel>
</rss>

