<?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 select data only from the last 30 days in Connectivity &amp; Data Prep</title>
    <link>https://community.qlik.com/t5/Connectivity-Data-Prep/select-data-only-from-the-last-30-days/m-p/137785#M740</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I like to select data only from the last 30 days. It works static, but I like to have this dynamic. &lt;/P&gt;&lt;P&gt;&lt;IMG alt="SQL.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/210805_SQL.JPG" style="height: 125px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 14 Aug 2018 14:14:17 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-08-14T14:14:17Z</dc:date>
    <item>
      <title>select data only from the last 30 days</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/select-data-only-from-the-last-30-days/m-p/137785#M740</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I like to select data only from the last 30 days. It works static, but I like to have this dynamic. &lt;/P&gt;&lt;P&gt;&lt;IMG alt="SQL.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/210805_SQL.JPG" style="height: 125px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Aug 2018 14:14:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/select-data-only-from-the-last-30-days/m-p/137785#M740</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-08-14T14:14:17Z</dc:date>
    </item>
    <item>
      <title>Re: select data only from the last 30 days</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/select-data-only-from-the-last-30-days/m-p/137786#M741</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Be aware that everything between the SELECT and the following semicolon is interpreted by the SQL source/database. So any logic used in the Where part of the statement would follow the syntax and functions available in the SQL data source.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But you should be able to use $-sign expansion that will be executed before the load script sends the SQL SELECT statement to the source. Maybe like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;v30DaysAgo = Date( Today(1)-30 , 'YYYYMMDD' );&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;H4&gt;Select * From ABCD Where abcd &amp;gt;= '$(v30DaysAgo)';&lt;/H4&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Aug 2018 18:06:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/select-data-only-from-the-last-30-days/m-p/137786#M741</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2018-08-14T18:06:53Z</dc:date>
    </item>
    <item>
      <title>Re: select data only from the last 30 days</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/select-data-only-from-the-last-30-days/m-p/137787#M742</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot, it works very well.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Aug 2018 07:53:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/select-data-only-from-the-last-30-days/m-p/137787#M742</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-08-17T07:53:30Z</dc:date>
    </item>
    <item>
      <title>Re: select data only from the last 30 days</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/select-data-only-from-the-last-30-days/m-p/137788#M743</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please mark the question as answered and correct &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Aug 2018 08:30:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/select-data-only-from-the-last-30-days/m-p/137788#M743</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2018-08-17T08:30:17Z</dc:date>
    </item>
  </channel>
</rss>

