<?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 2 numbers or values in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Compare-2-numbers-or-values/m-p/2331267#M100262</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I have a small requirement where I need to compare 2 numbers and get the results, let’s say my input is like below&lt;/P&gt;&lt;P&gt;col1;col2&lt;/P&gt;&lt;P&gt;1;2&lt;/P&gt;&lt;P&gt;2;2&lt;/P&gt;&lt;P&gt;3;2&lt;/P&gt;&lt;P&gt;my output should be like&lt;/P&gt;&lt;P&gt;cok1;col2;results&lt;/P&gt;&lt;P&gt;1;2;1&lt;/P&gt;&lt;P&gt;2;2;0&lt;/P&gt;&lt;P&gt;3:2;-1&lt;/P&gt;&lt;P&gt;if 2 numbers are same it should return 0 , greater -1 and lesser +1&lt;/P&gt;&lt;P&gt;i tried using methods like greater or greaterorequal but not getting the exact results &lt;/P&gt;&lt;P&gt;can anyone suggest other methods&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;lmit&lt;/P&gt;</description>
    <pubDate>Tue, 08 Nov 2022 08:22:30 GMT</pubDate>
    <dc:creator>lmit</dc:creator>
    <dc:date>2022-11-08T08:22:30Z</dc:date>
    <item>
      <title>Compare 2 numbers or values</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Compare-2-numbers-or-values/m-p/2331267#M100262</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I have a small requirement where I need to compare 2 numbers and get the results, let’s say my input is like below&lt;/P&gt;&lt;P&gt;col1;col2&lt;/P&gt;&lt;P&gt;1;2&lt;/P&gt;&lt;P&gt;2;2&lt;/P&gt;&lt;P&gt;3;2&lt;/P&gt;&lt;P&gt;my output should be like&lt;/P&gt;&lt;P&gt;cok1;col2;results&lt;/P&gt;&lt;P&gt;1;2;1&lt;/P&gt;&lt;P&gt;2;2;0&lt;/P&gt;&lt;P&gt;3:2;-1&lt;/P&gt;&lt;P&gt;if 2 numbers are same it should return 0 , greater -1 and lesser +1&lt;/P&gt;&lt;P&gt;i tried using methods like greater or greaterorequal but not getting the exact results &lt;/P&gt;&lt;P&gt;can anyone suggest other methods&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;lmit&lt;/P&gt;</description>
      <pubDate>Tue, 08 Nov 2022 08:22:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Compare-2-numbers-or-values/m-p/2331267#M100262</guid>
      <dc:creator>lmit</dc:creator>
      <dc:date>2022-11-08T08:22:30Z</dc:date>
    </item>
    <item>
      <title>Re: Compare 2 numbers or values</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Compare-2-numbers-or-values/m-p/2331268#M100263</link>
      <description>&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;Add a new column in the output table on tMap, and set its expression like this:&lt;/P&gt;&lt;P&gt;row1.col1==row1.col2?0:(row1.col1&amp;gt;row1.col2?-1:1)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shong&lt;/P&gt;</description>
      <pubDate>Wed, 09 Nov 2022 03:27:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Compare-2-numbers-or-values/m-p/2331268#M100263</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-11-09T03:27:00Z</dc:date>
    </item>
    <item>
      <title>Re: Compare 2 numbers or values</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Compare-2-numbers-or-values/m-p/2331269#M100264</link>
      <description>&lt;P&gt;Thanks @Shicong Hong​&amp;nbsp;,&lt;/P&gt;</description>
      <pubDate>Tue, 15 Nov 2022 08:41:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Compare-2-numbers-or-values/m-p/2331269#M100264</guid>
      <dc:creator>lmit</dc:creator>
      <dc:date>2022-11-15T08:41:41Z</dc:date>
    </item>
  </channel>
</rss>

