<?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: Replace existing values with New in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Replace-existing-values-with-New/m-p/325894#M711188</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Im not sure if I understood the link between the tables.&lt;/P&gt;&lt;P&gt;My basic idea was:&lt;/P&gt;&lt;P&gt; - Read first the 2nd table. &lt;/P&gt;&lt;P&gt;- Then, I read from first table only the IDs that I didn't have on 2nd table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You probably are going to rename some field to actually replace values, but I was not sure which ones you needed. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;Table:&lt;/P&gt;&lt;P&gt;LOAD ID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Num,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [New No],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Amt&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;[Incremental Testing Logic.xlsx]&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is R12);&lt;/P&gt;&lt;P&gt;Concatenate(Table)&lt;/P&gt;&lt;P&gt;LOAD ID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Num,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Revenue&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;[Incremental Testing Logic.xlsx]&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is R11)&lt;/P&gt;&lt;P&gt;where not exists(ID)&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 May 2011 13:36:33 GMT</pubDate>
    <dc:creator>erichshiino</dc:creator>
    <dc:date>2011-05-25T13:36:33Z</dc:date>
    <item>
      <title>Replace existing values with New</title>
      <link>https://community.qlik.com/t5/QlikView/Replace-existing-values-with-New/m-p/325893#M711187</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;Need your help guys!! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have attached a sample Excel File &amp;amp; find below the Requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First Sheet(R11) has 3 Rows &amp;amp; second Sheet(R12) has 2 Rows.&lt;/P&gt;&lt;P&gt;Now i want to replace the whole values of 2nd &amp;amp; 3rd Row from First table(i.e Sheet - R11) with 1st &amp;amp; 2nd Row of the Second Sheet (R12) &lt;/P&gt;&lt;P&gt;The Key between 2 Sheets/Table is No &amp;amp; New No in 2nd Sheet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Srini&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 May 2011 08:59:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Replace-existing-values-with-New/m-p/325893#M711187</guid>
      <dc:creator />
      <dc:date>2011-05-25T08:59:46Z</dc:date>
    </item>
    <item>
      <title>Re: Replace existing values with New</title>
      <link>https://community.qlik.com/t5/QlikView/Replace-existing-values-with-New/m-p/325894#M711188</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Im not sure if I understood the link between the tables.&lt;/P&gt;&lt;P&gt;My basic idea was:&lt;/P&gt;&lt;P&gt; - Read first the 2nd table. &lt;/P&gt;&lt;P&gt;- Then, I read from first table only the IDs that I didn't have on 2nd table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You probably are going to rename some field to actually replace values, but I was not sure which ones you needed. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;Table:&lt;/P&gt;&lt;P&gt;LOAD ID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Num,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [New No],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Amt&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;[Incremental Testing Logic.xlsx]&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is R12);&lt;/P&gt;&lt;P&gt;Concatenate(Table)&lt;/P&gt;&lt;P&gt;LOAD ID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Num,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Revenue&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;[Incremental Testing Logic.xlsx]&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is R11)&lt;/P&gt;&lt;P&gt;where not exists(ID)&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 May 2011 13:36:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Replace-existing-values-with-New/m-p/325894#M711188</guid>
      <dc:creator>erichshiino</dc:creator>
      <dc:date>2011-05-25T13:36:33Z</dc:date>
    </item>
    <item>
      <title>Re: Replace existing values with New</title>
      <link>https://community.qlik.com/t5/QlikView/Replace-existing-values-with-New/m-p/325895#M711189</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Erich,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My Requirement is as below&lt;/P&gt;&lt;P&gt;First Sheet (R11) contains 3 Rows&lt;/P&gt;&lt;P&gt;Second Shet(R12) contain 2 Rows&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now the Link between the First sheet &amp;amp; second shett is the No (Field from first sheet) &amp;amp; Num (Field in the second Sheet).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now i want a report as attached File (As given in Sheet 3).&lt;/P&gt;&lt;P&gt;Now one more thing if in case i keep on adding any new rows in the R12(sheet2) then these rows should keep on appending in the Report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know if you need any further info on the same&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot for your kind help on the same. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Srini&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 May 2011 16:47:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Replace-existing-values-with-New/m-p/325895#M711189</guid>
      <dc:creator />
      <dc:date>2011-05-25T16:47:55Z</dc:date>
    </item>
    <item>
      <title>Re: Replace existing values with New</title>
      <link>https://community.qlik.com/t5/QlikView/Replace-existing-values-with-New/m-p/325896#M711190</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, The script is&amp;nbsp; almost the same&lt;/P&gt;&lt;P&gt;I just changed some field names to match the requirement.&lt;/P&gt;&lt;P&gt;The logic is.&lt;/P&gt;&lt;P&gt;Read all sheet 2 (since if there is the same 'Num' in sheet1 it would be replaced anyway)&lt;/P&gt;&lt;P&gt;Read from sheet1 only the records with&amp;nbsp; 'Num' that was NOT previously loaded (using not exists)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;Table:&lt;/P&gt;&lt;P&gt;LOAD ID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Num,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [New No],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Amt&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;[Incremental Testing Logic.xlsx]&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is R12);&lt;/P&gt;&lt;P&gt;Concatenate(Table)&lt;/P&gt;&lt;P&gt;LOAD ID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Num,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Revenue as Amt&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;[Incremental Testing Logic.xlsx]&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is R11)&lt;/P&gt;&lt;P&gt;where not exists(Num)&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 May 2011 19:03:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Replace-existing-values-with-New/m-p/325896#M711190</guid>
      <dc:creator>erichshiino</dc:creator>
      <dc:date>2011-05-25T19:03:15Z</dc:date>
    </item>
  </channel>
</rss>

