<?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: Overriding existing Column with new imported table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Overriding-existing-Column-with-new-imported-table/m-p/114077#M604709</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There are multiple ways of doing this, here is one of them-&lt;/P&gt;&lt;P&gt;Left join Excel_1 to Table_1 on ID, rename field REGION to something like New_REGION and then resident the final output table.&lt;/P&gt;&lt;P&gt;Add another field as if(IsNull(new_REGION), REGION, new_REGION) as Final_Region&lt;SPAN style="font-size: 13.3333px;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Jul 2018 13:58:29 GMT</pubDate>
    <dc:creator>neelamsaroha157</dc:creator>
    <dc:date>2018-07-05T13:58:29Z</dc:date>
    <item>
      <title>Overriding existing Column with new imported table</title>
      <link>https://community.qlik.com/t5/QlikView/Overriding-existing-Column-with-new-imported-table/m-p/114076#M604708</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a Loader Script as such:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table_1:&lt;/P&gt;&lt;P&gt;Load ID, CUSTOMER_NAME, REGION&lt;/P&gt;&lt;P&gt;FROM [\\test\data.qvd]&lt;/P&gt;&lt;P&gt;(qvd);&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Table_2:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Load ID, PRODUCT&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;FROM [\\test\data2.qvd]&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;(qvd);&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Which creates the FIELDS ID,CUSTOMER_NAME, REGION and PRODUCT for each ID (So joins the tables)&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;then I import an excel spreadsheet as:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Excel_1:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Load ID, REGION&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;FROM [\\test\excel.xlsx]&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;(ooxml, embedded labels, table is Sheet1)&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Excel_1 table has updated REGION codes for select IDs.&amp;nbsp; So I want to be able to do something like this in SQL but in Qlikview:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Case when Excel_1.ID = Table_1.ID then Excel_1.REGION else Table_1.REGION end as REGION.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Is this possible?&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Regards,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Aksel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jul 2018 13:49:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Overriding-existing-Column-with-new-imported-table/m-p/114076#M604708</guid>
      <dc:creator>aetingu12</dc:creator>
      <dc:date>2018-07-05T13:49:03Z</dc:date>
    </item>
    <item>
      <title>Re: Overriding existing Column with new imported table</title>
      <link>https://community.qlik.com/t5/QlikView/Overriding-existing-Column-with-new-imported-table/m-p/114077#M604709</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There are multiple ways of doing this, here is one of them-&lt;/P&gt;&lt;P&gt;Left join Excel_1 to Table_1 on ID, rename field REGION to something like New_REGION and then resident the final output table.&lt;/P&gt;&lt;P&gt;Add another field as if(IsNull(new_REGION), REGION, new_REGION) as Final_Region&lt;SPAN style="font-size: 13.3333px;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jul 2018 13:58:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Overriding-existing-Column-with-new-imported-table/m-p/114077#M604709</guid>
      <dc:creator>neelamsaroha157</dc:creator>
      <dc:date>2018-07-05T13:58:29Z</dc:date>
    </item>
    <item>
      <title>Re: Overriding existing Column with new imported table</title>
      <link>https://community.qlik.com/t5/QlikView/Overriding-existing-Column-with-new-imported-table/m-p/114078#M604710</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check this out&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jul 2018 14:05:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Overriding-existing-Column-with-new-imported-table/m-p/114078#M604710</guid>
      <dc:creator>neelamsaroha157</dc:creator>
      <dc:date>2018-07-05T14:05:06Z</dc:date>
    </item>
    <item>
      <title>Re: Overriding existing Column with new imported table</title>
      <link>https://community.qlik.com/t5/QlikView/Overriding-existing-Column-with-new-imported-table/m-p/114079#M604711</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Apologies, I am on corporate computer which doesn't allow downloading files. &lt;/P&gt;&lt;P&gt;Would it be possible to paste the code?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jul 2018 14:14:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Overriding-existing-Column-with-new-imported-table/m-p/114079#M604711</guid>
      <dc:creator>aetingu12</dc:creator>
      <dc:date>2018-07-05T14:14:44Z</dc:date>
    </item>
    <item>
      <title>Re: Overriding existing Column with new imported table</title>
      <link>https://community.qlik.com/t5/QlikView/Overriding-existing-Column-with-new-imported-table/m-p/114080#M604712</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Table_1:&lt;/P&gt;&lt;P&gt;load * inline [&lt;/P&gt;&lt;P&gt;ID,CUSTOMER_NAME, REGION&lt;/P&gt;&lt;P&gt;2018,A, x&lt;/P&gt;&lt;P&gt;2019,B, y&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;Left Join&lt;/P&gt;&lt;P&gt;Excel_1:&lt;/P&gt;&lt;P&gt;load * inline [&lt;/P&gt;&lt;P&gt;ID, new_REGION&lt;/P&gt;&lt;P&gt;2018,z&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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD *, if(IsNull(new_REGION), REGION, new_REGION) as Final_Region&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Resident Table_1;&lt;/P&gt;&lt;P&gt;DROP Table Table_1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the output:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture2.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/207092_Capture2.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;You can drop the REGION and new_REGION field.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jul 2018 14:53:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Overriding-existing-Column-with-new-imported-table/m-p/114080#M604712</guid>
      <dc:creator>neelamsaroha157</dc:creator>
      <dc:date>2018-07-05T14:53:54Z</dc:date>
    </item>
    <item>
      <title>Re: Overriding existing Column with new imported table</title>
      <link>https://community.qlik.com/t5/QlikView/Overriding-existing-Column-with-new-imported-table/m-p/114081#M604713</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Much appreciated! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your patience and help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jul 2018 15:00:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Overriding-existing-Column-with-new-imported-table/m-p/114081#M604713</guid>
      <dc:creator>aetingu12</dc:creator>
      <dc:date>2018-07-05T15:00:50Z</dc:date>
    </item>
  </channel>
</rss>

