<?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: Merging Multiple rows in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Merging-Multiple-rows/m-p/2330588#M99654</link>
    <description>&lt;P&gt;If this is one field with boolean type in target DB or object, set the expression on tMap like this:&lt;/P&gt;&lt;P&gt;row1.Service_ID&amp;nbsp;==6?true:false&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 11 Mar 2021 07:24:51 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2021-03-11T07:24:51Z</dc:date>
    <item>
      <title>Merging Multiple rows</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Merging-Multiple-rows/m-p/2330585#M99651</link>
      <description>&lt;P&gt;Our clients (A disability support organisation) may provide more than one service to a client - however if client only use service number 6 they would like to have a check box ticked saying "No marketing"&lt;/P&gt;&lt;P&gt;Source table is MS SQL with 400 rows with fields:&lt;/P&gt;&lt;P&gt;Client_ID: can have multiple records with same Client_ID&lt;/P&gt;&lt;P&gt;Service_ID: each Service_ID is a unique. There are 8 Service_IDs from numbered 0 to 7. (what the Service_ID number means is another table)&lt;/P&gt;&lt;P&gt;What I need is logic that says if Client only has one service and its Service_ID is 6 then check the check box in destination database else uncheck.&lt;/P&gt;&lt;P&gt;So far using Talend Open Source I have an tDBInput to the source database &amp;gt; tmap &amp;gt; tDBOutput (for testing logic) which will eventually be a SaleforceOutPut when the logic works.&lt;/P&gt;&lt;P&gt;Any help would be most appreciated - having spent any hours googling and testing without result&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The logic I need must be able to  amalgamate all the rows in one table with the same Customer_ID  to one row that looks like Customer_ID, Service_1 (Yes or No),  Service_2 (Yes or No), Service_3 (Yes or No),&amp;nbsp;  etc in an new array/temp table or whatever tool is used to do that.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The expression to set the Donot Market Check Box will look like Service1=="No" &amp;amp;&amp;amp;Service2=="No"&amp;amp;&amp;amp;Service3=="No"&amp;amp;&amp;amp;Service4=="No"&amp;amp;&amp;amp;Service5=="No"&amp;amp;&amp;amp;Service6=="Yes"&amp;amp;&amp;amp;Service7=="No"&amp;amp;&amp;amp; Etc ?true:false&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 00:28:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Merging-Multiple-rows/m-p/2330585#M99651</guid>
      <dc:creator>Tim_D_Baker</dc:creator>
      <dc:date>2024-11-16T00:28:51Z</dc:date>
    </item>
    <item>
      <title>Re: Merging Multiple rows</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Merging-Multiple-rows/m-p/2330586#M99652</link>
      <description>&lt;P&gt;Has this check box already existed on destination component? or you expect a new feature?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Mar 2021 06:44:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Merging-Multiple-rows/m-p/2330586#M99652</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-03-08T06:44:57Z</dc:date>
    </item>
    <item>
      <title>Re: Merging Multiple rows</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Merging-Multiple-rows/m-p/2330587#M99653</link>
      <description>&lt;P&gt;Have created the checkbox in sales force&lt;/P&gt;</description>
      <pubDate>Mon, 08 Mar 2021 21:06:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Merging-Multiple-rows/m-p/2330587#M99653</guid>
      <dc:creator>Tim_D_Baker</dc:creator>
      <dc:date>2021-03-08T21:06:04Z</dc:date>
    </item>
    <item>
      <title>Re: Merging Multiple rows</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Merging-Multiple-rows/m-p/2330588#M99654</link>
      <description>&lt;P&gt;If this is one field with boolean type in target DB or object, set the expression on tMap like this:&lt;/P&gt;&lt;P&gt;row1.Service_ID&amp;nbsp;==6?true:false&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Mar 2021 07:24:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Merging-Multiple-rows/m-p/2330588#M99654</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-03-11T07:24:51Z</dc:date>
    </item>
    <item>
      <title>Re: Merging Multiple rows</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Merging-Multiple-rows/m-p/2330589#M99655</link>
      <description>&lt;P&gt;Thanks Shong&lt;/P&gt;&lt;P&gt;I know how to set the CheckBox value how ever the logic need to say the Service_ID only equals 6 and not other Service_IDs on other rows - all the rows with the same Customer_ID need to be amalgamated to one row that looks like Customer_ID, Service_1 (Yes or No),  Service_2 (Yes or No), Service_3 (Yes or No),&amp;nbsp;  etc&lt;/P&gt;&lt;P&gt;so the express will look like Service1==No &amp;amp;&amp;amp;Service2=="No"&amp;amp;&amp;amp;Service3=="No"&amp;amp;&amp;amp;Service4=="No"&amp;amp;&amp;amp;Service5=="No"&amp;amp;&amp;amp;Service6=="Yes"&amp;amp;&amp;amp;Service7=="No"&amp;amp;&amp;amp; Etc ?true:false&lt;/P&gt;</description>
      <pubDate>Thu, 11 Mar 2021 21:13:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Merging-Multiple-rows/m-p/2330589#M99655</guid>
      <dc:creator>Tim_D_Baker</dc:creator>
      <dc:date>2021-03-11T21:13:26Z</dc:date>
    </item>
    <item>
      <title>Re: Merging Multiple rows</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Merging-Multiple-rows/m-p/2330590#M99656</link>
      <description>&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;Can you show me some example data? Can you take a look at the &lt;A href="https://help.talend.com/r/Xr~HqMTCU7gC3dT5ZSikKQ/RW3yPNXwO1_v0mPI6tgtUQ" alt="https://help.talend.com/r/Xr~HqMTCU7gC3dT5ZSikKQ/RW3yPNXwO1_v0mPI6tgtUQ" target="_blank"&gt;tDenormalize &lt;/A&gt;component? It might be useful for you to amalgamated all the rows with the same Customer_ID to be one row.&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>Fri, 12 Mar 2021 01:46:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Merging-Multiple-rows/m-p/2330590#M99656</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-03-12T01:46:12Z</dc:date>
    </item>
    <item>
      <title>Re: Merging Multiple rows</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Merging-Multiple-rows/m-p/2330591#M99657</link>
      <description>&lt;P&gt;Source Table is called client.service.&lt;/P&gt;&lt;P&gt;The rows are: (Note the Primary Key is an ID field for each row)&lt;/P&gt;&lt;P&gt;clientID	 serviceID&lt;/P&gt;&lt;P&gt;3	2&lt;/P&gt;&lt;P&gt;3	1&lt;/P&gt;&lt;P&gt;3	6&lt;/P&gt;&lt;P&gt;3	1&lt;/P&gt;&lt;P&gt;4	2&lt;/P&gt;&lt;P&gt;4	1&lt;/P&gt;&lt;P&gt;4	2&lt;/P&gt;&lt;P&gt;4	2&lt;/P&gt;&lt;P&gt;4	2&lt;/P&gt;&lt;P&gt;4	6&lt;/P&gt;&lt;P&gt;4	6&lt;/P&gt;&lt;P&gt;4	2&lt;/P&gt;&lt;P&gt;4	4&lt;/P&gt;&lt;P&gt;4	1&lt;/P&gt;&lt;P&gt;5	2&lt;/P&gt;&lt;P&gt;5	1&lt;/P&gt;&lt;P&gt;5	2&lt;/P&gt;&lt;P&gt;5	2&lt;/P&gt;&lt;P&gt;5	4&lt;/P&gt;&lt;P&gt;6	1&lt;/P&gt;&lt;P&gt;6	2&lt;/P&gt;&lt;P&gt;6	2&lt;/P&gt;&lt;P&gt;6	6&lt;/P&gt;&lt;P&gt;6	7&lt;/P&gt;&lt;P&gt;6	6&lt;/P&gt;&lt;P&gt;6	4&lt;/P&gt;&lt;P&gt;8	2&lt;/P&gt;&lt;P&gt;8	1&lt;/P&gt;&lt;P&gt;8	6&lt;/P&gt;&lt;P&gt;8	5&lt;/P&gt;&lt;P&gt;8	6&lt;/P&gt;&lt;P&gt;8	4&lt;/P&gt;&lt;P&gt;8	1&lt;/P&gt;&lt;P&gt;10	2&lt;/P&gt;&lt;P&gt;10	1&lt;/P&gt;&lt;P&gt;10	2&lt;/P&gt;&lt;P&gt;10	2&lt;/P&gt;&lt;P&gt;10	6&lt;/P&gt;&lt;P&gt;10	5&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Mar 2021 01:57:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Merging-Multiple-rows/m-p/2330591#M99657</guid>
      <dc:creator>Tim_D_Baker</dc:creator>
      <dc:date>2021-03-12T01:57:45Z</dc:date>
    </item>
    <item>
      <title>Re: Merging Multiple rows</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Merging-Multiple-rows/m-p/2330592#M99658</link>
      <description>&lt;P&gt;@Not defined Not defined​&amp;nbsp;, from your source data, it seems that the check box will be true only when there is just one row for one client ID and service ID is 6.&lt;/P&gt;&lt;P&gt;I have an idea,  count the total number of rows for each ​clientID, filter the clientID when the num_of_rows is 1, then only check if service_id==6?&lt;/P&gt;&lt;P&gt;​&lt;/P&gt;&lt;P&gt;source data--&amp;gt;tAggregageRow---tFilteRow--&amp;gt;tMap---&amp;gt;get the Client_ID whose check box will be set as true.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Mar 2021 02:35:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Merging-Multiple-rows/m-p/2330592#M99658</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-03-12T02:35:17Z</dc:date>
    </item>
    <item>
      <title>Re: Merging Multiple rows</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Merging-Multiple-rows/m-p/2330593#M99659</link>
      <description>&lt;P&gt;Thank you Shong for your guidance. I created temp column in the AggregateRow Schema called Count.&lt;/P&gt;&lt;P&gt;I can now filter the results of AggregateRow_1 by  Count == 1 &amp;amp;&amp;amp; Service_ID == 6&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0693p00000C7ujBAAR.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/137953i65683F465256D3F9/image-size/large?v=v2&amp;amp;px=999" role="button" title="0693p00000C7ujBAAR.png" alt="0693p00000C7ujBAAR.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Mar 2021 00:08:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Merging-Multiple-rows/m-p/2330593#M99659</guid>
      <dc:creator>Tim_D_Baker</dc:creator>
      <dc:date>2021-03-15T00:08:39Z</dc:date>
    </item>
  </channel>
</rss>

