<?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: Derive additional column on existing table during Load in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Derive-additional-column-on-existing-table-during-Load/m-p/833124#M1017446</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Works perfectly! Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 Apr 2015 08:24:14 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-04-29T08:24:14Z</dc:date>
    <item>
      <title>Derive additional column on existing table during Load</title>
      <link>https://community.qlik.com/t5/QlikView/Derive-additional-column-on-existing-table-during-Load/m-p/833121#M1017443</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;Is there a way I can derive an additional field on existing table during the LOAD?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sample Output:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 302px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" width="64"&gt;ID&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="160"&gt;Status&lt;/TD&gt;&lt;TD class="xl64" style="border-left: none;" width="78"&gt;&lt;STRONG&gt;Final Status&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: none;"&gt;Abc&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;pass&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;&lt;STRONG&gt;Passed&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: none;"&gt;Def&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;pass (with special cases)&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;&lt;STRONG&gt;Passed&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: none;"&gt;Ghi&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;fail&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;&lt;STRONG&gt;Failed&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Final Status column will be my additional/derive field based on the initial Status field on my existing table.&lt;/P&gt;&lt;P&gt;Appreciate your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Bea&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2015 03:48:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Derive-additional-column-on-existing-table-during-Load/m-p/833121#M1017443</guid>
      <dc:creator />
      <dc:date>2015-04-15T03:48:11Z</dc:date>
    </item>
    <item>
      <title>Re: Derive additional column on existing table during Load</title>
      <link>https://community.qlik.com/t5/QlikView/Derive-additional-column-on-existing-table-during-Load/m-p/833122#M1017444</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can do a load from an existing table using resident, if you want add (join) the column to the existing table use a join load. Something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Join (SourceData) LOAD&lt;/P&gt;&lt;P&gt;ID,&lt;/P&gt;&lt;P&gt;If(left(Status,4)='pass','Passed',If(left(Status,4)='fail','Failed')) as [Final Status]&lt;/P&gt;&lt;P&gt;Resident SourceData;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2015 08:48:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Derive-additional-column-on-existing-table-during-Load/m-p/833122#M1017444</guid>
      <dc:creator>stigchel</dc:creator>
      <dc:date>2015-04-15T08:48:40Z</dc:date>
    </item>
    <item>
      <title>Re: Derive additional column on existing table during Load</title>
      <link>https://community.qlik.com/t5/QlikView/Derive-additional-column-on-existing-table-during-Load/m-p/833123#M1017445</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Add a preceding load that adds the Final Status:&lt;/P&gt;&lt;P&gt;Load *, If(left(Status,4) = 'fail', 'Failed', 'Passed') As [Final Status];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load * inline [&lt;/P&gt;&lt;P&gt;ID,Status&lt;/P&gt;&lt;P&gt;Abc,pass&lt;/P&gt;&lt;P&gt;Def,pass (with special cases)&lt;/P&gt;&lt;P&gt;Ghi,fail];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is based on your input data, if you have more possible values, you may need to adjust the If condition.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2015 08:51:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Derive-additional-column-on-existing-table-during-Load/m-p/833123#M1017445</guid>
      <dc:creator>Ralf-Narfeldt</dc:creator>
      <dc:date>2015-04-15T08:51:20Z</dc:date>
    </item>
    <item>
      <title>Re: Derive additional column on existing table during Load</title>
      <link>https://community.qlik.com/t5/QlikView/Derive-additional-column-on-existing-table-during-Load/m-p/833124#M1017446</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Works perfectly! Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Apr 2015 08:24:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Derive-additional-column-on-existing-table-during-Load/m-p/833124#M1017446</guid>
      <dc:creator />
      <dc:date>2015-04-29T08:24:14Z</dc:date>
    </item>
  </channel>
</rss>

