<?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 SQL: Data of the last 7 days in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/SQL-Data-of-the-last-7-days/m-p/1847704#M1232095</link>
    <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;I would like to filter all data in the script (SQL) by a date. I want all the data that was created in the last 7 days.&lt;/P&gt;&lt;P&gt;I searched a little in the forum, unfortunately my solution does not work....&lt;/P&gt;&lt;P&gt;Can someone help me?&lt;/P&gt;&lt;P&gt;SET DateFormat='DD.MM.YYYY';&lt;BR /&gt;SET TimestampFormat='DD.MM.YYYY hh:mm:ss[.fff]';&lt;/P&gt;&lt;P&gt;LOAD "rechnung_dbid",&amp;nbsp; "beleg_date";&lt;BR /&gt;SQL SELECT "rechnung_dbid", "beleg_date"&lt;BR /&gt;FROM pdserp."public"."pds_rechnung"&lt;BR /&gt;WHERE Interval(Date#($(TodayDate), 'DD.MM.YYYY') - Date#("beleg_date", 'DD.MM.YYYY'), 'DD') &amp;lt; 7;&lt;/P&gt;&lt;P&gt;Thanks Many greetings&lt;BR /&gt;Martin&lt;/P&gt;</description>
    <pubDate>Mon, 26 Jan 2026 16:26:21 GMT</pubDate>
    <dc:creator>somi</dc:creator>
    <dc:date>2026-01-26T16:26:21Z</dc:date>
    <item>
      <title>SQL: Data of the last 7 days</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-Data-of-the-last-7-days/m-p/1847704#M1232095</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;I would like to filter all data in the script (SQL) by a date. I want all the data that was created in the last 7 days.&lt;/P&gt;&lt;P&gt;I searched a little in the forum, unfortunately my solution does not work....&lt;/P&gt;&lt;P&gt;Can someone help me?&lt;/P&gt;&lt;P&gt;SET DateFormat='DD.MM.YYYY';&lt;BR /&gt;SET TimestampFormat='DD.MM.YYYY hh:mm:ss[.fff]';&lt;/P&gt;&lt;P&gt;LOAD "rechnung_dbid",&amp;nbsp; "beleg_date";&lt;BR /&gt;SQL SELECT "rechnung_dbid", "beleg_date"&lt;BR /&gt;FROM pdserp."public"."pds_rechnung"&lt;BR /&gt;WHERE Interval(Date#($(TodayDate), 'DD.MM.YYYY') - Date#("beleg_date", 'DD.MM.YYYY'), 'DD') &amp;lt; 7;&lt;/P&gt;&lt;P&gt;Thanks Many greetings&lt;BR /&gt;Martin&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jan 2026 16:26:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-Data-of-the-last-7-days/m-p/1847704#M1232095</guid>
      <dc:creator>somi</dc:creator>
      <dc:date>2026-01-26T16:26:21Z</dc:date>
    </item>
    <item>
      <title>Re: SQL: Data of the last 7 days</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-Data-of-the-last-7-days/m-p/1847745#M1232096</link>
      <description>&lt;P&gt;Hi there, try this out:&lt;/P&gt;&lt;P&gt;SET DateFormat='DD.MM.YYYY';&lt;BR /&gt;SET TimestampFormat='DD.MM.YYYY hh:mm:ss[.fff]';&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Let vFilterDate = Date(today()-7);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;LOAD "rechnung_dbid",&amp;nbsp; "beleg_date";&lt;BR /&gt;SQL SELECT "rechnung_dbid", "beleg_date"&lt;BR /&gt;FROM pdserp."public"."pds_rechnung"&lt;BR /&gt;WHERE &lt;STRONG&gt;Num(beleg_date) &amp;gt; '$(vFilterDate)'&amp;nbsp;&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Sun, 17 Oct 2021 06:50:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-Data-of-the-last-7-days/m-p/1847745#M1232096</guid>
      <dc:creator>Thiago_Justen_</dc:creator>
      <dc:date>2021-10-17T06:50:37Z</dc:date>
    </item>
  </channel>
</rss>

