<?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: Modify a field value based on a condition involving another field in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Modify-a-field-value-based-on-a-condition-involving-another/m-p/1594680#M737940</link>
    <description>&lt;P&gt;Worked perfectly fine. Looks like the NoConcantenate option is very important. I had tried the same code without NoConcatenate and it didn't create the new table.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much for your help!&lt;/P&gt;</description>
    <pubDate>Fri, 21 Jun 2019 15:04:48 GMT</pubDate>
    <dc:creator>sudhakarsamak06</dc:creator>
    <dc:date>2019-06-21T15:04:48Z</dc:date>
    <item>
      <title>Modify a field value based on a condition involving another field</title>
      <link>https://community.qlik.com/t5/QlikView/Modify-a-field-value-based-on-a-condition-involving-another/m-p/1594315#M737938</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was stuck with a problem and wanted help with it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have loaded a excel files into Qlikview and joined 3 tables to form one. Now i want to modify a field in one table based on a condition that involves a field from another table.&amp;nbsp;&lt;/P&gt;&lt;P&gt;My script looks like below&lt;/P&gt;&lt;P&gt;Load custID, Country from ....&lt;/P&gt;&lt;P&gt;INNER JOIN()&lt;/P&gt;&lt;P&gt;Load custID, Status from .......&lt;/P&gt;&lt;P&gt;INNER JOIN()&lt;/P&gt;&lt;P&gt;Load custID, Amount from .....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here i want to change all the values of amount to zero when the status is equal to 'Inactive'. Can someone please help me out with this?&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Modify-a-field-value-based-on-a-condition-involving-another/m-p/1594315#M737938</guid>
      <dc:creator>sudhakarsamak06</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Modify a field value based on a condition involving another field</title>
      <link>https://community.qlik.com/t5/QlikView/Modify-a-field-value-based-on-a-condition-involving-another/m-p/1594360#M737939</link>
      <description>&lt;P&gt;You could do a resident load from your joined table.&lt;/P&gt;&lt;LI-CODE lang="php"&gt;TMP:
Load custID, Country from ....

INNER JOIN(TMP)
Load custID, Status from .......

INNER JOIN(TMP)
Load custID, Amount from ..

FinalData:
NoConcatenate LOAD 
  custID,
  Country ,
  Status ,
  if(Status='inactive', 0,Amount) as Amount 
Resident 
  TMP;

DROP TABLE TMP;&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 20 Jun 2019 22:01:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Modify-a-field-value-based-on-a-condition-involving-another/m-p/1594360#M737939</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2019-06-20T22:01:36Z</dc:date>
    </item>
    <item>
      <title>Re: Modify a field value based on a condition involving another field</title>
      <link>https://community.qlik.com/t5/QlikView/Modify-a-field-value-based-on-a-condition-involving-another/m-p/1594680#M737940</link>
      <description>&lt;P&gt;Worked perfectly fine. Looks like the NoConcantenate option is very important. I had tried the same code without NoConcatenate and it didn't create the new table.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much for your help!&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jun 2019 15:04:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Modify-a-field-value-based-on-a-condition-involving-another/m-p/1594680#M737940</guid>
      <dc:creator>sudhakarsamak06</dc:creator>
      <dc:date>2019-06-21T15:04:48Z</dc:date>
    </item>
    <item>
      <title>Re: Modify a field value based on a condition involving another field</title>
      <link>https://community.qlik.com/t5/QlikView/Modify-a-field-value-based-on-a-condition-involving-another/m-p/1594766#M737941</link>
      <description>Yes, NoConcatenate is important in cases where you want to 'replicate' a&lt;BR /&gt;table or create a new table with identical field names.&lt;BR /&gt;&lt;BR /&gt;If you're unsure about why I'm using NoConcatenate or the concept of&lt;BR /&gt;AutoConcatenate please read this help page:&lt;BR /&gt;&lt;A href="https://help.qlik.com/en-US/qlikview/April2019/Subsystems/Client/Content/QV_QlikView/LoadData/concatenate-tables.htm" target="_blank"&gt;https://help.qlik.com/en-US/qlikview/April2019/Subsystems/Client/Content/QV_QlikView/LoadData/concatenate-tables.htm&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Cheers&lt;BR /&gt;Vegar&lt;BR /&gt;</description>
      <pubDate>Fri, 21 Jun 2019 22:27:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Modify-a-field-value-based-on-a-condition-involving-another/m-p/1594766#M737941</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2019-06-21T22:27:05Z</dc:date>
    </item>
  </channel>
</rss>

