<?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: how to filter data by date in a load script? in Connectivity &amp; Data Prep</title>
    <link>https://community.qlik.com/t5/Connectivity-Data-Prep/how-to-filter-data-by-date-in-a-load-script/m-p/2164581#M13271</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/162557"&gt;@Bruno_Basulto&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;From the example, it appears to be a datetime field,&lt;/P&gt;
&lt;P&gt;Could you do this in Load instead of Select?&lt;/P&gt;
&lt;P&gt;see below&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;PRE id="tw-target-text" class="tw-data-text tw-text-large tw-ta" dir="ltr" data-placeholder="Tradução" data-ved="2ahUKEwjdyObEnPSDAxWwq5UCHfZcAIAQ3ewLegQIBRAQ"&gt;&lt;SPAN class="Y2IQFc"&gt;load
...
Where year(Date(Floor(datetime)))&amp;gt;=year(today())-1;

[Table];
Select
...
from;&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;P&gt;Regarts,&lt;BR /&gt;Matheus&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 23 Jan 2024 19:20:54 GMT</pubDate>
    <dc:creator>MatheusC</dc:creator>
    <dc:date>2024-01-23T19:20:54Z</dc:date>
    <item>
      <title>how to filter data by date in a load script?</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/how-to-filter-data-by-date-in-a-load-script/m-p/2164559#M13270</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;I need to filter when performing a data load from an Oracle connection using a date and time field that has the following format:&lt;/P&gt;
&lt;P&gt;"FEC_SOL" : '2023-01-01 00:00:00.000000'&lt;/P&gt;
&lt;P&gt;to bring only information from 2023 onwards.&lt;/P&gt;
&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jan 2024 18:14:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/how-to-filter-data-by-date-in-a-load-script/m-p/2164559#M13270</guid>
      <dc:creator>Bruno_Basulto</dc:creator>
      <dc:date>2024-01-23T18:14:56Z</dc:date>
    </item>
    <item>
      <title>Re: how to filter data by date in a load script?</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/how-to-filter-data-by-date-in-a-load-script/m-p/2164581#M13271</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/162557"&gt;@Bruno_Basulto&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;From the example, it appears to be a datetime field,&lt;/P&gt;
&lt;P&gt;Could you do this in Load instead of Select?&lt;/P&gt;
&lt;P&gt;see below&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;PRE id="tw-target-text" class="tw-data-text tw-text-large tw-ta" dir="ltr" data-placeholder="Tradução" data-ved="2ahUKEwjdyObEnPSDAxWwq5UCHfZcAIAQ3ewLegQIBRAQ"&gt;&lt;SPAN class="Y2IQFc"&gt;load
...
Where year(Date(Floor(datetime)))&amp;gt;=year(today())-1;

[Table];
Select
...
from;&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;P&gt;Regarts,&lt;BR /&gt;Matheus&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jan 2024 19:20:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/how-to-filter-data-by-date-in-a-load-script/m-p/2164581#M13271</guid>
      <dc:creator>MatheusC</dc:creator>
      <dc:date>2024-01-23T19:20:54Z</dc:date>
    </item>
    <item>
      <title>Re: how to filter data by date in a load script?</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/how-to-filter-data-by-date-in-a-load-script/m-p/2411090#M13277</link>
      <description>&lt;P&gt;Did you get the solution?&lt;/P&gt;
&lt;P&gt;Close the topic with the solution met and leave a like if you found it useful.&lt;/P&gt;
&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jan 2024 13:41:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/how-to-filter-data-by-date-in-a-load-script/m-p/2411090#M13277</guid>
      <dc:creator>MatheusC</dc:creator>
      <dc:date>2024-01-25T13:41:35Z</dc:date>
    </item>
    <item>
      <title>Re: how to filter data by date in a load script?</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/how-to-filter-data-by-date-in-a-load-script/m-p/2411135#M13279</link>
      <description>&lt;P&gt;select * from table where&amp;nbsp;EXTRACT(YEAR FROM datefield) &amp;gt;=year(today())-1&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jan 2024 15:07:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/how-to-filter-data-by-date-in-a-load-script/m-p/2411135#M13279</guid>
      <dc:creator>anat</dc:creator>
      <dc:date>2024-01-25T15:07:26Z</dc:date>
    </item>
    <item>
      <title>Re: how to filter data by date in a load script?</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/how-to-filter-data-by-date-in-a-load-script/m-p/2411141#M13280</link>
      <description>&lt;P&gt;Yes! its work!&lt;BR /&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jan 2024 15:25:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/how-to-filter-data-by-date-in-a-load-script/m-p/2411141#M13280</guid>
      <dc:creator>Bruno_Basulto</dc:creator>
      <dc:date>2024-01-25T15:25:19Z</dc:date>
    </item>
    <item>
      <title>Re: how to filter data by date in a load script?</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/how-to-filter-data-by-date-in-a-load-script/m-p/2411152#M13281</link>
      <description>&lt;P&gt;When you are using the Today function in a load script, you should &lt;EM&gt;&lt;STRONG&gt;always&lt;/STRONG&gt;&lt;/EM&gt; use Today(1), since Today() or Today(0) is the date of&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;the last successful reload&lt;/STRONG&gt;&lt;/EM&gt;&lt;EM&gt;.&amp;nbsp;&lt;/EM&gt;If you are doing daily updates this makes a big difference.&lt;/P&gt;
&lt;P&gt;For details:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/qlikview/May2023/Subsystems/Client/Content/QV_QlikView/Scripting/DateAndTimeFunctions/today.htm" target="_blank" rel="noopener"&gt;Qlik Help for Today() function&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ws&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jan 2024 15:54:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/how-to-filter-data-by-date-in-a-load-script/m-p/2411152#M13281</guid>
      <dc:creator>WaltShpuntoff</dc:creator>
      <dc:date>2024-01-25T15:54:22Z</dc:date>
    </item>
  </channel>
</rss>

