<?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: Calculate next Cycle Date in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculate-next-Cycle-Date/m-p/402811#M1164877</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe like this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Date(monthstart([Posted Date]-10,1)+9)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 05 Nov 2012 14:44:59 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2012-11-05T14:44:59Z</dc:date>
    <item>
      <title>Calculate next Cycle Date</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-next-Cycle-Date/m-p/402810#M1164876</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I currently have the following expression in my Load:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;if(day(DATE(DATE#( [Posted Date], 'DD-MMM-YY')))&amp;lt;11,month(DATE(DATE#( [Posted Date], 'DD-MMM-YY'))),month(date#(month(date(DATE#([Posted Date] ,'DD-MMM-YY')))+1,'M'))) as [Posted Cycle],&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What this does is look at a transaction date (Posted Date), and then determines what the Statement Cycle Month will be (Posted Cycle) for teh transaction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the Transaction happened before the 11th of the month, the Cycle Month will be the same month (e.g.7 November, Cycle Month is November).&lt;/P&gt;&lt;P&gt;If the Transaction happened after the 10th of the month, the Cycle Month will be the nextmonth (e.g.11 November, Cycle Month is December).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We cycle on teh 10th of every month - I want to change the expression to give me the cycle DATE, not just cycle month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So in the above example it must give me 2012/11/10 (1st example), or 2012/12/10 (2nd example).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gerhard&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Nov 2012 14:33:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-next-Cycle-Date/m-p/402810#M1164876</guid>
      <dc:creator>gerhardl</dc:creator>
      <dc:date>2012-11-05T14:33:44Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate next Cycle Date</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-next-Cycle-Date/m-p/402811#M1164877</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe like this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Date(monthstart([Posted Date]-10,1)+9)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Nov 2012 14:44:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-next-Cycle-Date/m-p/402811#M1164877</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-11-05T14:44:59Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate next Cycle Date</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-next-Cycle-Date/m-p/402812#M1164878</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That doesn't seem to work, I get null values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you maybe incorporate that into my full expression, including the date formats and the Else Condition? I'm doing something wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Nov 2012 15:34:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-next-Cycle-Date/m-p/402812#M1164878</guid>
      <dc:creator>gerhardl</dc:creator>
      <dc:date>2012-11-05T15:34:27Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate next Cycle Date</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-next-Cycle-Date/m-p/402813#M1164879</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, if your Posted Date is just a string, you'll need to interprete it:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;=Date(monthstart( DATE#( [Posted Date], 'DD-MMM-YY') -10,1)+9,'YYYY/MM/DD')&lt;BR /&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Nov 2012 15:48:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-next-Cycle-Date/m-p/402813#M1164879</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-11-05T15:48:55Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate next Cycle Date</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-next-Cycle-Date/m-p/402814#M1164880</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's Home Time here - I will check this tomorrow morning and respond.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the help so far.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Nov 2012 15:51:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-next-Cycle-Date/m-p/402814#M1164880</guid>
      <dc:creator>gerhardl</dc:creator>
      <dc:date>2012-11-05T15:51:21Z</dc:date>
    </item>
  </channel>
</rss>

