<?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 Calculating a future date in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculating-a-future-date/m-p/449198#M487641</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to calculate a date field for each row in my dataset. Each row represents a live customer that has a contract start date. Depending on the customer, the contract length can vary between 1 - 24 months. If the customer appears in the list, it means they are currently a live customer and there contract may have auto renewed many times already between the start date and the current date. If for example a contract started on 01/01/20102 and is 4 months at a time, then it would have auto renewed 3 times already assuming today is the 23/01/2013 in Apr 2012, Aug 2012, &amp;amp; Dec 2012 and my next auto renewal date would be 01/04/2013.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Essentially, for each row I want to calculate the next auto renewal date beyond todays date. In the attached example qvw, I want to calculate Target Date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Haider&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 Jan 2013 15:46:14 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-01-23T15:46:14Z</dc:date>
    <item>
      <title>Calculating a future date</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-a-future-date/m-p/449198#M487641</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to calculate a date field for each row in my dataset. Each row represents a live customer that has a contract start date. Depending on the customer, the contract length can vary between 1 - 24 months. If the customer appears in the list, it means they are currently a live customer and there contract may have auto renewed many times already between the start date and the current date. If for example a contract started on 01/01/20102 and is 4 months at a time, then it would have auto renewed 3 times already assuming today is the 23/01/2013 in Apr 2012, Aug 2012, &amp;amp; Dec 2012 and my next auto renewal date would be 01/04/2013.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Essentially, for each row I want to calculate the next auto renewal date beyond todays date. In the attached example qvw, I want to calculate Target Date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Haider&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jan 2013 15:46:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-a-future-date/m-p/449198#M487641</guid>
      <dc:creator />
      <dc:date>2013-01-23T15:46:14Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating a future date</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-a-future-date/m-p/449199#M487642</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;/P&gt;&lt;P&gt;I attached an example of what can you do to resolve your problem. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this can help you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jan 2013 17:39:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-a-future-date/m-p/449199#M487642</guid>
      <dc:creator />
      <dc:date>2013-01-23T17:39:12Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating a future date</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-a-future-date/m-p/449200#M487643</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I dont know if its better but in my experience I prefer use some qlikview function rather than Macros, I use an AddMonth() function in the load script to resolve this issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jan 2013 19:03:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-a-future-date/m-p/449200#M487643</guid>
      <dc:creator />
      <dc:date>2013-01-23T19:03:46Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating a future date</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-a-future-date/m-p/449201#M487644</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Haider,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Addmonths(date,#) is the way to go.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can do this in script or in the expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have attached a calendar builder that I added a straight table to.&amp;nbsp; The first dimension is the starting date.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The expression is addmonth(date,4) to calculate 4 months ahead.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wade&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jan 2013 20:15:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-a-future-date/m-p/449201#M487644</guid>
      <dc:creator>wms_manis</dc:creator>
      <dc:date>2013-01-23T20:15:31Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating a future date</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-a-future-date/m-p/449202#M487645</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;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; please find attachment of&amp;nbsp; qvw,let you know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/plus.png" /&gt;&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/minus.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jan 2013 22:34:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-a-future-date/m-p/449202#M487645</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-01-23T22:34:17Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating a future date</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-a-future-date/m-p/449203#M487646</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;/P&gt;&lt;P&gt;Check out the Attachment..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps you..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jan 2013 05:40:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-a-future-date/m-p/449203#M487646</guid>
      <dc:creator />
      <dc:date>2013-01-24T05:40:32Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating a future date</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-a-future-date/m-p/449204#M487647</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for all the responses. The answer was a little more than just MonthAdd becasue I wanted to know the next upcoming renewal post todays date. Using MonthAdd alone could give me a past renewal date. The purpose is to contact those customers 1-2 months before there renewal date is due to build the customer relationship and stop them from cancelling the auto renewal. QlikCommunity is awesome!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jan 2013 06:03:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-a-future-date/m-p/449204#M487647</guid>
      <dc:creator />
      <dc:date>2013-01-24T06:03:47Z</dc:date>
    </item>
  </channel>
</rss>

