<?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: Load dates greater than - &amp;quot;where&amp;quot; query in Connectivity &amp; Data Prep</title>
    <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Load-dates-greater-than-quot-where-quot-query/m-p/2063031#M12199</link>
    <description>&lt;P&gt;Try without the textual representation.&lt;/P&gt;
&lt;P&gt;Let vEndDate = Date(Today()-7, 'DD-MM-YYYY');&lt;/P&gt;</description>
    <pubDate>Fri, 21 Apr 2023 12:15:26 GMT</pubDate>
    <dc:creator>BrunPierre</dc:creator>
    <dc:date>2023-04-21T12:15:26Z</dc:date>
    <item>
      <title>Load dates greater than - "where" query</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Load-dates-greater-than-quot-where-quot-query/m-p/2062998#M12198</link>
      <description>&lt;P&gt;Hi, I'm connecting to a data warehouse and I want to limit date to e.g. a specific year or a few days back.&lt;BR /&gt;What might the "where" query look like?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Data format from&amp;nbsp;warehouse is 'DD-MM-YYYY'&lt;/P&gt;
&lt;P&gt;My code dont work &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;
&lt;TABLE border="1" width="100%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="100%"&gt;
&lt;P&gt;LIB CONNECT TO 'HD (kp)';&lt;/P&gt;
&lt;P&gt;Let vEndDate = text(date((Today()-7), 'DD-MM-YYYY'));&lt;/P&gt;
&lt;P&gt;[SALES]:&lt;BR /&gt;LOAD &lt;BR /&gt;hid_shop, &lt;BR /&gt;date(hid_data) as data,&lt;BR /&gt;kod_gencode,&lt;BR /&gt;hid_seg;&lt;/P&gt;
&lt;P&gt;SELECT &lt;BR /&gt;"hid_shop",&lt;BR /&gt;"hid_data",&lt;BR /&gt;"kod_gencode",&lt;BR /&gt;"hid_seg"&lt;BR /&gt;FROM "public"."SALES"&lt;BR /&gt;Where "hid_data" &amp;gt;= '$(vEndDate)'&lt;BR /&gt;;&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Apr 2023 11:05:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Load-dates-greater-than-quot-where-quot-query/m-p/2062998#M12198</guid>
      <dc:creator>Sebastian_Dec</dc:creator>
      <dc:date>2023-04-21T11:05:06Z</dc:date>
    </item>
    <item>
      <title>Re: Load dates greater than - "where" query</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Load-dates-greater-than-quot-where-quot-query/m-p/2063031#M12199</link>
      <description>&lt;P&gt;Try without the textual representation.&lt;/P&gt;
&lt;P&gt;Let vEndDate = Date(Today()-7, 'DD-MM-YYYY');&lt;/P&gt;</description>
      <pubDate>Fri, 21 Apr 2023 12:15:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Load-dates-greater-than-quot-where-quot-query/m-p/2063031#M12199</guid>
      <dc:creator>BrunPierre</dc:creator>
      <dc:date>2023-04-21T12:15:26Z</dc:date>
    </item>
    <item>
      <title>Re: Load dates greater than - "where" query</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Load-dates-greater-than-quot-where-quot-query/m-p/2063039#M12201</link>
      <description>&lt;P&gt;I have error:&lt;/P&gt;
&lt;P&gt;code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;LIB CONNECT TO 'HD (kp)';

Let vEndDate = Date(Today()-7, 'DD-MM-YYYY');

[obroty_72]:
LOAD
hid_sklep,
date(hid_data) as data,
kod_ean,
hid_segment;

SELECT
"hid_sklep",
"hid_data",
"kod_ean",
"hid_segment"
FROM "public"."obroty_72"
Where "hid_data" &amp;gt;= '$(vEndDate)'
;&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;error:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Started loading data
Connected
The following error occurred:
Field 'hid_sklep' not found
The error occurred here:
SELECT
"hid_sklep",
"hid_data",
"kod_ean",
"hid_segment"
FROM "public"."obroty_72"
Where "hid_data" &amp;gt;= '14-04-2023'
Data has not been loaded. Please correct the error and try loading again.&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Apr 2023 12:38:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Load-dates-greater-than-quot-where-quot-query/m-p/2063039#M12201</guid>
      <dc:creator>Sebastian_Dec</dc:creator>
      <dc:date>2023-04-21T12:38:07Z</dc:date>
    </item>
    <item>
      <title>Re: Load dates greater than - "where" query</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Load-dates-greater-than-quot-where-quot-query/m-p/2063054#M12202</link>
      <description>&lt;P&gt;Try referring to the fields in uppercase.&lt;/P&gt;
&lt;P&gt;Alternatively, you can troubleshoot by just executing the SQL part (without the preceding load) and examining table values from the table viewer.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Apr 2023 12:44:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Load-dates-greater-than-quot-where-quot-query/m-p/2063054#M12202</guid>
      <dc:creator>BrunPierre</dc:creator>
      <dc:date>2023-04-21T12:44:18Z</dc:date>
    </item>
  </channel>
</rss>

