<?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 Get yesterday date Let ExecutionTime = date(now()-1); in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Get-yesterday-date-Let-ExecutionTime-date-now-1/m-p/149221#M27419</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all.&lt;/P&gt;&lt;P&gt;I've tried but i think we have to initiate yesterdays day before i loading the SQL script?&lt;BR /&gt;&lt;BR /&gt;First in my script:&lt;/P&gt;&lt;P&gt;Let ExecutionTime = date(today()-1)&lt;BR /&gt;&lt;BR /&gt;Then my SQL:&lt;BR /&gt;Select bla, bla from table where date = '$(ExecutionTime )';&lt;BR /&gt;When the sript reload tomorrow i have today's date in variable ExecutionTime&lt;IMG alt="Sad" src="http://community.qlik.com/emoticons/emotion-6.gif" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 13 Jul 2009 19:14:32 GMT</pubDate>
    <dc:creator>johnan</dc:creator>
    <dc:date>2009-07-13T19:14:32Z</dc:date>
    <item>
      <title>Get yesterday date Let ExecutionTime = date(now()-1);</title>
      <link>https://community.qlik.com/t5/QlikView/Get-yesterday-date-Let-ExecutionTime-date-now-1/m-p/149218#M27416</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all.&lt;/P&gt;&lt;P&gt;How can i get yesterdays date in my SQL (AS400)&lt;/P&gt;&lt;P&gt;In my app i have:&lt;/P&gt;&lt;P&gt;Let ExecutionTime = date(now()-1);&lt;BR /&gt;But i'ts doesent work, i have to load the app 2 times to get yesterdays date.&lt;/P&gt;&lt;P&gt;Mayby a Macro can work? Before loading?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jul 2009 18:51:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-yesterday-date-Let-ExecutionTime-date-now-1/m-p/149218#M27416</guid>
      <dc:creator>johnan</dc:creator>
      <dc:date>2009-07-13T18:51:47Z</dc:date>
    </item>
    <item>
      <title>Get yesterday date Let ExecutionTime = date(now()-1);</title>
      <link>https://community.qlik.com/t5/QlikView/Get-yesterday-date-Let-ExecutionTime-date-now-1/m-p/149219#M27417</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Now function will give you Timestamp also, so make sure you are picking up the date part of it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jul 2009 18:56:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-yesterday-date-Let-ExecutionTime-date-now-1/m-p/149219#M27417</guid>
      <dc:creator />
      <dc:date>2009-07-13T18:56:15Z</dc:date>
    </item>
    <item>
      <title>Get yesterday date Let ExecutionTime = date(now()-1);</title>
      <link>https://community.qlik.com/t5/QlikView/Get-yesterday-date-Let-ExecutionTime-date-now-1/m-p/149220#M27418</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Use the Today() function instead of Now(). Today() doesn't have any time portion so there should be no confusion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stephen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jul 2009 19:02:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-yesterday-date-Let-ExecutionTime-date-now-1/m-p/149220#M27418</guid>
      <dc:creator>stephencredmond</dc:creator>
      <dc:date>2009-07-13T19:02:22Z</dc:date>
    </item>
    <item>
      <title>Get yesterday date Let ExecutionTime = date(now()-1);</title>
      <link>https://community.qlik.com/t5/QlikView/Get-yesterday-date-Let-ExecutionTime-date-now-1/m-p/149221#M27419</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all.&lt;/P&gt;&lt;P&gt;I've tried but i think we have to initiate yesterdays day before i loading the SQL script?&lt;BR /&gt;&lt;BR /&gt;First in my script:&lt;/P&gt;&lt;P&gt;Let ExecutionTime = date(today()-1)&lt;BR /&gt;&lt;BR /&gt;Then my SQL:&lt;BR /&gt;Select bla, bla from table where date = '$(ExecutionTime )';&lt;BR /&gt;When the sript reload tomorrow i have today's date in variable ExecutionTime&lt;IMG alt="Sad" src="http://community.qlik.com/emoticons/emotion-6.gif" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jul 2009 19:14:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-yesterday-date-Let-ExecutionTime-date-now-1/m-p/149221#M27419</guid>
      <dc:creator>johnan</dc:creator>
      <dc:date>2009-07-13T19:14:32Z</dc:date>
    </item>
    <item>
      <title>Get yesterday date Let ExecutionTime = date(now()-1);</title>
      <link>https://community.qlik.com/t5/QlikView/Get-yesterday-date-Let-ExecutionTime-date-now-1/m-p/149222#M27420</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I apologize in advance..I might sound like an idiot here but when you say that tomorrow it will have today's date, isn't that correct? Or it it one off all the time?&lt;/P&gt;&lt;P&gt;In that case I would suggest checking the system clock/calendar settings. Sounds like you would get the "correct" result with today()-2 but there has to be an underlying reason for why it picks the wrong date for you from the get go.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jul 2009 21:51:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-yesterday-date-Let-ExecutionTime-date-now-1/m-p/149222#M27420</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-07-13T21:51:25Z</dc:date>
    </item>
    <item>
      <title>Get yesterday date Let ExecutionTime = date(now()-1);</title>
      <link>https://community.qlik.com/t5/QlikView/Get-yesterday-date-Let-ExecutionTime-date-now-1/m-p/149223#M27421</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;It's the point to show yesterdays numbers in my report when you viewing the report today. I'll have to reload the qv evrey morning at six.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jul 2009 22:39:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-yesterday-date-Let-ExecutionTime-date-now-1/m-p/149223#M27421</guid>
      <dc:creator>johnan</dc:creator>
      <dc:date>2009-07-13T22:39:46Z</dc:date>
    </item>
    <item>
      <title>Get yesterday date Let ExecutionTime = date(now()-1);</title>
      <link>https://community.qlik.com/t5/QlikView/Get-yesterday-date-Let-ExecutionTime-date-now-1/m-p/149224#M27422</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I suggest always using an explicit parameter like today(1) and now(1). The defaults are different between the two functions, and the behavior is different between script and chart usage (and release 7 to releae 8 as well).&lt;/P&gt;&lt;P&gt;Try today(1)-1;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jul 2009 00:22:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-yesterday-date-Let-ExecutionTime-date-now-1/m-p/149224#M27422</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2009-07-14T00:22:59Z</dc:date>
    </item>
  </channel>
</rss>

