<?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 Replace values from one column to another in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Replace-values-from-one-column-to-another/m-p/214965#M68450</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You are right , some time isnull doesnot work. so use the following expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(isnull(DAT2) &lt;B&gt;or&lt;/B&gt; len(DAT2)&amp;lt;2, DAT1, DAT2) &lt;B&gt;as&lt;/B&gt; NEW_DAT&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;And refer the attached document , giving output perfectly.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Manesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 15 Feb 2011 03:16:29 GMT</pubDate>
    <dc:creator>maneshkhottcpl</dc:creator>
    <dc:date>2011-02-15T03:16:29Z</dc:date>
    <item>
      <title>Replace values from one column to another</title>
      <link>https://community.qlik.com/t5/QlikView/Replace-values-from-one-column-to-another/m-p/214960#M68445</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello QVer,&lt;BR /&gt;I have two columns with date values and I want to replace values:&lt;/P&gt;&lt;P&gt;So let me say:&lt;BR /&gt;Every time when there is a value (not NULL) in column=DAT2 it should replace the value&lt;BR /&gt; in DAT1 respectively the value in DAT1 should be that of DAT2 when it is not NULL..&lt;BR /&gt;The result should be an adapted new column=DAT_NEW.&lt;/P&gt;&lt;P&gt;Sorry but I can't find a solution in this forum.&lt;BR /&gt;Can somebody help me? Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Feb 2011 13:21:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Replace-values-from-one-column-to-another/m-p/214960#M68445</guid>
      <dc:creator />
      <dc:date>2011-02-14T13:21:17Z</dc:date>
    </item>
    <item>
      <title>Replace values from one column to another</title>
      <link>https://community.qlik.com/t5/QlikView/Replace-values-from-one-column-to-another/m-p/214961#M68446</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am not able to get ur actual problem, but i m trying to solve.&lt;/P&gt;&lt;P&gt;if(isnull(DAT2),DAT1,DAT2) as NEW_DAT&lt;/P&gt;&lt;P&gt;use the expression in load script.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Feb 2011 14:07:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Replace-values-from-one-column-to-another/m-p/214961#M68446</guid>
      <dc:creator>maneshkhottcpl</dc:creator>
      <dc:date>2011-02-14T14:07:31Z</dc:date>
    </item>
    <item>
      <title>Replace values from one column to another</title>
      <link>https://community.qlik.com/t5/QlikView/Replace-values-from-one-column-to-another/m-p/214962#M68447</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Manesh,&lt;/P&gt;&lt;P&gt;Your suggestion only results in a copy of field DAT2. I'm missing the value from DAT1 in the NEW_DAT field.&lt;/P&gt;&lt;P&gt;To illustrate I send a little QVW.&lt;/P&gt;&lt;P&gt;Thanks for another help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Feb 2011 15:13:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Replace-values-from-one-column-to-another/m-p/214962#M68447</guid>
      <dc:creator />
      <dc:date>2011-02-14T15:13:29Z</dc:date>
    </item>
    <item>
      <title>Replace values from one column to another</title>
      <link>https://community.qlik.com/t5/QlikView/Replace-values-from-one-column-to-another/m-p/214963#M68448</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;My above expression gives the result that,&lt;/P&gt;&lt;P&gt;1. If DAT1 and DAT2 both exists then NEW_DAT will be DAT2&lt;/P&gt;&lt;P&gt;2. If DAT2 is null then NEW_DAT will be DAT1&lt;/P&gt;&lt;P&gt;can u explain ur problem again so i can post u the solution.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Feb 2011 01:29:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Replace-values-from-one-column-to-another/m-p/214963#M68448</guid>
      <dc:creator>maneshkhottcpl</dc:creator>
      <dc:date>2011-02-15T01:29:30Z</dc:date>
    </item>
    <item>
      <title>Replace values from one column to another</title>
      <link>https://community.qlik.com/t5/QlikView/Replace-values-from-one-column-to-another/m-p/214964#M68449</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think the problem is just isnull(), which doesn't work properly in some QlikView versions, I think 64 bit? Can't remember exactly. Anyway, this works for me:&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;INLINE:&lt;BR /&gt;LOAD *&lt;BR /&gt;,if(len(DAT2),DAT2,DAT1) as NEW_DAT&lt;BR /&gt;INLINE [&lt;BR /&gt;DAT1, DAT2&lt;BR /&gt;01.01.2011, 31.12.2009&lt;BR /&gt;15.01.2011,&lt;BR /&gt;20.01.2011, 04.01.2011&lt;BR /&gt;23.01.2011,&lt;BR /&gt;];&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Feb 2011 01:41:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Replace-values-from-one-column-to-another/m-p/214964#M68449</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2011-02-15T01:41:47Z</dc:date>
    </item>
    <item>
      <title>Replace values from one column to another</title>
      <link>https://community.qlik.com/t5/QlikView/Replace-values-from-one-column-to-another/m-p/214965#M68450</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You are right , some time isnull doesnot work. so use the following expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(isnull(DAT2) &lt;B&gt;or&lt;/B&gt; len(DAT2)&amp;lt;2, DAT1, DAT2) &lt;B&gt;as&lt;/B&gt; NEW_DAT&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;And refer the attached document , giving output perfectly.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Manesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Feb 2011 03:16:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Replace-values-from-one-column-to-another/m-p/214965#M68450</guid>
      <dc:creator>maneshkhottcpl</dc:creator>
      <dc:date>2011-02-15T03:16:29Z</dc:date>
    </item>
    <item>
      <title>Replace values from one column to another</title>
      <link>https://community.qlik.com/t5/QlikView/Replace-values-from-one-column-to-another/m-p/214966#M68451</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Whenever using len, I prefer to use len(trim(&amp;lt;Field Name&amp;gt;)) as the column may have blank spaces stored in some cased where the data type of the field is text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Best Regards,&lt;/P&gt;&lt;P&gt;Kuldeep Tak&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Feb 2011 04:50:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Replace-values-from-one-column-to-another/m-p/214966#M68451</guid>
      <dc:creator />
      <dc:date>2011-02-15T04:50:11Z</dc:date>
    </item>
  </channel>
</rss>

