<?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: Aggregate Rows with logical question in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Aggregate-Rows-with-logical-question/m-p/2207982#M7405</link>
    <description>&lt;P&gt;How? I have tried that before but Im getting warning below:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The operation 'max' for the output column 'Canada' can't be processed because of incompatible input and/or output types &lt;/STRONG&gt;(for each country)&lt;/P&gt;&lt;P&gt;From which I understood aggregate operations cant be ran on boolean or string&lt;/P&gt;</description>
    <pubDate>Wed, 19 Feb 2020 21:24:41 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-02-19T21:24:41Z</dc:date>
    <item>
      <title>Aggregate Rows with logical question</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Aggregate-Rows-with-logical-question/m-p/2207980#M7403</link>
      <description>&lt;P&gt;Hello. See my source table:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE width="294"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="102"&gt;Product&lt;/TD&gt;&lt;TD width="64"&gt;US&lt;/TD&gt;&lt;TD width="64"&gt;UK&lt;/TD&gt;&lt;TD width="64"&gt;Canada&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;X&lt;/TD&gt;&lt;TD&gt;TRUE&lt;/TD&gt;&lt;TD&gt;FALSE&lt;/TD&gt;&lt;TD&gt;TRUE&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;X&lt;/TD&gt;&lt;TD&gt;FALSE&lt;/TD&gt;&lt;TD&gt;TRUE&lt;/TD&gt;&lt;TD&gt;TRUE&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Y&lt;/TD&gt;&lt;TD&gt;FALSE&lt;/TD&gt;&lt;TD&gt;FALSE&lt;/TD&gt;&lt;TD&gt;TRUE&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Z&lt;/TD&gt;&lt;TD&gt;FALSE&lt;/TD&gt;&lt;TD&gt;TRUE&lt;/TD&gt;&lt;TD&gt;FALSE&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Y&lt;/TD&gt;&lt;TD&gt;FALSE&lt;/TD&gt;&lt;TD&gt;FALSE&lt;/TD&gt;&lt;TD&gt;FALSE&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;X&lt;/TD&gt;&lt;TD&gt;FALSE&lt;/TD&gt;&lt;TD&gt;TRUE&lt;/TD&gt;&lt;TD&gt;FALSE&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As you can see I have multiple rows for same product. Im trying to aggregate rows based on Product and the logic should be IF there is at least one row where Product/Country = TRUE then in aggregated result it is always TRUE, otherwise FALSE. I can see components like tAggregateRow where I can use some operations like sum, max, etc but I cant specify some logical question like I described.&lt;/P&gt;&lt;P&gt;So in the end Id like to have output table as follows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE border="0" width="256" cellspacing="0" cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="64" height="19"&gt;Product&lt;/TD&gt;&lt;TD width="64"&gt;US&lt;/TD&gt;&lt;TD width="64"&gt;UK&lt;/TD&gt;&lt;TD width="64"&gt;Canada&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="19"&gt;X&lt;/TD&gt;&lt;TD&gt;TRUE&lt;/TD&gt;&lt;TD&gt;TRUE&lt;/TD&gt;&lt;TD&gt;TRUE&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="19"&gt;Y&lt;/TD&gt;&lt;TD&gt;FALSE&lt;/TD&gt;&lt;TD&gt;FALSE&lt;/TD&gt;&lt;TD&gt;TRUE&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="19"&gt;Z&lt;/TD&gt;&lt;TD&gt;FALSE&lt;/TD&gt;&lt;TD&gt;TRUE&lt;/TD&gt;&lt;TD&gt;FALSE&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone help? Thank you very much&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 03:13:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Aggregate-Rows-with-logical-question/m-p/2207980#M7403</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T03:13:11Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregate Rows with logical question</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Aggregate-Rows-with-logical-question/m-p/2207981#M7404</link>
      <description>&lt;P&gt;I created a simple job based on your sample table, using the "max" function of tAggregateRow and got the results you wanted.&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="aggregat.JPG" style="width: 509px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M97D.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/133399i360BF8D14EFDCB6B/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M97D.jpg" alt="0683p000009M97D.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="aggregatedetail.JPG" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M8xY.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/150391i022C82FBC783ED71/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M8xY.jpg" alt="0683p000009M8xY.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="result.JPG" style="width: 307px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M8gr.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/155860iC4923F89732A641C/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M8gr.jpg" alt="0683p000009M8gr.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Feb 2020 20:04:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Aggregate-Rows-with-logical-question/m-p/2207981#M7404</guid>
      <dc:creator>cmendels</dc:creator>
      <dc:date>2020-02-19T20:04:01Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregate Rows with logical question</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Aggregate-Rows-with-logical-question/m-p/2207982#M7405</link>
      <description>&lt;P&gt;How? I have tried that before but Im getting warning below:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The operation 'max' for the output column 'Canada' can't be processed because of incompatible input and/or output types &lt;/STRONG&gt;(for each country)&lt;/P&gt;&lt;P&gt;From which I understood aggregate operations cant be ran on boolean or string&lt;/P&gt;</description>
      <pubDate>Wed, 19 Feb 2020 21:24:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Aggregate-Rows-with-logical-question/m-p/2207982#M7405</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-02-19T21:24:41Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregate Rows with logical question</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Aggregate-Rows-with-logical-question/m-p/2207983#M7406</link>
      <description>&lt;P&gt;I have mine set up as string datatype for both input and output and it's working.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am not sure how it would handle boolean, or if that is possible.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Feb 2020 21:30:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Aggregate-Rows-with-logical-question/m-p/2207983#M7406</guid>
      <dc:creator>cmendels</dc:creator>
      <dc:date>2020-02-19T21:30:48Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregate Rows with logical question</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Aggregate-Rows-with-logical-question/m-p/2207984#M7407</link>
      <description>&lt;A href="https://community.qlik.com/s/profile/0053p000007LMhlAAG"&gt;@cmendels&lt;/A&gt;, no function is available for boolean type, you get the right workaround, just convert the data from string to boolean type after aggregation if needed. 
&lt;BR /&gt;</description>
      <pubDate>Thu, 20 Feb 2020 01:23:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Aggregate-Rows-with-logical-question/m-p/2207984#M7407</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-02-20T01:23:53Z</dc:date>
    </item>
  </channel>
</rss>

