<?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: Update records after loading in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Update-records-after-loading/m-p/1244773#M852624</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is the code for left joins to do it, its a bit fiddly but it works&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14889694925781905" jivemacro_uid="_14889694925781905"&gt;
&lt;P&gt;ACCOUNT:&lt;/P&gt;
&lt;P&gt;LOAD * INLINE [&lt;/P&gt;
&lt;P&gt;NAME,&amp;nbsp; NO, AMOUNT, DEPT,&lt;/P&gt;
&lt;P&gt;ABC,&amp;nbsp;&amp;nbsp;&amp;nbsp; 10,&amp;nbsp; 5000,&amp;nbsp; HR,&lt;/P&gt;
&lt;P&gt;DEF,&amp;nbsp;&amp;nbsp;&amp;nbsp; 10,&amp;nbsp; 5500,&amp;nbsp; IT,&lt;/P&gt;
&lt;P&gt;GHI,&amp;nbsp;&amp;nbsp;&amp;nbsp; 20,&amp;nbsp; 2000 ,&amp;nbsp; IT,&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;];&lt;/P&gt;
&lt;P&gt;//do a left join to update a new column&lt;/P&gt;
&lt;P&gt;LEFT JOIN (ACCOUNT)&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;LOAD 'XYZ' as NEWNAME, 10 as NO, 'IT' as DEPT&lt;/P&gt;
&lt;P&gt;autogenerate(1);&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;//second left join to fill in the blanks&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;LEFT JOIN (ACCOUNT)&lt;/P&gt;
&lt;P&gt;LOAD IF(len(NEWNAME)&amp;lt;1,NAME,NEWNAME) as FINALNEWNAME, NO, AMOUNT,DEPT&lt;/P&gt;
&lt;P&gt;RESIDENT ACCOUNT;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;DROP FIELDS NAME,NEWNAME;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;RENAME FIELD FINALNEWNAME to NAME;&lt;/P&gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 08 Mar 2017 10:38:14 GMT</pubDate>
    <dc:creator>adamdavi3s</dc:creator>
    <dc:date>2017-03-08T10:38:14Z</dc:date>
    <item>
      <title>Update records after loading</title>
      <link>https://community.qlik.com/t5/QlikView/Update-records-after-loading/m-p/1244769#M852617</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;I have loaded an excel file and have few update statements that needs to update the records that are loaded already.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is sample one&lt;/P&gt;&lt;P&gt;ACCOUNT:&lt;/P&gt;&lt;P&gt;NAME&amp;nbsp; NO AMOUNT DEPT&lt;/P&gt;&lt;P&gt;ABC&amp;nbsp;&amp;nbsp;&amp;nbsp; 10&amp;nbsp;&amp;nbsp; 5000&amp;nbsp; HR&lt;/P&gt;&lt;P&gt;DEF&amp;nbsp;&amp;nbsp;&amp;nbsp; 10&amp;nbsp; 5500&amp;nbsp;&amp;nbsp; IT&lt;/P&gt;&lt;P&gt;GHI&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 20&amp;nbsp; 2000&amp;nbsp;&amp;nbsp; IT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I have update statement&amp;nbsp; that are in sql. like below&lt;/P&gt;&lt;P&gt;Update &lt;SPAN style="font-size: 13.3333px;"&gt;ACCOUNT SET NAME='XYZ' where NO=10 and DEPT='IT'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any way to achieve the above ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vivek &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Update-records-after-loading/m-p/1244769#M852617</guid>
      <dc:creator>viveksingh</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Update records after loading</title>
      <link>https://community.qlik.com/t5/QlikView/Update-records-after-loading/m-p/1244770#M852618</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;No, We can't do update process in qlikview. Qlikview for only analysis the data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Mar 2017 10:18:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Update-records-after-loading/m-p/1244770#M852618</guid>
      <dc:creator>muthukumar77</dc:creator>
      <dc:date>2017-03-08T10:18:34Z</dc:date>
    </item>
    <item>
      <title>Re: Update records after loading</title>
      <link>https://community.qlik.com/t5/QlikView/Update-records-after-loading/m-p/1244771#M852621</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you check this on your environment&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sales:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD * INLINE [&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ID, Name, Sales&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1, Anil, 10&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2, Babu, 20&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;3, Samineni, 30&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;];&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;STORE Sales into Sales.qvd (qvd);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DROP Table Sales;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sales:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD ID,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Name,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; If(Name = 'Samineni', 40, Sales) as Sales&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;From Sales.qvd (qvd);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;STORE Sales into Sales.qvd (qvd);&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Mar 2017 10:31:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Update-records-after-loading/m-p/1244771#M852621</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-03-08T10:31:06Z</dc:date>
    </item>
    <item>
      <title>Re: Update records after loading</title>
      <link>https://community.qlik.com/t5/QlikView/Update-records-after-loading/m-p/1244772#M852623</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The only way you could do this is to do some preceding loads or mapping loads or left joins but its possible for sure.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Mar 2017 10:31:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Update-records-after-loading/m-p/1244772#M852623</guid>
      <dc:creator>adamdavi3s</dc:creator>
      <dc:date>2017-03-08T10:31:22Z</dc:date>
    </item>
    <item>
      <title>Re: Update records after loading</title>
      <link>https://community.qlik.com/t5/QlikView/Update-records-after-loading/m-p/1244773#M852624</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is the code for left joins to do it, its a bit fiddly but it works&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14889694925781905" jivemacro_uid="_14889694925781905"&gt;
&lt;P&gt;ACCOUNT:&lt;/P&gt;
&lt;P&gt;LOAD * INLINE [&lt;/P&gt;
&lt;P&gt;NAME,&amp;nbsp; NO, AMOUNT, DEPT,&lt;/P&gt;
&lt;P&gt;ABC,&amp;nbsp;&amp;nbsp;&amp;nbsp; 10,&amp;nbsp; 5000,&amp;nbsp; HR,&lt;/P&gt;
&lt;P&gt;DEF,&amp;nbsp;&amp;nbsp;&amp;nbsp; 10,&amp;nbsp; 5500,&amp;nbsp; IT,&lt;/P&gt;
&lt;P&gt;GHI,&amp;nbsp;&amp;nbsp;&amp;nbsp; 20,&amp;nbsp; 2000 ,&amp;nbsp; IT,&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;];&lt;/P&gt;
&lt;P&gt;//do a left join to update a new column&lt;/P&gt;
&lt;P&gt;LEFT JOIN (ACCOUNT)&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;LOAD 'XYZ' as NEWNAME, 10 as NO, 'IT' as DEPT&lt;/P&gt;
&lt;P&gt;autogenerate(1);&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;//second left join to fill in the blanks&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;LEFT JOIN (ACCOUNT)&lt;/P&gt;
&lt;P&gt;LOAD IF(len(NEWNAME)&amp;lt;1,NAME,NEWNAME) as FINALNEWNAME, NO, AMOUNT,DEPT&lt;/P&gt;
&lt;P&gt;RESIDENT ACCOUNT;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;DROP FIELDS NAME,NEWNAME;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;RENAME FIELD FINALNEWNAME to NAME;&lt;/P&gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Mar 2017 10:38:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Update-records-after-loading/m-p/1244773#M852624</guid>
      <dc:creator>adamdavi3s</dc:creator>
      <dc:date>2017-03-08T10:38:14Z</dc:date>
    </item>
    <item>
      <title>Re: Update records after loading</title>
      <link>https://community.qlik.com/t5/QlikView/Update-records-after-loading/m-p/1244774#M852625</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is a simple preceding load&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14889697161695833" jivemacro_uid="_14889697161695833"&gt;
&lt;P&gt;ACCOUNT:&lt;/P&gt;
&lt;P&gt;LOAD NO,AMOUNT,DEPT,if(NO=10 AND DEPT='IT','XYZ',NAME) as NAME;&lt;/P&gt;
&lt;P&gt;LOAD * INLINE [&lt;/P&gt;
&lt;P&gt;NAME,&amp;nbsp; NO, AMOUNT, DEPT,&lt;/P&gt;
&lt;P&gt;ABC,&amp;nbsp;&amp;nbsp;&amp;nbsp; 10,&amp;nbsp;&amp;nbsp; 5000,&amp;nbsp; HR,&lt;/P&gt;
&lt;P&gt;DEF,&amp;nbsp;&amp;nbsp;&amp;nbsp; 10,&amp;nbsp; 5500,&amp;nbsp;&amp;nbsp; IT,&lt;/P&gt;
&lt;P&gt;GHI,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 20,&amp;nbsp; 2000 ,&amp;nbsp; IT,&lt;/P&gt;
&lt;P&gt;];&lt;/P&gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Mar 2017 10:40:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Update-records-after-loading/m-p/1244774#M852625</guid>
      <dc:creator>adamdavi3s</dc:creator>
      <dc:date>2017-03-08T10:40:48Z</dc:date>
    </item>
    <item>
      <title>Re: Update records after loading</title>
      <link>https://community.qlik.com/t5/QlikView/Update-records-after-loading/m-p/1244775#M852626</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; Its not possible in Qlikview. We cant add or change the data once loaded..If&amp;nbsp; we want to change the data we have to do it in the data source and reload only.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Mar 2017 12:15:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Update-records-after-loading/m-p/1244775#M852626</guid>
      <dc:creator>hemachandran</dc:creator>
      <dc:date>2017-03-08T12:15:11Z</dc:date>
    </item>
    <item>
      <title>Re: Update records after loading</title>
      <link>https://community.qlik.com/t5/QlikView/Update-records-after-loading/m-p/1244776#M852627</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;did this help? if so please remember to mark this as helpful or the correct answer if I have helped you or answered your question. This will help users identify the answers should they come across this thread in the future.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Mar 2017 07:30:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Update-records-after-loading/m-p/1244776#M852627</guid>
      <dc:creator>adamdavi3s</dc:creator>
      <dc:date>2017-03-09T07:30:14Z</dc:date>
    </item>
  </channel>
</rss>

