<?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: How to create a column derived from 2 existing columns in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-create-a-column-derived-from-2-existing-columns/m-p/1610070#M735110</link>
    <description>&lt;P&gt;hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;in your load script&amp;nbsp;&lt;/P&gt;&lt;P&gt;write something like this :&amp;nbsp;&lt;/P&gt;&lt;P&gt;load&amp;nbsp;&lt;/P&gt;&lt;P&gt;PriceA,&lt;/P&gt;&lt;P&gt;PriceB,&lt;/P&gt;&lt;P&gt;if(PriceA&amp;gt;0,PriceA,PriceB) as Price&lt;/P&gt;&lt;P&gt;From XXXX&lt;/P&gt;</description>
    <pubDate>Wed, 07 Aug 2019 05:48:30 GMT</pubDate>
    <dc:creator>lironbaram</dc:creator>
    <dc:date>2019-08-07T05:48:30Z</dc:date>
    <item>
      <title>How to create a column derived from 2 existing columns</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-a-column-derived-from-2-existing-columns/m-p/1610034#M735109</link>
      <description>&lt;P&gt;I need to create a column/dimension that is derived from values in 2 other columns.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Derived Column&lt;/STRONG&gt; logic:&amp;nbsp; if Price A is $0 or NULL, use Price B, else Price A&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Price A&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Price B&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Derived Column&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;$0&lt;/TD&gt;&lt;TD&gt;$100&lt;/TD&gt;&lt;TD&gt;$100&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;$200&lt;/TD&gt;&lt;TD&gt;$200&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;$300&lt;/TD&gt;&lt;TD&gt;$400&lt;/TD&gt;&lt;TD&gt;$300&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;$500&lt;/TD&gt;&lt;TD&gt;$0&lt;/TD&gt;&lt;TD&gt;$500&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;$600&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;$600&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-a-column-derived-from-2-existing-columns/m-p/1610034#M735109</guid>
      <dc:creator>john_henry</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a column derived from 2 existing columns</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-a-column-derived-from-2-existing-columns/m-p/1610070#M735110</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;in your load script&amp;nbsp;&lt;/P&gt;&lt;P&gt;write something like this :&amp;nbsp;&lt;/P&gt;&lt;P&gt;load&amp;nbsp;&lt;/P&gt;&lt;P&gt;PriceA,&lt;/P&gt;&lt;P&gt;PriceB,&lt;/P&gt;&lt;P&gt;if(PriceA&amp;gt;0,PriceA,PriceB) as Price&lt;/P&gt;&lt;P&gt;From XXXX&lt;/P&gt;</description>
      <pubDate>Wed, 07 Aug 2019 05:48:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-a-column-derived-from-2-existing-columns/m-p/1610070#M735110</guid>
      <dc:creator>lironbaram</dc:creator>
      <dc:date>2019-08-07T05:48:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a column derived from 2 existing columns</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-a-column-derived-from-2-existing-columns/m-p/1610071#M735111</link>
      <description>&lt;P&gt;Try:&amp;nbsp;IF([Price A]='$0' or [Price A]='',[Price B],[Price A])&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Attached Qvw&lt;/P&gt;</description>
      <pubDate>Wed, 07 Aug 2019 05:49:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-a-column-derived-from-2-existing-columns/m-p/1610071#M735111</guid>
      <dc:creator>Siva_Sankar</dc:creator>
      <dc:date>2019-08-07T05:49:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a column derived from 2 existing columns</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-a-column-derived-from-2-existing-columns/m-p/1610397#M735112</link>
      <description>&lt;P&gt;Thanks for the suggestion...I'll use it if I need to create a column from the load script.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Aug 2019 19:43:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-a-column-derived-from-2-existing-columns/m-p/1610397#M735112</guid>
      <dc:creator>john_henry</dc:creator>
      <dc:date>2019-08-07T19:43:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a column derived from 2 existing columns</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-a-column-derived-from-2-existing-columns/m-p/1610403#M735113</link>
      <description>&lt;P&gt;thanks...this works!&lt;/P&gt;</description>
      <pubDate>Wed, 07 Aug 2019 20:00:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-a-column-derived-from-2-existing-columns/m-p/1610403#M735113</guid>
      <dc:creator>john_henry</dc:creator>
      <dc:date>2019-08-07T20:00:24Z</dc:date>
    </item>
  </channel>
</rss>

