<?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: Filter rows depending on key field value in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Filter-rows-depending-on-key-field-value/m-p/2224959#M17461</link>
    <description>for each line calculate an orderByColumn.&lt;BR /&gt;(A!=null)?1:2&lt;BR /&gt;so if you have A it's 1 ifnot then 2&lt;BR /&gt;sort your data dy date and orderByColumn.&lt;BR /&gt;then aggegate data keeping only the first line by date.&lt;BR /&gt;&lt;BR /&gt;good luck</description>
    <pubDate>Tue, 03 Sep 2019 08:08:16 GMT</pubDate>
    <dc:creator>fdenis</dc:creator>
    <dc:date>2019-09-03T08:08:16Z</dc:date>
    <item>
      <title>Filter rows depending on key field value</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Filter-rows-depending-on-key-field-value/m-p/2224958#M17460</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've got rows with 2 key fields (key value is 'A' or 'B' and a date field). There could be a row with 'A' or 'B' or both per every date.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now I want to filter the data flow so that I get one row per every date:&lt;/P&gt;&lt;P&gt;If there is only a row with key 'A' take the 'A' row.&amp;nbsp;&lt;/P&gt;&lt;P&gt;If there is only a row with key 'B' take the 'B' row.&amp;nbsp;&lt;/P&gt;&lt;P&gt;If there are 2 rows with key 'A' and 'B', take the 'A' row.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I could not figure out how to check if there are 2 rows for one date and then filter the other one out.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance for any ideas&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Tue, 03 Sep 2019 07:33:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Filter-rows-depending-on-key-field-value/m-p/2224958#M17460</guid>
      <dc:creator>sactl</dc:creator>
      <dc:date>2019-09-03T07:33:24Z</dc:date>
    </item>
    <item>
      <title>Re: Filter rows depending on key field value</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Filter-rows-depending-on-key-field-value/m-p/2224959#M17461</link>
      <description>for each line calculate an orderByColumn.&lt;BR /&gt;(A!=null)?1:2&lt;BR /&gt;so if you have A it's 1 ifnot then 2&lt;BR /&gt;sort your data dy date and orderByColumn.&lt;BR /&gt;then aggegate data keeping only the first line by date.&lt;BR /&gt;&lt;BR /&gt;good luck</description>
      <pubDate>Tue, 03 Sep 2019 08:08:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Filter-rows-depending-on-key-field-value/m-p/2224959#M17461</guid>
      <dc:creator>fdenis</dc:creator>
      <dc:date>2019-09-03T08:08:16Z</dc:date>
    </item>
  </channel>
</rss>

