<?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 Compare two column values and create a new column in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Compare-two-column-values-and-create-a-new-column/m-p/1556116#M62901</link>
    <description>&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;I'm trying to compare values from 2 columns and mark the comparison in a new column with up and down arrow indicators as shown in the picture attached.&lt;/P&gt;&lt;P&gt;I applied if() condition logic:&lt;/P&gt;&lt;P&gt;if(Column(1) = 'NA' or Column(2) = 'NA', 0,&lt;BR /&gt;if(Column(1) &amp;gt; Column(2), 1,&lt;BR /&gt;if(Column(2) &amp;gt; Column(1), -1)))&lt;/P&gt;&lt;P&gt;The output is attached in the image.&lt;/P&gt;&lt;P&gt;I'm trying to implement a range condition&amp;nbsp;of difference within + or - 5% between column 1 and column 2 values instead of "=NA"&amp;nbsp; for getting the 0 value.&lt;/P&gt;&lt;P&gt;Please Let me know your thoughts.&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Snehal&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 21:15:13 GMT</pubDate>
    <dc:creator>snehal1405</dc:creator>
    <dc:date>2024-11-16T21:15:13Z</dc:date>
    <item>
      <title>Compare two column values and create a new column</title>
      <link>https://community.qlik.com/t5/App-Development/Compare-two-column-values-and-create-a-new-column/m-p/1556116#M62901</link>
      <description>&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;I'm trying to compare values from 2 columns and mark the comparison in a new column with up and down arrow indicators as shown in the picture attached.&lt;/P&gt;&lt;P&gt;I applied if() condition logic:&lt;/P&gt;&lt;P&gt;if(Column(1) = 'NA' or Column(2) = 'NA', 0,&lt;BR /&gt;if(Column(1) &amp;gt; Column(2), 1,&lt;BR /&gt;if(Column(2) &amp;gt; Column(1), -1)))&lt;/P&gt;&lt;P&gt;The output is attached in the image.&lt;/P&gt;&lt;P&gt;I'm trying to implement a range condition&amp;nbsp;of difference within + or - 5% between column 1 and column 2 values instead of "=NA"&amp;nbsp; for getting the 0 value.&lt;/P&gt;&lt;P&gt;Please Let me know your thoughts.&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Snehal&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 21:15:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Compare-two-column-values-and-create-a-new-column/m-p/1556116#M62901</guid>
      <dc:creator>snehal1405</dc:creator>
      <dc:date>2024-11-16T21:15:13Z</dc:date>
    </item>
  </channel>
</rss>

