<?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 Edit data based on other fields in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Edit-data-based-on-other-fields/m-p/113286#M751056</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;I would like to edit the column "&lt;STRONG&gt;Country&lt;/STRONG&gt;" based on "&lt;STRONG&gt;Country Source&lt;/STRONG&gt;" and "&lt;STRONG&gt;ID Source&lt;/STRONG&gt;".&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;IMG alt="Table example.png" class="jive-image image-1" src="/legacyfs/online/217742_Table example.png" style="height: 134px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;In other words, I want that qlikview checks "&lt;STRONG&gt;Country Source&lt;/STRONG&gt;" and "&lt;STRONG&gt;ID Source&lt;/STRONG&gt;" and in case there are values there, It should edit "&lt;STRONG&gt;Country&lt;/STRONG&gt;" column and changes ( CN --&amp;gt; DE&amp;nbsp; &amp;amp;&amp;nbsp; DE--&amp;gt; US). In order to get the following table:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Table example 2.png" class="jive-image image-2" src="/legacyfs/online/217743_Table example 2.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;Any idea how can I do it?&amp;nbsp; Thanks in&amp;nbsp; advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator>ahmed_hassan</dc:creator>
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>Edit data based on other fields</title>
      <link>https://community.qlik.com/t5/QlikView/Edit-data-based-on-other-fields/m-p/113286#M751056</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;I would like to edit the column "&lt;STRONG&gt;Country&lt;/STRONG&gt;" based on "&lt;STRONG&gt;Country Source&lt;/STRONG&gt;" and "&lt;STRONG&gt;ID Source&lt;/STRONG&gt;".&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;IMG alt="Table example.png" class="jive-image image-1" src="/legacyfs/online/217742_Table example.png" style="height: 134px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;In other words, I want that qlikview checks "&lt;STRONG&gt;Country Source&lt;/STRONG&gt;" and "&lt;STRONG&gt;ID Source&lt;/STRONG&gt;" and in case there are values there, It should edit "&lt;STRONG&gt;Country&lt;/STRONG&gt;" column and changes ( CN --&amp;gt; DE&amp;nbsp; &amp;amp;&amp;nbsp; DE--&amp;gt; US). In order to get the following table:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Table example 2.png" class="jive-image image-2" src="/legacyfs/online/217743_Table example 2.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;Any idea how can I do it?&amp;nbsp; Thanks in&amp;nbsp; advance!&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/Edit-data-based-on-other-fields/m-p/113286#M751056</guid>
      <dc:creator>ahmed_hassan</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Edit data based on other fields</title>
      <link>https://community.qlik.com/t5/QlikView/Edit-data-based-on-other-fields/m-p/113287#M751057</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ahmed,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You 'edit' data like this by creating new columns, in this case by joining &amp;amp; then using the new value where it links (unlike SQL/Access where you would update). So assuming your table is called data, the following would do it;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Left join (data)&lt;BR /&gt;Load&lt;BR /&gt; ID AS [ID Source],&lt;BR /&gt; Customer as [Country Source],&lt;BR /&gt; Country as Country_New&lt;BR /&gt;Resident data;&lt;/P&gt;&lt;P&gt;data_final:&lt;BR /&gt;NoConcatenate&lt;BR /&gt;Load&lt;BR /&gt; ID,&lt;BR /&gt; Customer,&lt;BR /&gt; If(IsNull(Country_New),Country,Country_New) as Country&lt;BR /&gt;Resident data;&lt;/P&gt;&lt;P&gt;Drop table data;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chris.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Nov 2018 15:49:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Edit-data-based-on-other-fields/m-p/113287#M751057</guid>
      <dc:creator>chrismarlow</dc:creator>
      <dc:date>2018-11-07T15:49:45Z</dc:date>
    </item>
    <item>
      <title>Re: Edit data based on other fields</title>
      <link>https://community.qlik.com/t5/QlikView/Edit-data-based-on-other-fields/m-p/113288#M751058</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Table:&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;LOAD&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; * &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;INLINE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[&lt;BR /&gt; ID, Customer, Country, Country Source, ID Source&lt;BR /&gt; 1, A, CN&lt;BR /&gt; 2, B, DE&lt;BR /&gt; 3, C, US&lt;BR /&gt; 4, D, CN, B, 2&lt;BR /&gt; 5, A, DE, C, 3&lt;BR /&gt; ]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;;&lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Left&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Join&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; (Table)&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;LOAD&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Customer&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Country Source]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;ID&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[ID Source]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Country&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Country_New&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Resident&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; Table;&lt;BR /&gt; &lt;BR /&gt; FinalTable:&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;LOAD&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;ID&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Customer&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;If&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Len&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Trim&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Country_New&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)) &amp;gt; 0, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Country_New&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Country&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Country&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Resident&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; Table;&lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;DROP&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Table&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; Table; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Nov 2018 15:59:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Edit-data-based-on-other-fields/m-p/113288#M751058</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-11-07T15:59:40Z</dc:date>
    </item>
    <item>
      <title>Re: Edit data based on other fields</title>
      <link>https://community.qlik.com/t5/QlikView/Edit-data-based-on-other-fields/m-p/1512630#M751059</link>
      <description>&lt;P&gt;Thanks guys, do you have any idea what could i do if my table is as following:&lt;/P&gt;&lt;P&gt;Table:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt;ID, Customer, Country, Country Source, ID Source&lt;BR /&gt;1, A, CN, NULL, 0&lt;BR /&gt;2, B, DE,0,00&lt;BR /&gt;3, C, US,00,0&lt;BR /&gt;4, D, CN, B, 2&lt;BR /&gt;5, A, DE, C, 3&lt;BR /&gt;];&lt;/P&gt;</description>
      <pubDate>Tue, 27 Nov 2018 07:26:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Edit-data-based-on-other-fields/m-p/1512630#M751059</guid>
      <dc:creator>ahmed_hassan</dc:creator>
      <dc:date>2018-11-27T07:26:16Z</dc:date>
    </item>
  </channel>
</rss>

