<?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 Simple data range question in Connectivity &amp; Data Prep</title>
    <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Simple-data-range-question/m-p/1859974#M9855</link>
    <description>&lt;P&gt;i'm stucking ni this simple situation where i need ta have bars from a date range (2014-now) but not all date have data in them, how do i generate a local autogenareted table with a date range?&lt;/P&gt;
&lt;P&gt;in Oracle i would do someting like this:&lt;/P&gt;
&lt;P&gt;Select:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;(to_date(sysdate,'DD-MM-YYYY') - level + 1) &lt;/LI-CODE&gt;
&lt;P&gt;As day,&lt;/P&gt;
&lt;P&gt;FROM&lt;/P&gt;
&lt;P&gt;dual&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;CONNECT BY LEVEL &amp;lt;= (to_date(sysdate,'DD-MM-YYYY') - to_date('01-01-2014','DD-MM-YYYY') + 1);&lt;/LI-CODE&gt;</description>
    <pubDate>Tue, 16 Nov 2021 15:33:53 GMT</pubDate>
    <dc:creator>ksleiniwe</dc:creator>
    <dc:date>2021-11-16T15:33:53Z</dc:date>
    <item>
      <title>Simple data range question</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Simple-data-range-question/m-p/1859974#M9855</link>
      <description>&lt;P&gt;i'm stucking ni this simple situation where i need ta have bars from a date range (2014-now) but not all date have data in them, how do i generate a local autogenareted table with a date range?&lt;/P&gt;
&lt;P&gt;in Oracle i would do someting like this:&lt;/P&gt;
&lt;P&gt;Select:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;(to_date(sysdate,'DD-MM-YYYY') - level + 1) &lt;/LI-CODE&gt;
&lt;P&gt;As day,&lt;/P&gt;
&lt;P&gt;FROM&lt;/P&gt;
&lt;P&gt;dual&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;CONNECT BY LEVEL &amp;lt;= (to_date(sysdate,'DD-MM-YYYY') - to_date('01-01-2014','DD-MM-YYYY') + 1);&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 16 Nov 2021 15:33:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Simple-data-range-question/m-p/1859974#M9855</guid>
      <dc:creator>ksleiniwe</dc:creator>
      <dc:date>2021-11-16T15:33:53Z</dc:date>
    </item>
    <item>
      <title>Re: Simple data range question</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Simple-data-range-question/m-p/1859998#M9856</link>
      <description>&lt;P&gt;if the question is to generate date field values even if you dont have those date values in a different table, you can use iterno:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;//generate dates based on another date (this one is 90 days past)
load date(today()-iterno()+1) as date
where date(today()-iterno()+1) &amp;gt;= today()-90;
load 1 AutoGenerate(1);

//or based on number of days
load date(today()-iterno()+1) as date
where iterno()&amp;lt;=90;
load 1 AutoGenerate(1);
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;hope that helps&lt;/P&gt;</description>
      <pubDate>Tue, 16 Nov 2021 16:18:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Simple-data-range-question/m-p/1859998#M9856</guid>
      <dc:creator>edwin</dc:creator>
      <dc:date>2021-11-16T16:18:32Z</dc:date>
    </item>
  </channel>
</rss>

