<?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 Modify date in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Modify-date/m-p/149879#M27991</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;I'd need to modify a date in a pipeline management dashboard as follows&lt;/P&gt;&lt;P&gt;New_date = Existing_date + i months&lt;/P&gt;&lt;P&gt;if piepeline stage = 1 then i = 6 month&lt;/P&gt;&lt;P&gt;if pipeline stage = 2 then i = 5 month&lt;/P&gt;&lt;P&gt;(...)&lt;/P&gt;&lt;P&gt;My question is:&lt;/P&gt;&lt;P&gt;what is the script to create the New_date using the Existing_date ?&lt;/P&gt;&lt;P&gt;Thanks in advance for your feedback !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 21 Jul 2009 23:12:15 GMT</pubDate>
    <dc:creator />
    <dc:date>2009-07-21T23:12:15Z</dc:date>
    <item>
      <title>Modify date</title>
      <link>https://community.qlik.com/t5/QlikView/Modify-date/m-p/149879#M27991</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;I'd need to modify a date in a pipeline management dashboard as follows&lt;/P&gt;&lt;P&gt;New_date = Existing_date + i months&lt;/P&gt;&lt;P&gt;if piepeline stage = 1 then i = 6 month&lt;/P&gt;&lt;P&gt;if pipeline stage = 2 then i = 5 month&lt;/P&gt;&lt;P&gt;(...)&lt;/P&gt;&lt;P&gt;My question is:&lt;/P&gt;&lt;P&gt;what is the script to create the New_date using the Existing_date ?&lt;/P&gt;&lt;P&gt;Thanks in advance for your feedback !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jul 2009 23:12:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Modify-date/m-p/149879#M27991</guid>
      <dc:creator />
      <dc:date>2009-07-21T23:12:15Z</dc:date>
    </item>
    <item>
      <title>Modify date</title>
      <link>https://community.qlik.com/t5/QlikView/Modify-date/m-p/149880#M27992</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What are you loading the data from? Database? QVD?&lt;/P&gt;&lt;P&gt;In T-SQL, you can use:&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;DateAdd(m, 7 - pipeline_stage, Existing_date) As New_date&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;If you're loading from a QVD, you can use the built in QlikView function AddMonths:&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;AddMonths(Exsiting_date, 7 - pipeline_stage) As New_date&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;The "7 - pipeline_stage" is a guess at how i should be calculated based on you example.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jul 2009 23:22:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Modify-date/m-p/149880#M27992</guid>
      <dc:creator />
      <dc:date>2009-07-21T23:22:15Z</dc:date>
    </item>
  </channel>
</rss>

