<?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: How Do I Change the Date of a Record Using the Load Statement? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-Do-I-Change-the-Date-of-a-Record-Using-the-Load-Statement/m-p/658789#M1064576</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #ff0000;"&gt;hmm.. i missed an extra ')' to close the IF. Try it once more &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #ff0000;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #ff0000;"&gt;IF(Revenue_Status__c = 'Unallocated',&amp;nbsp;&amp;nbsp; Date(YearEnd(Today()))) as [Actual Date],&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 09 Sep 2014 16:36:51 GMT</pubDate>
    <dc:creator>JonnyPoole</dc:creator>
    <dc:date>2014-09-09T16:36:51Z</dc:date>
    <item>
      <title>How Do I Change the Date of a Record Using the Load Statement?</title>
      <link>https://community.qlik.com/t5/QlikView/How-Do-I-Change-the-Date-of-a-Record-Using-the-Load-Statement/m-p/658786#M1064573</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm pulling my data from Salesforce.com.&amp;nbsp; I'm trying to assign a date to specific records (Unallocated Revenues) when I load them.&amp;nbsp; The date field on the record is 'Effective_Date__c' (and due to business rules, these specific records do not have an Effective Date so I'm trying to assign one just to classify them somewhere).&amp;nbsp; &lt;STRONG&gt;I'm trying to give them an Effective Date = the last day of the current year.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is my load statement:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp; Id as FactId,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Name as FactName,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Project__c as ProjectId,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Client__c as Client,&lt;/P&gt;&lt;P&gt;&amp;nbsp; '' as [Task Value],&lt;/P&gt;&lt;P&gt;&amp;nbsp; 'Unallocated' as FactType,&lt;/P&gt;&lt;P&gt;&amp;nbsp; '' as PFA,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Project_Name__c as ProjectName,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Project_Number__c as PR#,&lt;/P&gt;&lt;P&gt;&amp;nbsp; '' as Program,&lt;/P&gt;&lt;P&gt;&amp;nbsp; '' as Active,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="; color: #ff0000;"&gt;&lt;STRONG&gt;IF(Revenue_Status__c = 'Unallocated', Effective_Date__c = Date(YearEnd(Today()))) as [Actual Date],&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Amount__c as Amount;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I reload, the Unallocated records display under December 1899. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="66393" alt="QV Date Issue.png" class="jive-image" src="/legacyfs/online/66393_QV Date Issue.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way that I can load these records so the Effective Date = December 31, 2014?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Luke&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Sep 2014 16:16:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-Do-I-Change-the-Date-of-a-Record-Using-the-Load-Statement/m-p/658786#M1064573</guid>
      <dc:creator />
      <dc:date>2014-09-09T16:16:24Z</dc:date>
    </item>
    <item>
      <title>Re: How Do I Change the Date of a Record Using the Load Statement?</title>
      <link>https://community.qlik.com/t5/QlikView/How-Do-I-Change-the-Date-of-a-Record-Using-the-Load-Statement/m-p/658787#M1064574</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Try just this. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #ff0000;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #ff0000;"&gt;IF(Revenue_Status__c = 'Unallocated',&amp;nbsp;&amp;nbsp; Date(YearEnd(Today())) as [Actual Date],&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #ff0000;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;I was thinking you may want to assign the original date however if its not unallocated:&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #ff0000;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #ff0000;"&gt;&lt;STRONG style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #ff0000;"&gt;IF(Revenue_Status__c = 'Unallocated',&amp;nbsp;&amp;nbsp; Date(YearEnd(Today()),&lt;STRONG style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #ff0000;"&gt;Effective_Date__c&lt;/STRONG&gt;) as [Actual Date],&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Sep 2014 16:19:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-Do-I-Change-the-Date-of-a-Record-Using-the-Load-Statement/m-p/658787#M1064574</guid>
      <dc:creator>JonnyPoole</dc:creator>
      <dc:date>2014-09-09T16:19:34Z</dc:date>
    </item>
    <item>
      <title>Re: How Do I Change the Date of a Record Using the Load Statement?</title>
      <link>https://community.qlik.com/t5/QlikView/How-Do-I-Change-the-Date-of-a-Record-Using-the-Load-Statement/m-p/658788#M1064575</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jonathan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your quick reply.&amp;nbsp; I have added this to my IF statement and have received the same output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Luke&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Sep 2014 16:23:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-Do-I-Change-the-Date-of-a-Record-Using-the-Load-Statement/m-p/658788#M1064575</guid>
      <dc:creator />
      <dc:date>2014-09-09T16:23:35Z</dc:date>
    </item>
    <item>
      <title>Re: How Do I Change the Date of a Record Using the Load Statement?</title>
      <link>https://community.qlik.com/t5/QlikView/How-Do-I-Change-the-Date-of-a-Record-Using-the-Load-Statement/m-p/658789#M1064576</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #ff0000;"&gt;hmm.. i missed an extra ')' to close the IF. Try it once more &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #ff0000;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #ff0000;"&gt;IF(Revenue_Status__c = 'Unallocated',&amp;nbsp;&amp;nbsp; Date(YearEnd(Today()))) as [Actual Date],&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Sep 2014 16:36:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-Do-I-Change-the-Date-of-a-Record-Using-the-Load-Statement/m-p/658789#M1064576</guid>
      <dc:creator>JonnyPoole</dc:creator>
      <dc:date>2014-09-09T16:36:51Z</dc:date>
    </item>
    <item>
      <title>Re: How Do I Change the Date of a Record Using the Load Statement?</title>
      <link>https://community.qlik.com/t5/QlikView/How-Do-I-Change-the-Date-of-a-Record-Using-the-Load-Statement/m-p/658790#M1064577</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No worries.&amp;nbsp; I updated and now the Unallocated is not being bucketed by any date.&amp;nbsp; I'm curious as to why previous is bucketing it under Year = 1899?&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QV Date Issue2.png" class="jive-image" src="/legacyfs/online/66401_QV Date Issue2.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Luke&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Sep 2014 17:56:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-Do-I-Change-the-Date-of-a-Record-Using-the-Load-Statement/m-p/658790#M1064577</guid>
      <dc:creator />
      <dc:date>2014-09-09T17:56:35Z</dc:date>
    </item>
    <item>
      <title>Re: How Do I Change the Date of a Record Using the Load Statement?</title>
      <link>https://community.qlik.com/t5/QlikView/How-Do-I-Change-the-Date-of-a-Record-Using-the-Load-Statement/m-p/658791#M1064578</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if it encounters a 'bad date' value is reverts it to that 1899 date. If it evaluates to NULL you'll get the '-'. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you paste in the full script ? I've tested this a number of times and can't think why the logic isn't working. That or a QVW upload/attachment. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Sep 2014 18:04:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-Do-I-Change-the-Date-of-a-Record-Using-the-Load-Statement/m-p/658791#M1064578</guid>
      <dc:creator>JonnyPoole</dc:creator>
      <dc:date>2014-09-09T18:04:38Z</dc:date>
    </item>
    <item>
      <title>Re: Re: How Do I Change the Date of a Record Using the Load Statement?</title>
      <link>https://community.qlik.com/t5/QlikView/How-Do-I-Change-the-Date-of-a-Record-Using-the-Load-Statement/m-p/658792#M1064579</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jonathan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've attached the QVW as well as the script here:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Main Tab:&lt;/P&gt;&lt;P&gt;SET ThousandSep=',';&lt;/P&gt;&lt;P&gt;SET DecimalSep='.';&lt;/P&gt;&lt;P&gt;SET MoneyThousandSep=',';&lt;/P&gt;&lt;P&gt;SET MoneyDecimalSep='.';&lt;/P&gt;&lt;P&gt;SET MoneyFormat='$#,##0.00;($#,##0.00)';&lt;/P&gt;&lt;P&gt;SET TimeFormat='h:mm:ss TT';&lt;/P&gt;&lt;P&gt;SET DateFormat='M/D/YYYY';&lt;/P&gt;&lt;P&gt;SET TimestampFormat='M/D/YYYY h:mm:ss[.fff] TT';&lt;/P&gt;&lt;P&gt;SET MonthNames='Jan;Feb;Mar;Apr;May;Jun;Jul;Aug;Sep;Oct;Nov;Dec';&lt;/P&gt;&lt;P&gt;SET DayNames='Mon;Tue;Wed;Thu;Fri;Sat;Sun';&lt;/P&gt;&lt;P&gt;LET vToDate = Date(YearEnd(Today()), 'YYYYMMDD'); &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;CUSTOM CONNECT TO "Provider=SalesForceDLL.dll;F26;XUserId=eQfMbSFMHDbKGXENODdKWTJOBDdSWXZNAKZCWTRNFDcEXXRMVbYIXUZOJDdSHXMMPLbGA;XPassword=YMeCUCFMHDbKWYIGTBNKTXA;";&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fact:&lt;/P&gt;&lt;P&gt;//Actual Revenue Load&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp; Id as FactId,&lt;/P&gt;&lt;P&gt;// Id as RevenueId,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Name as FactName,&lt;/P&gt;&lt;P&gt;// Milestone__c as MilestoneId,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Project__c as ProjectId,&lt;/P&gt;&lt;P&gt;&amp;nbsp; '' as Program,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Client__c as Client,&lt;/P&gt;&lt;P&gt;&amp;nbsp; '' as [Task Value],&lt;/P&gt;&lt;P&gt;&amp;nbsp; 'Booked' as FactType,&lt;/P&gt;&lt;P&gt;&amp;nbsp; '' as PFA,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Project_Name__c as ProjectName,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Project_Number__c as PR#,&lt;/P&gt;&lt;P&gt;&amp;nbsp; '' as Active,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Effective_Date__c as [Actual Date],&lt;/P&gt;&lt;P&gt;&amp;nbsp; Amount__c as Amount;&lt;/P&gt;&lt;P&gt;// Amount__c as Revenue,&lt;/P&gt;&lt;P&gt;// '' as Booked,&lt;/P&gt;&lt;P&gt;// '' as SNS,&lt;/P&gt;&lt;P&gt;// '' as Unallocated;&lt;/P&gt;&lt;P&gt;SQL SELECT * &lt;/P&gt;&lt;P&gt;FROM Revenue__c&lt;/P&gt;&lt;P&gt;WHERE Record_Type_Name__c = 'Actual';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Booked Revenue Load&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp; Id as FactId,&lt;/P&gt;&lt;P&gt;// Id as RevenueId,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Name as FactName,&lt;/P&gt;&lt;P&gt;// Milestone__c as MilestoneId,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Project__c as ProjectId,&lt;/P&gt;&lt;P&gt;&amp;nbsp; '' as Program,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Client__c as Client,&lt;/P&gt;&lt;P&gt;&amp;nbsp; '' as [Task Value],&lt;/P&gt;&lt;P&gt;&amp;nbsp; 'Booked' as FactType,&lt;/P&gt;&lt;P&gt;&amp;nbsp; '' as PFA,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Project_Name__c as ProjectName,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Project_Number__c as PR#,&lt;/P&gt;&lt;P&gt;&amp;nbsp; '' as Active,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Effective_Date__c as [Actual Date],&lt;/P&gt;&lt;P&gt;&amp;nbsp; Amount__c as Amount;&lt;/P&gt;&lt;P&gt;// '' as Revenue,&lt;/P&gt;&lt;P&gt;// 'Amount__c' as Booked,&lt;/P&gt;&lt;P&gt;// '' as SNS,&lt;/P&gt;&lt;P&gt;// '' as Unallocated;&lt;/P&gt;&lt;P&gt;SQL SELECT * &lt;/P&gt;&lt;P&gt;FROM Revenue__c&lt;/P&gt;&lt;P&gt;WHERE Record_Type_Name__c = 'Forecast'&lt;/P&gt;&lt;P&gt;AND Revenue_Status__c = 'Planned';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//SNS Revenue Load&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp; Id as FactId,&lt;/P&gt;&lt;P&gt;// Id as RevenueId,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Name as FactName,&lt;/P&gt;&lt;P&gt;// Milestone__c as MilestoneId,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Project__c as ProjectId,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Client__c as Client,&lt;/P&gt;&lt;P&gt;&amp;nbsp; '' as [Task Value],&lt;/P&gt;&lt;P&gt;&amp;nbsp; 'SNS' as FactType,&lt;/P&gt;&lt;P&gt;&amp;nbsp; '' as PFA,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Project_Name__c as ProjectName,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Project_Number__c as PR#,&lt;/P&gt;&lt;P&gt;&amp;nbsp; '' as Program,&lt;/P&gt;&lt;P&gt;&amp;nbsp; '' as Active,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Effective_Date__c as [Actual Date],&lt;/P&gt;&lt;P&gt;&amp;nbsp; Amount__c as Amount;&lt;/P&gt;&lt;P&gt;// '' as Revenue,&lt;/P&gt;&lt;P&gt;// '' as Booked,&lt;/P&gt;&lt;P&gt;// 'Amount__c' as SNS,&lt;/P&gt;&lt;P&gt;// '' as Unallocated;&lt;/P&gt;&lt;P&gt;SQL SELECT * &lt;/P&gt;&lt;P&gt;FROM Revenue__c&lt;/P&gt;&lt;P&gt;WHERE Record_Type_Name__c = 'Forecast'&lt;/P&gt;&lt;P&gt;AND Revenue_Status__c = 'Signed not Scheduled';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp; Id as FactId,&lt;/P&gt;&lt;P&gt;// Id as RevenueId,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Name as FactName,&lt;/P&gt;&lt;P&gt;// Milestone__c as MilestoneId,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Project__c as ProjectId,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Client__c as Client,&lt;/P&gt;&lt;P&gt;&amp;nbsp; '' as [Task Value],&lt;/P&gt;&lt;P&gt;&amp;nbsp; 'Unallocated' as FactType,&lt;/P&gt;&lt;P&gt;&amp;nbsp; '' as PFA,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Project_Name__c as ProjectName,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Project_Number__c as PR#,&lt;/P&gt;&lt;P&gt;&amp;nbsp; '' as Program,&lt;/P&gt;&lt;P&gt;&amp;nbsp; '' as Active,&lt;/P&gt;&lt;P&gt;// Effective_Date__c = MAKEDATE(2014,12,31) as [Actual Date],&lt;/P&gt;&lt;P&gt;// '' as [Actual Date],&lt;/P&gt;&lt;P&gt;// IF(Revenue_Status__c = 'Unallocated', Effective_Date__c = Date(YearEnd(Today())),Effective_Date__c) as [Actual Date],&lt;/P&gt;&lt;P&gt;&amp;nbsp; IF(Revenue_Status__c = 'Unallocated',&amp;nbsp;&amp;nbsp; Date(YearEnd(Today()))) as [Actual Date],&lt;/P&gt;&lt;P&gt;&amp;nbsp; Amount__c as Amount;&lt;/P&gt;&lt;P&gt;// '' as Revenue,&lt;/P&gt;&lt;P&gt;// '' as Booked,&lt;/P&gt;&lt;P&gt;// 'Amount__c' as SNS,&lt;/P&gt;&lt;P&gt;// '' as Unallocated;&lt;/P&gt;&lt;P&gt;SQL SELECT * &lt;/P&gt;&lt;P&gt;FROM Revenue__c&lt;/P&gt;&lt;P&gt;WHERE Record_Type_Name__c = 'Forecast'&lt;/P&gt;&lt;P&gt;AND Revenue_Status__c = 'Unallocated';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Id AS [FactID],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Id AS ProjectId,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; '' as FactType,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Name AS [FactName],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Account_Text__c as Client,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PFA_Text__c as PFA,&lt;/P&gt;&lt;P&gt;//&amp;nbsp;&amp;nbsp;&amp;nbsp; Project_Financial_Analyst__c AS [PFAID],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Project_Number__c AS [PR#],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Name as ProjectName,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; pse__Is_Active__c AS [Active],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Program__c as [Program],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; '' as Amount,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; '' as [Task Value];&lt;/P&gt;&lt;P&gt;//&amp;nbsp;&amp;nbsp;&amp;nbsp; '' as MilestoneId,&lt;/P&gt;&lt;P&gt;//&amp;nbsp;&amp;nbsp;&amp;nbsp; '' as Revenue,&lt;/P&gt;&lt;P&gt;//&amp;nbsp;&amp;nbsp;&amp;nbsp; '' as Booked,&lt;/P&gt;&lt;P&gt;//&amp;nbsp;&amp;nbsp;&amp;nbsp; '' as SNS,&lt;/P&gt;&lt;P&gt;//&amp;nbsp;&amp;nbsp;&amp;nbsp; '' as Unallocated,&lt;/P&gt;&lt;P&gt;//&amp;nbsp;&amp;nbsp;&amp;nbsp; '' as [Actual Date];&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;SQL SELECT *&lt;/P&gt;&lt;P&gt;FROM pse__Proj__c&lt;/P&gt;&lt;P&gt;WHERE (NOT Name LIKE '%Template%')&lt;/P&gt;&lt;P&gt;AND (NOT Name LIKE '%Test%')&lt;/P&gt;&lt;P&gt;AND&lt;/P&gt;&lt;P&gt;(pse__Project_Type__c = 'Customer Project' OR (pse__Project_Type__c = 'Internal' and Unallocated_Project__c = True));&amp;nbsp;&amp;nbsp; //Added Internal Projects w/ Unallocated Revenue = True on 6/13/14 by Luke F. to accommodate Mary Trant's request.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Master Calendar Tab:&lt;/P&gt;&lt;P&gt;/*************** MinMax Table *************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Keeps minimum and maximum Date value from Facts table&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;/P&gt;&lt;P&gt;MinMax:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Min([Actual Date]) as MinDate,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Max([Actual Date]) as MaxDate&lt;/P&gt;&lt;P&gt;RESIDENT Fact;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vMinDate = Num(Peek('MinDate', 0, 'MinMax')); &lt;/P&gt;&lt;P&gt;LET vMaxDate = Num(Peek('MaxDate', 0, 'MinMax')); &lt;/P&gt;&lt;P&gt;LET vToday = $(vMaxDate);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/*************** Temporary Calendar *************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Generates a single table with one field containing &lt;/P&gt;&lt;P&gt;all existing dates between MinDate and MaxDate.&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;/P&gt;&lt;P&gt;TempCal:&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; date($(vMinDate) + rowno() - 1) AS TempDate &lt;/P&gt;&lt;P&gt;AUTOGENERATE &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $(vMaxDate) - $(vMinDate) + 1; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP TABLE MinMax;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/*************** Master Calendar ***************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Disconnected during the Date Island exercise by renaming TempDate as IslandDate&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;/P&gt;&lt;P&gt;MasterCalendar:&lt;/P&gt;&lt;P&gt;LOAD&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; //TempDate as IslandDate,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; //Date(TempDate,'MM/DD/YYYY') AS CaseDate,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date(TempDate) AS [Actual Date],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Week(TempDate) AS Week,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Year(TempDate) AS Year,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Month(TempDate) AS Month,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Day(TempDate) AS Day,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Weekday(TempDate) AS WeekDay,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Q' &amp;amp; ceil(month(TempDate) / 3) AS Quarter,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; //Date(monthstart(TempDate), 'MMM-YYYY') AS MonthYear,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; //Date(TempDate, 'MMM-YYYY') AS MonthYear,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Month(TempDate)&amp;amp;'-'&amp;amp;Year(TempDate) AS MonthYear,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Year(TempDate)&amp;amp;'-'&amp;amp; num(month(TempDate)) AS YearMonth,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Week(TempDate)&amp;amp;'-'&amp;amp;Year(TempDate) AS WeekYear,&lt;/P&gt;&lt;P&gt;//&amp;nbsp;&amp;nbsp;&amp;nbsp; MonthStart = num(date(MonthStart(AddMonths(Today(),$(MonthsFromToday),'DD/MM/YYYY')))),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; inyeartodate(TempDate, $(vToday), 0) * -1 AS CurYTDFlag,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; inyeartodate(TempDate, $(vToday), -1) * -1 AS LastYTDFlag &lt;/P&gt;&lt;P&gt;RESIDENT TempCal &lt;/P&gt;&lt;P&gt;ORDER BY TempDate ASC;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP TABLE TempCal;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Sep 2014 18:36:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-Do-I-Change-the-Date-of-a-Record-Using-the-Load-Statement/m-p/658792#M1064579</guid>
      <dc:creator />
      <dc:date>2014-09-09T18:36:49Z</dc:date>
    </item>
    <item>
      <title>Re: How Do I Change the Date of a Record Using the Load Statement?</title>
      <link>https://community.qlik.com/t5/QlikView/How-Do-I-Change-the-Date-of-a-Record-Using-the-Load-Statement/m-p/658793#M1064580</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i think your load is fine, because if you look at below,&amp;nbsp; even though 'Year' is greyed out, it is actually associating to 12/31/2014 actual date.&amp;nbsp;&amp;nbsp; In the list box next to it that says 2014 at the top, the expression is year([Actual Date]) . I used the same expression to replace Year in the pivot table and it works there too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so what is wrong ? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think it may be your master calendar load:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try replacing this: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date(TempDate) AS [Actual Date],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Week(TempDate) AS Week,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Year(TempDate) AS Year,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Month(TempDate) AS Month,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date(TempDate) AS [Actual Date],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Week(Date(TempDate)) AS Week,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Year(Date(TempDate)) AS Year,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Month(Date(TempDate)) AS Month,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; etc... just ot make sure it know TempDate is in fact a Date.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/66425_Capture.PNG.png" style="width: 620px; height: 294px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Sep 2014 00:05:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-Do-I-Change-the-Date-of-a-Record-Using-the-Load-Statement/m-p/658793#M1064580</guid>
      <dc:creator>JonnyPoole</dc:creator>
      <dc:date>2014-09-10T00:05:04Z</dc:date>
    </item>
  </channel>
</rss>

