<?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 data from time DATE_STARTED,  2 weeks back. in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Load-data-from-time-DATE-STARTED-2-weeks-back/m-p/1878521#M72429</link>
    <description>&lt;P&gt;It was a synthax error,&amp;nbsp; the code works now and it loads the data but not as&amp;nbsp;intended, it loads data with starting point from july 2021. Do you know why ?&lt;/P&gt;
&lt;P&gt;Also&amp;nbsp; for what are the 1 and 0 after the today expression ?&lt;/P&gt;</description>
    <pubDate>Fri, 07 Jan 2022 15:22:37 GMT</pubDate>
    <dc:creator>Loeckli</dc:creator>
    <dc:date>2022-01-07T15:22:37Z</dc:date>
    <item>
      <title>Load data from time DATE_STARTED,  2 weeks back.</title>
      <link>https://community.qlik.com/t5/App-Development/Load-data-from-time-DATE-STARTED-2-weeks-back/m-p/1878414#M72412</link>
      <description>&lt;P&gt;Hello Everybody&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am still a beginner when it comes to QlikSense. In the app I'm trying to create, I want to load all data older than 2 weeks than the newest time of DATE_STARTED.&lt;/P&gt;
&lt;P&gt;What I have tried until now without success.&lt;/P&gt;
&lt;P&gt;LOAD&lt;/P&gt;
&lt;P&gt;Timestamp([DATE_STARTED] , 'D/M/YYYY') AS [DATE_STARTED]&lt;/P&gt;
&lt;P&gt;....&lt;/P&gt;
&lt;P&gt;Where DATE_STARTED &amp;gt;= (today()-14);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What I'm missing, or is this approach&amp;nbsp;efficient ?&lt;BR /&gt;&lt;BR /&gt;Thanks for your time and help&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jan 2022 11:59:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Load-data-from-time-DATE-STARTED-2-weeks-back/m-p/1878414#M72412</guid>
      <dc:creator>Loeckli</dc:creator>
      <dc:date>2022-01-07T11:59:50Z</dc:date>
    </item>
    <item>
      <title>Re: Load data from time DATE_STARTED,  2 weeks back.</title>
      <link>https://community.qlik.com/t5/App-Development/Load-data-from-time-DATE-STARTED-2-weeks-back/m-p/1878423#M72414</link>
      <description>&lt;P&gt;Hi, that should load the last 2 weeks of data, first check if the source has any value in&amp;nbsp;&lt;SPAN&gt;DATE_STARTED&lt;/SPAN&gt; later than 24-dec.&lt;/P&gt;
&lt;P&gt;You can load this data in a document and create a table with DATE_STARTED as dimension and an expression like "If(&lt;SPAN&gt;DATE_STARTED &amp;gt;= (today()-14), 1, 0)" and confirm it sets '1' on the expected dates.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jan 2022 12:22:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Load-data-from-time-DATE-STARTED-2-weeks-back/m-p/1878423#M72414</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2022-01-07T12:22:43Z</dc:date>
    </item>
    <item>
      <title>Re: Load data from time DATE_STARTED,  2 weeks back.</title>
      <link>https://community.qlik.com/t5/App-Development/Load-data-from-time-DATE-STARTED-2-weeks-back/m-p/1878464#M72424</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;BR /&gt;Thanks for your reply&lt;BR /&gt;&lt;BR /&gt;The DATE_STARTED goes back until 2017, so that wont be a problem.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm loading all the tabels from a SQL DB and i want to filter just the newest data as proposed.&lt;/P&gt;
&lt;P&gt;Now I have something like this :&lt;/P&gt;
&lt;P&gt;LOAD&amp;nbsp;&lt;/P&gt;
&lt;P&gt;...&lt;/P&gt;
&lt;P&gt;DATE_STARTED&lt;BR /&gt;If(DATE_STARTED &amp;gt;= (today()-14), 1, 0),&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But i still get an error.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jan 2022 13:58:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Load-data-from-time-DATE-STARTED-2-weeks-back/m-p/1878464#M72424</guid>
      <dc:creator>Loeckli</dc:creator>
      <dc:date>2022-01-07T13:58:33Z</dc:date>
    </item>
    <item>
      <title>Re: Load data from time DATE_STARTED,  2 weeks back.</title>
      <link>https://community.qlik.com/t5/App-Development/Load-data-from-time-DATE-STARTED-2-weeks-back/m-p/1878521#M72429</link>
      <description>&lt;P&gt;It was a synthax error,&amp;nbsp; the code works now and it loads the data but not as&amp;nbsp;intended, it loads data with starting point from july 2021. Do you know why ?&lt;/P&gt;
&lt;P&gt;Also&amp;nbsp; for what are the 1 and 0 after the today expression ?&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jan 2022 15:22:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Load-data-from-time-DATE-STARTED-2-weeks-back/m-p/1878521#M72429</guid>
      <dc:creator>Loeckli</dc:creator>
      <dc:date>2022-01-07T15:22:37Z</dc:date>
    </item>
    <item>
      <title>Re: Load data from time DATE_STARTED,  2 weeks back.</title>
      <link>https://community.qlik.com/t5/App-Development/Load-data-from-time-DATE-STARTED-2-weeks-back/m-p/1878701#M72449</link>
      <description>&lt;P&gt;Hi, the 1 and 0 it's just to check wich dates returns 'true' (1) so you can check if the condition works as expected. Btw, I proposed this to use on a table in design, using a table chart, not in script.&lt;/P&gt;
&lt;P&gt;Note that Today() will work if you apply it on the load sentence, wich can use qlik script funcions. If you use the Tody() on the 'SQL WHERE' it will not work.&lt;/P&gt;
&lt;P&gt;With this little info is hard to know why it shows data since july 2021, I will need more script or a sample app to check.&lt;/P&gt;</description>
      <pubDate>Sat, 08 Jan 2022 11:24:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Load-data-from-time-DATE-STARTED-2-weeks-back/m-p/1878701#M72449</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2022-01-08T11:24:42Z</dc:date>
    </item>
    <item>
      <title>Re: Load data from time DATE_STARTED,  2 weeks back.</title>
      <link>https://community.qlik.com/t5/App-Development/Load-data-from-time-DATE-STARTED-2-weeks-back/m-p/1881050#M72597</link>
      <description>&lt;P&gt;Hey &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I don't quite understand this.&lt;BR /&gt;Because in the querery you kindly suggested to me. It looks like this.&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If(&lt;/SPAN&gt;&lt;SPAN&gt;DATE_STARTED &amp;gt;= (today()-14), 1, 0)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;For example: this&amp;nbsp; applied for today&amp;nbsp; (14.01.2022 &amp;gt;= 31.12.2021),1,0)&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;The query now searches for all projects that have been created in this time frame. What does this TRUE refer to? What is also not quite clear to me is why the TRUE is followed by a FALSE in the same parenthesis?&lt;/P&gt;
&lt;P&gt;Thank you&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jan 2022 09:03:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Load-data-from-time-DATE-STARTED-2-weeks-back/m-p/1881050#M72597</guid>
      <dc:creator>Loeckli</dc:creator>
      <dc:date>2022-01-14T09:03:42Z</dc:date>
    </item>
    <item>
      <title>Re: Load data from time DATE_STARTED,  2 weeks back.</title>
      <link>https://community.qlik.com/t5/App-Development/Load-data-from-time-DATE-STARTED-2-weeks-back/m-p/1881418#M72617</link>
      <description>&lt;P&gt;Hi, in your initial post you only give info of that where clause, no more script, and that it wasn't what you want. In the text you said you want data older than 2 weeks, but the condition it's for the last 2 weeks.&lt;/P&gt;
&lt;P&gt;I just telling you to do a test to load all dates, and in design do a table with date as dimension and add the expression so you can test how it reolves to each date, the ates with '1' will be the ones filtered by the Where clasuse. In this table adjust the expression to flag the dates you want to filter, once you have done it in this table and you have an expression that flags the dates you want, just use the same expression in the Where clause.&lt;/P&gt;</description>
      <pubDate>Sun, 16 Jan 2022 08:06:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Load-data-from-time-DATE-STARTED-2-weeks-back/m-p/1881418#M72617</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2022-01-16T08:06:01Z</dc:date>
    </item>
    <item>
      <title>Re: Load data from time DATE_STARTED,  2 weeks back.</title>
      <link>https://community.qlik.com/t5/App-Development/Load-data-from-time-DATE-STARTED-2-weeks-back/m-p/1882803#M72678</link>
      <description>&lt;P&gt;most of the time the error lays in mismatch of formats.&lt;/P&gt;
&lt;P&gt;your code: Where DATE_STARTED &amp;gt;= (today()-14);&lt;/P&gt;
&lt;P&gt;when the field DATE_STARTED is in string (or date) format this will always fail, since (Today()-14) will give you a &lt;STRONG&gt;number&lt;/STRONG&gt; not a date or a string&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;if format ist string: Where DATE_STARTED &amp;gt;= '$(Date(today()-14))'&lt;/LI&gt;
&lt;LI&gt;if format is (qlik)date: Where DATE_STARTED &amp;gt;= Date(today()-14&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;One last thing to keep in mind: your formating in the load (Timestamp([DATE_STARTED] , 'D/M/YYYY') AS [DATE_STARTED]) will happen AFTER the Where condition. So have to check the raw-format of the DATE_STARTED field. So May try load without changig format to see what format Qlik is reading it in&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jan 2022 13:00:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Load-data-from-time-DATE-STARTED-2-weeks-back/m-p/1882803#M72678</guid>
      <dc:creator>chris_djih</dc:creator>
      <dc:date>2022-01-19T13:00:40Z</dc:date>
    </item>
  </channel>
</rss>

