<?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: Can I change a record in a field during the Load process in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Can-I-change-a-record-in-a-field-during-the-Load-process/m-p/550512#M1132076</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi John&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if POR 2H13 is the field name then use&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;"POR 2H13" as POR2H13&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if POR 2H13 is the content then use&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;trim(fieldname)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; as fieldname&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best regards&lt;/P&gt;&lt;P&gt;chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Nov 2013 10:43:07 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-11-20T10:43:07Z</dc:date>
    <item>
      <title>Can I change a record in a field during the Load process</title>
      <link>https://community.qlik.com/t5/QlikView/Can-I-change-a-record-in-a-field-during-the-Load-process/m-p/550509#M1132073</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;&lt;BR /&gt;I have a table which has a field called Forecast Version. The Forecast Version field&amp;nbsp; contains three records which have the following name structure 'POR 2H13'. Is it possible to rename the recodr name during a load so that, for example, POR 2H13 becomes POR2H13?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Nov 2013 10:38:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-I-change-a-record-in-a-field-during-the-Load-process/m-p/550509#M1132073</guid>
      <dc:creator />
      <dc:date>2013-11-20T10:38:13Z</dc:date>
    </item>
    <item>
      <title>Re: Can I change a record in a field during the Load process</title>
      <link>https://community.qlik.com/t5/QlikView/Can-I-change-a-record-in-a-field-during-the-Load-process/m-p/550510#M1132074</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;You can use Purgechar(yourField, ' ') &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;JV&lt;/P&gt;&lt;P&gt;&lt;A href="http://biexperience.wordpress.com/" title="http://biexperience.wordpress.com/"&gt;BI Experience | A place to share our Business Intelligence experiences&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Nov 2013 10:40:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-I-change-a-record-in-a-field-during-the-Load-process/m-p/550510#M1132074</guid>
      <dc:creator>jvitantonio</dc:creator>
      <dc:date>2013-11-20T10:40:34Z</dc:date>
    </item>
    <item>
      <title>Re: Can I change a record in a field during the Load process</title>
      <link>https://community.qlik.com/t5/QlikView/Can-I-change-a-record-in-a-field-during-the-Load-process/m-p/550511#M1132075</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, that should be possible, for example like&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;&amp;nbsp; if([Forecast Version] = 'POR 2H12','POR2H13', [Forecast Version]) as [ForecastVersion],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ...&lt;/P&gt;&lt;P&gt;FROM ...;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&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;&amp;nbsp; purgechar([Forecast Version], ' ') as [ForecastVersion],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ...&lt;/P&gt;&lt;P&gt;FROM ..;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Nov 2013 10:41:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-I-change-a-record-in-a-field-during-the-Load-process/m-p/550511#M1132075</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-11-20T10:41:00Z</dc:date>
    </item>
    <item>
      <title>Re: Can I change a record in a field during the Load process</title>
      <link>https://community.qlik.com/t5/QlikView/Can-I-change-a-record-in-a-field-during-the-Load-process/m-p/550512#M1132076</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi John&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if POR 2H13 is the field name then use&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;"POR 2H13" as POR2H13&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if POR 2H13 is the content then use&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;trim(fieldname)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; as fieldname&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best regards&lt;/P&gt;&lt;P&gt;chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Nov 2013 10:43:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-I-change-a-record-in-a-field-during-the-Load-process/m-p/550512#M1132076</guid>
      <dc:creator />
      <dc:date>2013-11-20T10:43:07Z</dc:date>
    </item>
    <item>
      <title>Re: Can I change a record in a field during the Load process</title>
      <link>https://community.qlik.com/t5/QlikView/Can-I-change-a-record-in-a-field-during-the-Load-process/m-p/550513#M1132077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My Load statement looks like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FACTS:&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #0000ff;"&gt;Load&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000;"&gt;Data&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000;"&gt;ForecastVersion&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000;"&gt;Market&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000;"&gt;Printer&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000;"&gt;Measure&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000;"&gt;Technology&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000;"&gt;Geography&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000;"&gt;ShipDate&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;Date&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;Date#&lt;/SPAN&gt; (&lt;SPAN style="color: #800000;"&gt;ShipDate&lt;/SPAN&gt; , 'YYYYMM'),'MMM-YY') &lt;SPAN style="color: #0000ff;"&gt;as &lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;Date &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000;"&gt;VersionData:&lt;BR /&gt;&lt;STRONG style="color: #0000ff;"&gt;LOAD&lt;/STRONG&gt; &lt;SPAN style="color: #0000ff;"&gt;Distinct&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #800000;"&gt;ForecastVersion&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #0000ff;"&gt;RESIDENT&lt;/SPAN&gt; FACTS; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;THe content of ForecastVersion is&lt;/P&gt;&lt;P&gt;Current&lt;/P&gt;&lt;P&gt;POR 1H13&lt;/P&gt;&lt;P&gt;POR 2H13&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wan t to cahnge this to (spaces removed) :&lt;/P&gt;&lt;P&gt;Current&lt;/P&gt;&lt;P&gt;POR1H13&lt;/P&gt;&lt;P&gt;POR2H13&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The solution suggested does not work:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;"POR 2H13" as POR2H13&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Qlikview sees this as a load from my source data. Can you help me in understanding how to incorporate the code into the script correctly please?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Nov 2013 12:17:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-I-change-a-record-in-a-field-during-the-Load-process/m-p/550513#M1132077</guid>
      <dc:creator />
      <dc:date>2013-11-20T12:17:50Z</dc:date>
    </item>
    <item>
      <title>Re: Can I change a record in a field during the Load process</title>
      <link>https://community.qlik.com/t5/QlikView/Can-I-change-a-record-in-a-field-during-the-Load-process/m-p/550514#M1132078</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; Use the code as below &lt;SPAN style="color: #800000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 10pt; line-height: 1.5em;"&gt;in the load statement .&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;PurgeChar(&lt;SPAN style="color: #800000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;ForecastVersion&lt;/SPAN&gt;,' ') as &lt;/STRONG&gt;&lt;SPAN style="color: #800000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG&gt;ForecastVersion&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Yusuf &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Nov 2013 12:28:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-I-change-a-record-in-a-field-during-the-Load-process/m-p/550514#M1132078</guid>
      <dc:creator />
      <dc:date>2013-11-20T12:28:12Z</dc:date>
    </item>
    <item>
      <title>Re: Can I change a record in a field during the Load process</title>
      <link>https://community.qlik.com/t5/QlikView/Can-I-change-a-record-in-a-field-during-the-Load-process/m-p/550515#M1132079</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi John&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this solution is for field name not for content&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you must use&lt;/P&gt;&lt;P&gt;trim(ForecastVersion)&amp;nbsp;&amp;nbsp; as ForeCastVersion&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or purgechar(ForeCastVersion,' ')&amp;nbsp; as ForeCastVersion&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best regards&lt;/P&gt;&lt;P&gt;chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Nov 2013 12:52:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-I-change-a-record-in-a-field-during-the-Load-process/m-p/550515#M1132079</guid>
      <dc:creator />
      <dc:date>2013-11-20T12:52:48Z</dc:date>
    </item>
    <item>
      <title>Re: Can I change a record in a field during the Load process</title>
      <link>https://community.qlik.com/t5/QlikView/Can-I-change-a-record-in-a-field-during-the-Load-process/m-p/550516#M1132080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Hi ,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; You can Use this code aslo &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; color: #800000;"&gt;in the load statement .&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;Replace(&lt;STRONG style="color: #800000; font-style: inherit; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-weight: inherit;"&gt;ForecastVersion&lt;/STRONG&gt;,' ','') as [&lt;STRONG style="color: #800000; font-style: inherit; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-weight: inherit;"&gt;ForecastVersion&lt;/STRONG&gt;]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here in bracket after FieldName 2 nd Paramater (' ') one space is there and 3 rd Paramater ('') no space is there.&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;Regards,&lt;/P&gt;&lt;P&gt;Ravikant.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Nov 2013 12:52:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-I-change-a-record-in-a-field-during-the-Load-process/m-p/550516#M1132080</guid>
      <dc:creator />
      <dc:date>2013-11-20T12:52:56Z</dc:date>
    </item>
    <item>
      <title>Re: Can I change a record in a field during the Load process</title>
      <link>https://community.qlik.com/t5/QlikView/Can-I-change-a-record-in-a-field-during-the-Load-process/m-p/550517#M1132084</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;Thanks so much for the very helpful and quick replies. It's great to see that the solutions are simple and straightforward. I'm lerarning all the time &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Nov 2013 13:29:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-I-change-a-record-in-a-field-during-the-Load-process/m-p/550517#M1132084</guid>
      <dc:creator />
      <dc:date>2013-11-20T13:29:10Z</dc:date>
    </item>
  </channel>
</rss>

