<?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 Filtering duplicates using Fullload Passthru Filter in Qlik Replicate</title>
    <link>https://community.qlik.com/t5/Qlik-Replicate/Filtering-duplicates-using-Fullload-Passthru-Filter/m-p/1891227#M1831</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I`m trying to replicate a table from SAP HANA as a source to azure as target. By now I&amp;nbsp; am bringing the last 13 months of data from the table, and I need this 13 months. For this I am using the Fullload Passthru Filter as follows:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="leonardoed_0-1644435780616.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/71982i519764CC2CD0414A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="leonardoed_0-1644435780616.png" alt="leonardoed_0-1644435780616.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Now comes the problem: Even filtering only the 13 last months, my dataset still have more than 500 million rows. And I am facing an error because I have used all my space on azure. I found that I have some duplicated&amp;nbsp; rows ( when I select distinct it goes from 500kk to 30kk) that are needed on HANA but I wont need them on azure. So now comes my question:&amp;nbsp; Can I do this select distinct filter using the&amp;nbsp;Fullload Passthru Filter? Or is any other way to filter this when Qlik brings the data from the source? If not I will have to manage this directly on hana before replicating.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Wed, 09 Feb 2022 19:55:34 GMT</pubDate>
    <dc:creator>leonardoed</dc:creator>
    <dc:date>2022-02-09T19:55:34Z</dc:date>
    <item>
      <title>Filtering duplicates using Fullload Passthru Filter</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Filtering-duplicates-using-Fullload-Passthru-Filter/m-p/1891227#M1831</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I`m trying to replicate a table from SAP HANA as a source to azure as target. By now I&amp;nbsp; am bringing the last 13 months of data from the table, and I need this 13 months. For this I am using the Fullload Passthru Filter as follows:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="leonardoed_0-1644435780616.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/71982i519764CC2CD0414A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="leonardoed_0-1644435780616.png" alt="leonardoed_0-1644435780616.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Now comes the problem: Even filtering only the 13 last months, my dataset still have more than 500 million rows. And I am facing an error because I have used all my space on azure. I found that I have some duplicated&amp;nbsp; rows ( when I select distinct it goes from 500kk to 30kk) that are needed on HANA but I wont need them on azure. So now comes my question:&amp;nbsp; Can I do this select distinct filter using the&amp;nbsp;Fullload Passthru Filter? Or is any other way to filter this when Qlik brings the data from the source? If not I will have to manage this directly on hana before replicating.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 09 Feb 2022 19:55:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Filtering-duplicates-using-Fullload-Passthru-Filter/m-p/1891227#M1831</guid>
      <dc:creator>leonardoed</dc:creator>
      <dc:date>2022-02-09T19:55:34Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering duplicates using Fullload Passthru Filter</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Filtering-duplicates-using-Fullload-Passthru-Filter/m-p/1891314#M1832</link>
      <description>&lt;P&gt;So you don't want all columns from the table, just those listed in the DISTINCT clause right. Really?&lt;/P&gt;
&lt;P&gt;Hmm, the 'passthru' is implemented as TEXT for a WHERE clause.&lt;/P&gt;
&lt;P&gt;The SELECT &amp;lt;column list&amp;gt; FROM table text is already in place. No option to inject a 'DISTINCT' there, plus there is no option for an alternative &amp;lt;column list&amp;gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I don't think there is a clever WHERE clause only thing you can do as alternative. If you google for 'SQL alternative to distinct' or similar you'll find several responses, but the ones I saw needed a JOIN in the FROM.&lt;/P&gt;
&lt;P&gt;Your best bet is probably to fullload a VIEW, not the base table.&lt;/P&gt;
&lt;P&gt;Hein&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Feb 2022 05:08:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Filtering-duplicates-using-Fullload-Passthru-Filter/m-p/1891314#M1832</guid>
      <dc:creator>Heinvandenheuvel</dc:creator>
      <dc:date>2022-02-10T05:08:03Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering duplicates using Fullload Passthru Filter</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Filtering-duplicates-using-Fullload-Passthru-Filter/m-p/1892179#M1840</link>
      <description>&lt;P&gt;If we don't need duplicate on the target, we would have to create a unique constraint on the target table so that duplicates get filtered out. And also the scenario looks like we will need to have different unique constraint between source and target.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Feb 2022 23:31:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Filtering-duplicates-using-Fullload-Passthru-Filter/m-p/1892179#M1840</guid>
      <dc:creator>shashi_holla</dc:creator>
      <dc:date>2022-02-11T23:31:22Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering duplicates using Fullload Passthru Filter</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Filtering-duplicates-using-Fullload-Passthru-Filter/m-p/1892273#M1846</link>
      <description>&lt;P&gt;Shashi has an interesting suggestion.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Select the duplication controlling columns on the target to create a unique constraint after table creation.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do not let Replicate drop and recreate, but truncate instead&lt;/P&gt;
&lt;P&gt;Set the task error handling for 'apply conflicts' to 'Duplicate key when applying INSERT:&lt;BR /&gt;UPDATE the existing target record'. That way you'll just get the last row with duplicate key updating any prior ones.&lt;/P&gt;
&lt;P&gt;hth,&lt;/P&gt;
&lt;P&gt;Hein&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 13 Feb 2022 01:43:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Filtering-duplicates-using-Fullload-Passthru-Filter/m-p/1892273#M1846</guid>
      <dc:creator>Heinvandenheuvel</dc:creator>
      <dc:date>2022-02-13T01:43:45Z</dc:date>
    </item>
  </channel>
</rss>

