<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Skip months within specific months range within given interval</title><link>https://community.appian.com/discussions/f/general/21313/skip-months-within-specific-months-range-within-given-interval</link><description>Excercise is to have below output - 
 02/06/2021 
 02/08/2021 
 02/10/2021 
 02/12/2021 
 Startdate 02/06/2021 
 Enddate 20/12/2021 
 Noofintervals 2 months 
 any idea to achieve this?</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Skip months within specific months range within given interval</title><link>https://community.appian.com/thread/84962?ContentTypeID=1</link><pubDate>Wed, 25 Aug 2021 09:33:59 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7345e6aa-9c9a-4595-9b89-97cbebcbf1cf</guid><dc:creator>prashanthag0002</dc:creator><description>&lt;p&gt;Hi Chris .. how are you doing?&lt;/p&gt;
&lt;p&gt;I have a scenario where in I have 2 columns in grid, start date and end date. I need to identify first row end date and populate the same value as second row start date and so on while constructing the cdt for auto populating the grid rows, any thoughts from your end please?&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Start Date&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;End Date&lt;/p&gt;
&lt;p&gt;1st row&amp;nbsp; &amp;nbsp; &amp;nbsp; Jan/01/2021&amp;nbsp; &amp;nbsp; &amp;nbsp;Mar/01/2021&lt;/p&gt;
&lt;p&gt;2nd row&amp;nbsp; &amp;nbsp;Mar/01/2021&amp;nbsp; &amp;nbsp; &amp;nbsp;May/01/2021&lt;/p&gt;
&lt;p&gt;3rd row&amp;nbsp; &amp;nbsp; May/01/2021&amp;nbsp; &amp;nbsp; Jul/01/2021&lt;/p&gt;
&lt;p&gt;So i&amp;#39;m facing problem in identifying index of previous row end date value and map it with new cdt creation.&lt;/p&gt;
&lt;p&gt;Please help if possible. Thank you!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Skip months within specific months range within given interval</title><link>https://community.appian.com/thread/83159?ContentTypeID=1</link><pubDate>Wed, 30 Jun 2021 15:04:22 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:cd7d36e8-3aa5-461b-90c4-39f80db1b951</guid><dc:creator>prashanthag0002</dc:creator><description>&lt;p&gt;Hi Chris.. this code worked for me as expected, thanks for your time and great help.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Skip months within specific months range within given interval</title><link>https://community.appian.com/thread/83122?ContentTypeID=1</link><pubDate>Tue, 29 Jun 2021 20:48:03 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c52ef52c-1dfa-4416-80bf-7325b786b0b6</guid><dc:creator>Chris</dc:creator><description>&lt;p&gt;Try this out for size.&amp;nbsp; The edate() function is useful for adding straight months.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="csharp"&gt;a!localVariables(
  local!startDate: date(2021,06,02),
  local!endDate: date(2021,12,20),
  local!monthIntervals: 2,
  local!monthsBetween: month(local!endDate)-month(local!startDate)+12*(year(local!endDate)-year(local!startDate)),
  {
    local!startDate,
    reject(
      rule!APN_isEmpty,
      a!forEach(
        items: 1+enumerate(local!monthsBetween),
        expression: if(
          mod(fv!index,local!monthIntervals)=0,
          edate(local!startDate,fv!item),
          null
        )
      )
    )
  }
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>