<?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 Getting application to default to current date when you load in future data in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Getting-application-to-default-to-current-date-when-you-load-in/m-p/270705#M1203386</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;oh this sounds like it might work. What do i need to type into the search string to let it know it needs to subtract a day is it ReloadTime(-1)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 Aug 2010 11:30:49 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-08-11T11:30:49Z</dc:date>
    <item>
      <title>Getting application to default to current date when you load in future data</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-application-to-default-to-current-date-when-you-load-in/m-p/270700#M1203381</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We have build an application where we load in forecast data, so we have data till end of Dec 10. I would like to set the pages to default to the most recent actual data date so for today it would be 11th August. Any suggestions on how we do this? When we use Max date it gives us 31st Dec&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Aug 2010 10:32:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-application-to-default-to-current-date-when-you-load-in/m-p/270700#M1203381</guid>
      <dc:creator />
      <dc:date>2010-08-11T10:32:36Z</dc:date>
    </item>
    <item>
      <title>Getting application to default to current date when you load in future data</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-application-to-default-to-current-date-when-you-load-in/m-p/270701#M1203382</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;=Today()?&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Aug 2010 10:36:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-application-to-default-to-current-date-when-you-load-in/m-p/270701#M1203382</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2010-08-11T10:36:47Z</dc:date>
    </item>
    <item>
      <title>Getting application to default to current date when you load in future data</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-application-to-default-to-current-date-when-you-load-in/m-p/270702#M1203383</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We have tried this and it gives us a date in December, which doesn't make much sense as we don't have actual data&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Aug 2010 10:52:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-application-to-default-to-current-date-when-you-load-in/m-p/270702#M1203383</guid>
      <dc:creator />
      <dc:date>2010-08-11T10:52:54Z</dc:date>
    </item>
    <item>
      <title>Getting application to default to current date when you load in future data</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-application-to-default-to-current-date-when-you-load-in/m-p/270703#M1203384</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Assuming that you have last day's data whenever reloaded, can you use 'ReloadTime()' and subtract one day from it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Aug 2010 10:57:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-application-to-default-to-current-date-when-you-load-in/m-p/270703#M1203384</guid>
      <dc:creator />
      <dc:date>2010-08-11T10:57:16Z</dc:date>
    </item>
    <item>
      <title>Getting application to default to current date when you load in future data</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-application-to-default-to-current-date-when-you-load-in/m-p/270704#M1203385</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I do it this way:&lt;/P&gt;&lt;P&gt;1. At end of scripts, when all data has been loaded...&lt;/P&gt;&lt;P&gt;// Calculate Last Transaction date&lt;BR /&gt;LastTransDateTemp:&lt;BR /&gt;load distinct&lt;BR /&gt; max(TranDate,1) as LastTranDate&lt;BR /&gt;resident TransactionLines;&lt;/P&gt;&lt;P&gt;let vLastTransactionDate = date(peek('LastTranDate',-1,'LastTransDateTemp'));&lt;/P&gt;&lt;P&gt;drop table LastTransDateTemp;&lt;/P&gt;&lt;P&gt;2. Then I created a macro&lt;/P&gt;&lt;P&gt;sub StartSelection&lt;BR /&gt; LatestTranDate = ActiveDocument.Variables("vLastTransactionDate").GetContent.string&lt;BR /&gt; ActiveDocument.Fields("Year").Select Year(LatestTranDate)&lt;BR /&gt; ActiveDocument.Fields("Month").Select left(MonthName(Month(LatestTranDate)),3)&lt;BR /&gt; ActiveDocument.Fields("Day").Select Day(LatestTranDate)&lt;BR /&gt;end sub&lt;/P&gt;&lt;P&gt;3. Then in the Macro tab of the Dicument Properties, Document Event Triggers highlight 'OnOpen' and select the StartSelections macro&lt;/P&gt;&lt;P&gt;Note that, for my purposes, I seperate the Year, Month and Day fields. Each time I open the QlikView document it selects transactions for the latest Year, Month and Day of the available transactions&lt;/P&gt;&lt;P&gt;Hope this gives you some idea.&lt;/P&gt;&lt;P&gt;Raisin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Aug 2010 11:28:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-application-to-default-to-current-date-when-you-load-in/m-p/270704#M1203385</guid>
      <dc:creator />
      <dc:date>2010-08-11T11:28:38Z</dc:date>
    </item>
    <item>
      <title>Getting application to default to current date when you load in future data</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-application-to-default-to-current-date-when-you-load-in/m-p/270705#M1203386</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;oh this sounds like it might work. What do i need to type into the search string to let it know it needs to subtract a day is it ReloadTime(-1)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Aug 2010 11:30:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-application-to-default-to-current-date-when-you-load-in/m-p/270705#M1203386</guid>
      <dc:creator />
      <dc:date>2010-08-11T11:30:49Z</dc:date>
    </item>
    <item>
      <title>Getting application to default to current date when you load in future data</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-application-to-default-to-current-date-when-you-load-in/m-p/270706#M1203387</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;date(ReloadTime()-1,'MM/DD/YYYY')&lt;/P&gt;&lt;P&gt;This will give you the last day's date.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Aug 2010 11:34:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-application-to-default-to-current-date-when-you-load-in/m-p/270706#M1203387</guid>
      <dc:creator />
      <dc:date>2010-08-11T11:34:05Z</dc:date>
    </item>
    <item>
      <title>Getting application to default to current date when you load in future data</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-application-to-default-to-current-date-when-you-load-in/m-p/270707#M1203388</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You don't need to since it uses the date of the latest transaction&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Aug 2010 11:36:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-application-to-default-to-current-date-when-you-load-in/m-p/270707#M1203388</guid>
      <dc:creator />
      <dc:date>2010-08-11T11:36:55Z</dc:date>
    </item>
  </channel>
</rss>

