<?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: Adding Days to Date Field During Load in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Adding-Days-to-Date-Field-During-Load/m-p/574712#M1107652</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just add formatting:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(len(trim( [SchedCompleteDate]))&amp;gt;0, [SchedCompleteDate], date(num([CreatedDate])+45, '&lt;STRONG&gt;MM/DD/YYYY&lt;/STRONG&gt;')) as [SchedCompleteDate],&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 13 Mar 2014 23:19:40 GMT</pubDate>
    <dc:creator>bgerchikov</dc:creator>
    <dc:date>2014-03-13T23:19:40Z</dc:date>
    <item>
      <title>Adding Days to Date Field During Load</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-Days-to-Date-Field-During-Load/m-p/574704#M1107644</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a date field that is loaded called [Sched Complete Date]. Sometimes the field is blank (and it messes up some of my formulas). What I want to do is, when the Sched Complete Date is empty, add 45 days from another field in data; Create Date. Example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create Date = 1/1/2014&lt;/P&gt;&lt;P&gt;Sched Complete Date is updated to 2/14/2014&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can't figure out the structure of the "IF/Then" statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for any help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jeff&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Mar 2014 22:16:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-Days-to-Date-Field-During-Load/m-p/574704#M1107644</guid>
      <dc:creator>jmonroe918</dc:creator>
      <dc:date>2014-03-13T22:16:49Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Days to Date Field During Load</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-Days-to-Date-Field-During-Load/m-p/574705#M1107645</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;I don't think you cannot avoid IF:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(len(trim( &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt; [Sched Complete Date]&lt;/SPAN&gt;))&amp;gt;0, &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt; [Sched Complete Date], date(num([&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Create Date&lt;/SPAN&gt;])+45) as&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt; [Sched Complete Date]&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good Luck!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Mar 2014 22:23:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-Days-to-Date-Field-During-Load/m-p/574705#M1107645</guid>
      <dc:creator>bgerchikov</dc:creator>
      <dc:date>2014-03-13T22:23:33Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Days to Date Field During Load</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-Days-to-Date-Field-During-Load/m-p/574706#M1107646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG alt="Adding 45 days.jpg" class="jive-image" src="/legacyfs/online/55006_Adding 45 days.jpg" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Mar 2014 22:36:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-Days-to-Date-Field-During-Load/m-p/574706#M1107646</guid>
      <dc:creator>chiru_thota</dc:creator>
      <dc:date>2014-03-13T22:36:59Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Days to Date Field During Load</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-Days-to-Date-Field-During-Load/m-p/574707#M1107647</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Boris:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm getting an error (red squiggles) after where the statement is entered. I can't figure out why.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jeff&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;STRONG style="color: #0000ff;"&gt;&amp;nbsp; &lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #0000ff;"&gt;&lt;SPAN style="color: #800000;"&gt;`Age (Days)`&lt;/SPAN&gt;,&lt;BR /&gt;&lt;SPAN style="color: #800000;"&gt;`Assigned To`&lt;/SPAN&gt;,&lt;BR /&gt;&lt;SPAN style="color: #800000;"&gt;`CAPA No`&lt;/SPAN&gt;,&lt;BR /&gt;&lt;SPAN style="color: #800000;"&gt;Category&lt;/SPAN&gt;,&lt;BR /&gt;&lt;SPAN style="color: #800000;"&gt;`Close Date`&lt;/SPAN&gt;,&lt;BR /&gt;&lt;SPAN style="color: #800000;"&gt;`Date Open`&lt;/SPAN&gt;,&lt;BR /&gt;&lt;SPAN style="color: #800000;"&gt;`Days Open`&lt;/SPAN&gt;,&lt;BR /&gt;&lt;SPAN style="color: #800000;"&gt;Dept&lt;/SPAN&gt;,&lt;BR /&gt;&lt;SPAN style="color: #800000;"&gt;`Desc`&lt;/SPAN&gt;,&lt;BR /&gt;&lt;SPAN style="color: #800000;"&gt;Division&lt;/SPAN&gt;,&lt;BR /&gt;&lt;SPAN style="color: #800000;"&gt;Origin&lt;/SPAN&gt;,&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="color: #0000ff;"&gt;if&lt;/SPAN&gt;&lt;STRONG style="color: #ff0000;"&gt;(&lt;/STRONG&gt;&lt;SPAN style="color: #0000ff;"&gt;len&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;trim&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;[Sched Completion Date]&lt;/SPAN&gt;))&amp;gt;0,&lt;SPAN style="color: #800000;"&gt;[Sched Completion Date]&lt;/SPAN&gt;,&lt;BR /&gt;&lt;SPAN style="color: #0000ff;"&gt;date&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;num&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;[Date Open]&lt;/SPAN&gt;)+45) &lt;SPAN style="color: #0000ff;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;[Scheduled Completion Date]&lt;/SPAN&gt;,&lt;BR /&gt;&lt;BR /&gt;Source,&lt;BR /&gt;Status,&lt;BR /&gt;Type,&lt;BR /&gt;Date(yearstart(&lt;SPAN style="color: #800000;"&gt;[Date Open]&lt;/SPAN&gt;), 'YYYY') as YearOpen,&lt;BR /&gt;Date(yearstart(&lt;SPAN style="color: #800000;"&gt;[Close Date]&lt;/SPAN&gt;), 'YYYY/MM') as YearClose,&lt;BR /&gt;Date(monthstart(&lt;SPAN style="color: #800000;"&gt;[Date Open]&lt;/SPAN&gt;), 'YYYY/MM') as YrMon_Open,&lt;BR /&gt;Date(monthstart(&lt;SPAN style="color: #800000;"&gt;[Close Date]&lt;/SPAN&gt;), 'YYYY/MM') as YrMon_Close,;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG style="color: #0000ff;"&gt;SQL&lt;/STRONG&gt; SELECT *&lt;BR /&gt;FROM qryCAPA; &lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Mar 2014 22:49:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-Days-to-Date-Field-During-Load/m-p/574707#M1107647</guid>
      <dc:creator>jmonroe918</dc:creator>
      <dc:date>2014-03-13T22:49:15Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Days to Date Field During Load</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-Days-to-Date-Field-During-Load/m-p/574708#M1107648</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;alt(&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; date(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;[Sched Complete Date]&lt;/SPAN&gt;), &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; date([Create Date]+45)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ) &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt; [Sched Complete Date]&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Mar 2014 22:50:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-Days-to-Date-Field-During-Load/m-p/574708#M1107648</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2014-03-13T22:50:57Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Days to Date Field During Load</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-Days-to-Date-Field-During-Load/m-p/574709#M1107649</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;closing bracket missed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(len(trim([Sched Completion Date]))&amp;gt;0,[Sched Completion Date],&lt;/P&gt;&lt;P&gt;date(num([Date Open])+45)) as [Scheduled Completion Date]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Mar 2014 22:51:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-Days-to-Date-Field-During-Load/m-p/574709#M1107649</guid>
      <dc:creator>chiru_thota</dc:creator>
      <dc:date>2014-03-13T22:51:37Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Days to Date Field During Load</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-Days-to-Date-Field-During-Load/m-p/574710#M1107650</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, missed ")"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;if&lt;/SPAN&gt;&lt;STRONG style="font-style: inherit; font-family: inherit; color: #ff0000;"&gt;(&lt;/STRONG&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;len&lt;/SPAN&gt;(&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;trim&lt;/SPAN&gt;(&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #800000;"&gt;[Sched Completion Date]&lt;/SPAN&gt;))&amp;gt;0,&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #800000;"&gt;[Sched Completion Date]&lt;/SPAN&gt;,&lt;BR /&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;date&lt;/SPAN&gt;(&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;num&lt;/SPAN&gt;(&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #800000;"&gt;[Date Open]&lt;/SPAN&gt;)+45)&lt;STRONG style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;)&lt;/STRONG&gt; &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #800000;"&gt;[Scheduled Completion Date]&lt;/SPAN&gt;,&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Mar 2014 23:02:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-Days-to-Date-Field-During-Load/m-p/574710#M1107650</guid>
      <dc:creator>bgerchikov</dc:creator>
      <dc:date>2014-03-13T23:02:58Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Days to Date Field During Load</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-Days-to-Date-Field-During-Load/m-p/574711#M1107651</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Yeah, I just found it too. However, the data that is replacing the blanks is showing in a five-digit format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;41206, 41264, etc mixed in with the original dates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I fix the format?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jeff&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Mar 2014 23:06:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-Days-to-Date-Field-During-Load/m-p/574711#M1107651</guid>
      <dc:creator>jmonroe918</dc:creator>
      <dc:date>2014-03-13T23:06:46Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Days to Date Field During Load</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-Days-to-Date-Field-During-Load/m-p/574712#M1107652</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just add formatting:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(len(trim( [SchedCompleteDate]))&amp;gt;0, [SchedCompleteDate], date(num([CreatedDate])+45, '&lt;STRONG&gt;MM/DD/YYYY&lt;/STRONG&gt;')) as [SchedCompleteDate],&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Mar 2014 23:19:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-Days-to-Date-Field-During-Load/m-p/574712#M1107652</guid>
      <dc:creator>bgerchikov</dc:creator>
      <dc:date>2014-03-13T23:19:40Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Days to Date Field During Load</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-Days-to-Date-Field-During-Load/m-p/574713#M1107653</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm still getting the 5-digits.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Mar 2014 23:25:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-Days-to-Date-Field-During-Load/m-p/574713#M1107653</guid>
      <dc:creator>jmonroe918</dc:creator>
      <dc:date>2014-03-13T23:25:38Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Days to Date Field During Load</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-Days-to-Date-Field-During-Load/m-p/574714#M1107654</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please check date format settings. it should be&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET DateFormat='M/D/YYYY';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please review attached&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Mar 2014 23:43:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-Days-to-Date-Field-During-Load/m-p/574714#M1107654</guid>
      <dc:creator>bgerchikov</dc:creator>
      <dc:date>2014-03-13T23:43:14Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Days to Date Field During Load</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-Days-to-Date-Field-During-Load/m-p/574715#M1107655</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It might happened because you perform it in SQL.&lt;/P&gt;&lt;P&gt;Try the following:&lt;/P&gt;&lt;P&gt;1. Create Temp table out of SQL Load&lt;/P&gt;&lt;P&gt;2. Create Fact table Residence Temp with IF&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; TEMP:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit; color: #0000ff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #800000;"&gt;`Age (Days)`&lt;/SPAN&gt;,&lt;BR /&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #800000;"&gt;`Assigned To`&lt;/SPAN&gt;,&lt;BR /&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #800000;"&gt;`CAPA No`&lt;/SPAN&gt;,&lt;BR /&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #800000;"&gt;Category&lt;/SPAN&gt;,&lt;BR /&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #800000;"&gt;`Close Date`&lt;/SPAN&gt;,&lt;BR /&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #800000;"&gt;`Date Open`&lt;/SPAN&gt;,&lt;BR /&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #800000;"&gt;`Days Open`&lt;/SPAN&gt;,&lt;BR /&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #800000;"&gt;Dept&lt;/SPAN&gt;,&lt;BR /&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #800000;"&gt;`Desc`&lt;/SPAN&gt;,&lt;BR /&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #800000;"&gt;Division&lt;/SPAN&gt;,&lt;BR /&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #800000;"&gt;Origin&lt;/SPAN&gt;,&lt;BR /&gt;'&lt;STRONG style="color: #800000; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;Sched Completion Date&lt;/STRONG&gt;' as &lt;STRONG style="font-family: inherit; font-style: inherit; color: #0000ff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #800000;"&gt;[Temp Sched Completion Date]&lt;/SPAN&gt;,&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;STRONG style="color: #800000; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;&lt;STRONG style="font-family: inherit; font-style: inherit; color: #0000ff;"&gt;&lt;SPAN style="color: #0000ff; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;'&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #800000;"&gt;Date Open' &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="color: #800000;"&gt;as [Date Open],&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN style="color: #0000ff;"&gt;Source,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #0000ff;"&gt;Status,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #0000ff;"&gt;Type,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #0000ff;"&gt;Date(yearstart(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;[Date Open]&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;), 'YYYY') as YearOpen,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #0000ff;"&gt;Date(yearstart(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;[Close Date]&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;), 'YYYY/MM') as YearClose,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #0000ff;"&gt;Date(monthstart(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;[Date Open]&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;), 'YYYY/MM') as YrMon_Open,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #0000ff;"&gt;Date(monthstart(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;[Close Date]&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;), 'YYYY/MM') as YrMon_Close,;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG style="color: #0000ff; font-style: inherit; font-family: inherit;"&gt;SQL&lt;/STRONG&gt;&lt;SPAN style="color: #0000ff;"&gt; SELECT *&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #0000ff;"&gt;FROM qryCAPA;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG style="color: #0000ff; font-style: inherit; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG style="color: #0000ff; font-style: inherit; font-family: inherit;"&gt;FACT:&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG style="color: #0000ff; font-style: inherit; font-family: inherit;"&gt;LOAD *,&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG style="color: #0000ff; font-style: inherit; font-family: inherit;"&gt;&lt;STRONG style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;if&lt;/SPAN&gt;&lt;STRONG style="font-style: inherit; font-family: inherit; color: #ff0000;"&gt;(&lt;/STRONG&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;len&lt;/SPAN&gt;(&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;trim&lt;/SPAN&gt;(&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #800000;"&gt;[&lt;STRONG style="font-family: inherit; font-style: inherit; color: #0000ff;"&gt;&lt;STRONG style="color: #800000; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;Temp &lt;/STRONG&gt;&lt;/STRONG&gt;Sched Completion Date]&lt;/SPAN&gt;))&amp;gt;0,&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #800000;"&gt;[&lt;STRONG style="font-family: inherit; font-style: inherit; color: #0000ff;"&gt;&lt;STRONG style="color: #800000; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;Temp &lt;/STRONG&gt;&lt;/STRONG&gt;Sched Completion Date]&lt;/SPAN&gt;, &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;date&lt;/SPAN&gt;(&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;num&lt;/SPAN&gt;(&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #800000;"&gt;[Date Open]&lt;/SPAN&gt;)+45)) &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #800000;"&gt;[Scheduled Completion Date]&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG style="color: #0000ff; font-style: inherit; font-family: inherit;"&gt;Resident TEMP&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG style="color: #0000ff; font-style: inherit; font-family: inherit;"&gt;;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG style="color: #0000ff; font-style: inherit; font-family: inherit;"&gt;drop table TEMP;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG style="color: #0000ff; font-style: inherit; font-family: inherit;"&gt;drop field &lt;STRONG style="color: #0000ff; font-style: inherit; font-family: inherit;"&gt;&lt;STRONG style="color: #800000; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;[&lt;STRONG style="font-family: inherit; font-style: inherit; color: #0000ff;"&gt;&lt;STRONG style="color: #800000; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;Temp &lt;/STRONG&gt;&lt;/STRONG&gt;Sched Completion Date];&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG style="color: #0000ff; font-style: inherit; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG style="color: #0000ff; font-style: inherit; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Mar 2014 23:55:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-Days-to-Date-Field-During-Load/m-p/574715#M1107655</guid>
      <dc:creator>bgerchikov</dc:creator>
      <dc:date>2014-03-13T23:55:58Z</dc:date>
    </item>
  </channel>
</rss>

