<?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: MonthStart and Iterno with conditions in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/MonthStart-and-Iterno-with-conditions/m-p/112515#M17497</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;Employee:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;LOAD * INLINE [&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Employee_Number, Date_Hired, Term_Date&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 119311, Nov 2012, Feb 2023&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;];&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;Left Join (Employee)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;LOAD *&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;Where [Month Start] &amp;gt;= MakeDate(2015);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;//tEmployeeStatus:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;LOAD Employee_Number,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt; MonthStart(AddMonths(Date#([Date_Hired], 'MMM YYYY'), IterNo()-1)) as [Month Start]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;Resident Employee&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;While AddMonths(Date#([Date_Hired], 'MMM YYYY'), IterNo()-1) &amp;lt;= RangeMin(MonthStarT(Today()), Date#([Term_Date], 'MMM YYYY'));&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 17 Oct 2018 17:40:22 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2018-10-17T17:40:22Z</dc:date>
    <item>
      <title>MonthStart and Iterno with conditions</title>
      <link>https://community.qlik.com/t5/QlikView/MonthStart-and-Iterno-with-conditions/m-p/112514#M17496</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to update the script below with two requirements:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Start interno on Jan 2015&lt;/P&gt;&lt;P&gt;2. End interno on the current month&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be greatly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is the script. I have also attached the qvw and excel spreadsheet with the expceted output. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="xml" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_153978027477614 jive_text_macro" jivemacro_uid="_153978027477614"&gt;
&lt;P&gt;Employee:&lt;/P&gt;
&lt;P&gt;LOAD * INLINE [&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Employee_Number, Date_Hired, Term_Date&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 119311, Nov 2012, Feb 2023&lt;/P&gt;
&lt;P&gt;];&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Left Join (Employee)&lt;/P&gt;
&lt;P&gt;tEmployeeStatus:&lt;/P&gt;
&lt;P&gt;Load&lt;/P&gt;
&lt;P&gt;Employee_Number,&lt;/P&gt;
&lt;P&gt;MonthStart(addmonths(date#([Date_Hired],'MMM YYYY'), ITERNO()-1)) as [Month Start]&lt;/P&gt;
&lt;P&gt;Resident Employee&lt;/P&gt;
&lt;P&gt;While addmonths(date#([Date_Hired],'MMM YYYY'), ITERNO()-1)&amp;lt;= date#([Term_Date],'MMM YYYY');&lt;/P&gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Oct 2018 13:02:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MonthStart-and-Iterno-with-conditions/m-p/112514#M17496</guid>
      <dc:creator>jonathanrichey</dc:creator>
      <dc:date>2018-10-17T13:02:19Z</dc:date>
    </item>
    <item>
      <title>Re: MonthStart and Iterno with conditions</title>
      <link>https://community.qlik.com/t5/QlikView/MonthStart-and-Iterno-with-conditions/m-p/112515#M17497</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;Employee:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;LOAD * INLINE [&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Employee_Number, Date_Hired, Term_Date&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 119311, Nov 2012, Feb 2023&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;];&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;Left Join (Employee)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;LOAD *&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;Where [Month Start] &amp;gt;= MakeDate(2015);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;//tEmployeeStatus:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;LOAD Employee_Number,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt; MonthStart(AddMonths(Date#([Date_Hired], 'MMM YYYY'), IterNo()-1)) as [Month Start]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;Resident Employee&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;While AddMonths(Date#([Date_Hired], 'MMM YYYY'), IterNo()-1) &amp;lt;= RangeMin(MonthStarT(Today()), Date#([Term_Date], 'MMM YYYY'));&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Oct 2018 17:40:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MonthStart-and-Iterno-with-conditions/m-p/112515#M17497</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-10-17T17:40:22Z</dc:date>
    </item>
    <item>
      <title>Re: MonthStart and Iterno with conditions</title>
      <link>https://community.qlik.com/t5/QlikView/MonthStart-and-Iterno-with-conditions/m-p/112516#M17498</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Sunny!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Oct 2018 17:52:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MonthStart-and-Iterno-with-conditions/m-p/112516#M17498</guid>
      <dc:creator>jonathanrichey</dc:creator>
      <dc:date>2018-10-17T17:52:07Z</dc:date>
    </item>
  </channel>
</rss>

