<?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: Qlik Replicate Null Range Filter in Qlik Replicate</title>
    <link>https://community.qlik.com/t5/Qlik-Replicate/Qlik-Replicate-Null-Range-Filter/m-p/1993431#M3940</link>
    <description>&lt;P&gt;The filter &amp;gt; 0 is a good thought, but the field I'm filtering on is like a company id.&amp;nbsp; So, the target only needs to contain results for one specific id and those that are null.&amp;nbsp; Trying the passthru option now.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Made the changes on the replicate server for passthru queries, but the option is still not available in the EM console.&amp;nbsp; Researching further.&lt;/P&gt;</description>
    <pubDate>Mon, 17 Oct 2022 17:31:46 GMT</pubDate>
    <dc:creator>CC3</dc:creator>
    <dc:date>2022-10-17T17:31:46Z</dc:date>
    <item>
      <title>Qlik Replicate Null Range Filter</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Qlik-Replicate-Null-Range-Filter/m-p/1993051#M3930</link>
      <description>&lt;P&gt;Hello:&lt;/P&gt;
&lt;P&gt;Looking for a way to do a range filter on an integer field to include both a number and a null value.&amp;nbsp; Data is coming from a MySQL database, the target is SQL Server, and the task is Full Load + CDC.&amp;nbsp; I understand how to add the range filter for the specific integer value (&lt;SPAN class="ng-binding"&gt;Equal To&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="ng-binding"&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;12346)&lt;/SPAN&gt;, but cannot figure out if it's possible to add NULL in that Range section as well.&amp;nbsp; I've tried:&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="ng-binding"&gt;Equal To&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="ng-binding"&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A class="ellipsisStyle" target="_blank"&gt;&lt;SPAN class="ng-binding"&gt;[N]&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="ng-binding"&gt;Equal To NULL&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="ng-binding"&gt;Equal to Null&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="ng-binding"&gt;Equal to null&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="ng-binding"&gt;These don't work - not that I would expect them to, given it's not how you filter null records in SQL.&amp;nbsp; I've tried using the Record Selection Condition section, and while it works, it's not at all performant.&amp;nbsp; For reference, the original range filter without factoring in nulls runs in less than a second.&amp;nbsp; Using a few variations in the Record Selection Condition section returned in 90 minutes, and then in 55 minutes upon retry.&amp;nbsp; The total records including nulls to be transferred is about 42,000, with maybe two hundred being null.&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;I've found some other links on the board - &lt;A href="https://community.qlik.com/t5/Official-Support-Articles/Filter-for-last-90-days-of-data-in-Qlik-Replicate/ta-p/1880761" target="_blank"&gt;https://community.qlik.com/t5/Official-Support-Articles/Filter-for-last-90-days-of-data-in-Qlik-Replicate/ta-p/1880761&lt;/A&gt;&amp;nbsp;- and it looks like a passthru filter may be appropriate.&amp;nbsp; Running the desired filter query directly on my source database returns in less than 5 seconds, so I'm thinking the passthru query should be nearly as performant.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Aside from a passthru query, is there any way to add a Null inclusion in the table range filter?&amp;nbsp; Or a way to speed up the Record Selection Condition?&amp;nbsp; I've read that the latter may be slow and there's not much that can be done about that.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 16 Oct 2022 14:19:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Qlik-Replicate-Null-Range-Filter/m-p/1993051#M3930</guid>
      <dc:creator>CC3</dc:creator>
      <dc:date>2022-10-16T14:19:34Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Replicate Null Range Filter</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Qlik-Replicate-Null-Range-Filter/m-p/1993305#M3935</link>
      <description>&lt;P&gt;you can try something like:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="background-color:rgb(255,255,255);color:rgb(24,24,24);font-size:13px;"&gt;You can do the following to replace NULLS with blank spaces in Replicate:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="background-color:rgb(255,255,255);color:rgb(24,24,24);font-size:13px;"&gt;1) Under the task Designer mode, go to Global Rules if you want to apply to every and each table/columns or select the tables you want to apply this and go to transform&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="background-color:rgb(255,255,255);color:rgb(24,24,24);font-size:13px;"&gt;2) Add a new transformation with option: "Replace column value"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="background-color:rgb(255,255,255);color:rgb(24,24,24);font-size:13px;"&gt;3) Add this to the expression:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="background-color:rgb(255,255,255);color:rgb(24,24,24);font-size:13px;"&gt;ifnull($AR_M_SOURCE_COLUMN_DATA,' ')&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="background-color:rgb(255,255,255);color:rgb(24,24,24);font-size:13px;"&gt;That should do it, please test and let us know the outcome.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Oct 2022 12:58:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Qlik-Replicate-Null-Range-Filter/m-p/1993305#M3935</guid>
      <dc:creator>Steve_Nguyen</dc:creator>
      <dc:date>2022-10-17T12:58:43Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Replicate Null Range Filter</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Qlik-Replicate-Null-Range-Filter/m-p/1993321#M3936</link>
      <description>&lt;P&gt;Giving this a shot.&amp;nbsp; Since the field is an integer, I replaced the null value with -111 as follows:&amp;nbsp; &lt;SPAN&gt;ifnull($AR_M_SOURCE_COLUMN_DATA, -111).&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I added a second range filter to look for this id field = -111, and so far I'm not seeing those null records in the target table.&amp;nbsp; Target table prep mode is drop and create.&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Oct 2022 13:35:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Qlik-Replicate-Null-Range-Filter/m-p/1993321#M3936</guid>
      <dc:creator>CC3</dc:creator>
      <dc:date>2022-10-17T13:35:10Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Replicate Null Range Filter</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Qlik-Replicate-Null-Range-Filter/m-p/1993378#M3938</link>
      <description>&lt;P&gt;For full-load the passthru with 'IS NULL' or&amp;nbsp; 'IS NOT NULL' as appropriate is most effective. Add that for sure.&lt;/P&gt;
&lt;P&gt;You picked -111 as 'special' value for testing. Fine.&amp;nbsp; Does that mean that no negative values are allowed?&lt;/P&gt;
&lt;P&gt;If so you could just filter on '&amp;gt; 0' as that will exclude rows with NULL value in the filter column.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;fwiw,&lt;/P&gt;
&lt;P&gt;Hein.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Oct 2022 14:39:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Qlik-Replicate-Null-Range-Filter/m-p/1993378#M3938</guid>
      <dc:creator>Heinvandenheuvel</dc:creator>
      <dc:date>2022-10-17T14:39:19Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Replicate Null Range Filter</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Qlik-Replicate-Null-Range-Filter/m-p/1993431#M3940</link>
      <description>&lt;P&gt;The filter &amp;gt; 0 is a good thought, but the field I'm filtering on is like a company id.&amp;nbsp; So, the target only needs to contain results for one specific id and those that are null.&amp;nbsp; Trying the passthru option now.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Made the changes on the replicate server for passthru queries, but the option is still not available in the EM console.&amp;nbsp; Researching further.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Oct 2022 17:31:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Qlik-Replicate-Null-Range-Filter/m-p/1993431#M3940</guid>
      <dc:creator>CC3</dc:creator>
      <dc:date>2022-10-17T17:31:46Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Replicate Null Range Filter</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Qlik-Replicate-Null-Range-Filter/m-p/1993512#M3944</link>
      <description>&lt;P&gt;Update:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The passthrough option is not appearing on the server after following the listed steps.&amp;nbsp; I created a separate post for that here:&amp;nbsp;&lt;A href="https://community.qlik.com/t5/Qlik-Replicate/Enable-Passthrough-Filter-on-Replicate/td-p/1993506" target="_blank" rel="noopener"&gt;https://community.qlik.com/t5/Qlik-Replicate/Enable-Passthrough-Filter-on-Replicate/td-p/1993506&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/117387"&gt;@Steve_Nguyen&lt;/a&gt;&amp;nbsp;Interested in your thoughts about my response to you earlier.&amp;nbsp; &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;DOUBLE UPDATE: passthrough option is enabled and solves the initial issue well.&amp;nbsp; I still am curious if there's a way to check for null values in the Range filter section.&amp;nbsp; Leaving this open for that purpose.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Oct 2022 18:24:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Qlik-Replicate-Null-Range-Filter/m-p/1993512#M3944</guid>
      <dc:creator>CC3</dc:creator>
      <dc:date>2022-10-17T18:24:14Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Replicate Null Range Filter</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Qlik-Replicate-Null-Range-Filter/m-p/1993557#M3948</link>
      <description>&lt;P&gt;&amp;gt;&amp;gt;&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;I still am curious if there's a way to check for null values in the Range filter section.&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;I believe there is. You just need to look lower on the 'ranges' form where it offers '&lt;SPAN&gt;Record Selection Condition' and 'expression builder' you can speak SQLite there (Google is your friend) and you can us 'isnull' tests and the likes.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Hein.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Oct 2022 19:38:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Qlik-Replicate-Null-Range-Filter/m-p/1993557#M3948</guid>
      <dc:creator>Heinvandenheuvel</dc:creator>
      <dc:date>2022-10-17T19:38:33Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Replicate Null Range Filter</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Qlik-Replicate-Null-Range-Filter/m-p/1993559#M3949</link>
      <description>&lt;P&gt;Ah.&amp;nbsp; I tried that initially and was able to get it to work, but the runtimes for that specific table reload ballooned to about an hour or so.&amp;nbsp; Range filter for the specific non-null records reloaded in a few seconds, and the passthrough query is running about the same.&amp;nbsp; Querying the source data set on my local database connection medium returns results in a few seconds as well.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Oct 2022 19:44:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Qlik-Replicate-Null-Range-Filter/m-p/1993559#M3949</guid>
      <dc:creator>CC3</dc:creator>
      <dc:date>2022-10-17T19:44:34Z</dc:date>
    </item>
  </channel>
</rss>

