<?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: compare multiple records with same id and selece the right choice value in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/compare-multiple-records-with-same-id-and-selece-the-right/m-p/2374413#M137014</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can build a routines that take as a parameter a list and return a string.&lt;/P&gt;&lt;P&gt;You can have a method with switch case. Then call for this routines from a tJavaRow or a tMap &lt;/P&gt;&lt;P&gt;&lt;A href="https://www.w3schools.com/java/java_switch.asp" alt="https://www.w3schools.com/java/java_switch.asp" target="_blank"&gt;https://www.w3schools.com/java/java_switch.asp&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 12 Aug 2020 08:26:35 GMT</pubDate>
    <dc:creator>JohnRMK</dc:creator>
    <dc:date>2020-08-12T08:26:35Z</dc:date>
    <item>
      <title>compare multiple records with same id and selece the right choice value</title>
      <link>https://community.qlik.com/t5/Talend-Studio/compare-multiple-records-with-same-id-and-selece-the-right/m-p/2374412#M137013</link>
      <description>&lt;P&gt;Hi my requirement is some thing like this ... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if I found multiple records with an exact match of Plan + ID (plan is no and ID as well  )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When the Gender Served field is populated, and the values are not an exact match, and one of the values is Unknown&lt;/P&gt;&lt;P&gt;Then I will choose the value other than Unknown .OR I will default to Both when the values contain both Male and Female&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;I&gt;Note&lt;/I&gt;: below are examples of the logic.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Male, Female, Unknown = Both&lt;/LI&gt;&lt;LI&gt;Male, Female = Both&lt;/LI&gt;&lt;LI&gt;Female, Unknown = Female&lt;/LI&gt;&lt;LI&gt;Male, Unknown = Male&lt;/LI&gt;&lt;LI&gt;Unknown, Unknown = Unknown&lt;/LI&gt;&lt;LI&gt;Male, Male = Male&lt;/LI&gt;&lt;LI&gt;Female, Female = Female&lt;/LI&gt;&lt;LI&gt;Male, Female, Male = Both&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Question :- if I have 10 matching records how to compare the values of all of the records for above scenario and get an output as one record  .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Aug 2020 21:30:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/compare-multiple-records-with-same-id-and-selece-the-right/m-p/2374412#M137013</guid>
      <dc:creator>sudhee</dc:creator>
      <dc:date>2020-08-11T21:30:56Z</dc:date>
    </item>
    <item>
      <title>Re: compare multiple records with same id and selece the right choice value</title>
      <link>https://community.qlik.com/t5/Talend-Studio/compare-multiple-records-with-same-id-and-selece-the-right/m-p/2374413#M137014</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can build a routines that take as a parameter a list and return a string.&lt;/P&gt;&lt;P&gt;You can have a method with switch case. Then call for this routines from a tJavaRow or a tMap &lt;/P&gt;&lt;P&gt;&lt;A href="https://www.w3schools.com/java/java_switch.asp" alt="https://www.w3schools.com/java/java_switch.asp" target="_blank"&gt;https://www.w3schools.com/java/java_switch.asp&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Aug 2020 08:26:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/compare-multiple-records-with-same-id-and-selece-the-right/m-p/2374413#M137014</guid>
      <dc:creator>JohnRMK</dc:creator>
      <dc:date>2020-08-12T08:26:35Z</dc:date>
    </item>
  </channel>
</rss>

