<?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 Date Offset in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Date-Offset/m-p/376618#M140413</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am loading dates from a qvd file and am looking to create a date offset. in other words, if "[Real Date]" is 8/6/2012, i want [Offset Date] to be three days before [Real Date]. i have tried date(only([Real Date])-3) but that will always give me 3 calendar days before (8/3/2012 in my example). i am looking to show only 3 [Real Date]'s ago, to account for weekends and days not othewise loaded as [Real Dates]. a better example might be [Real Date]=7/5/2012. my current expression will give me 7/2/2012, however, due to a weekend and no activity on 7/4, the day i am looking for is 6/29/2012. &lt;SPAN style=": ; color: #0000ff; font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 09 Aug 2012 13:36:39 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-08-09T13:36:39Z</dc:date>
    <item>
      <title>Date Offset</title>
      <link>https://community.qlik.com/t5/QlikView/Date-Offset/m-p/376618#M140413</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am loading dates from a qvd file and am looking to create a date offset. in other words, if "[Real Date]" is 8/6/2012, i want [Offset Date] to be three days before [Real Date]. i have tried date(only([Real Date])-3) but that will always give me 3 calendar days before (8/3/2012 in my example). i am looking to show only 3 [Real Date]'s ago, to account for weekends and days not othewise loaded as [Real Dates]. a better example might be [Real Date]=7/5/2012. my current expression will give me 7/2/2012, however, due to a weekend and no activity on 7/4, the day i am looking for is 6/29/2012. &lt;SPAN style=": ; color: #0000ff; font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Aug 2012 13:36:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-Offset/m-p/376618#M140413</guid>
      <dc:creator />
      <dc:date>2012-08-09T13:36:39Z</dc:date>
    </item>
    <item>
      <title>Re: Date Offset</title>
      <link>https://community.qlik.com/t5/QlikView/Date-Offset/m-p/376619#M140414</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could use Peek function to achieve that assuming that not real dates are not in your database.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Aug 2012 13:40:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-Offset/m-p/376619#M140414</guid>
      <dc:creator>giakoum</dc:creator>
      <dc:date>2012-08-09T13:40:55Z</dc:date>
    </item>
    <item>
      <title>Re: Date Offset</title>
      <link>https://community.qlik.com/t5/QlikView/Date-Offset/m-p/376620#M140415</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Ioannis. so would my script look something like &lt;/P&gt;&lt;P&gt;date(peek([Real Date])-3 as [Offset Date]?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Aug 2012 13:52:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-Offset/m-p/376620#M140415</guid>
      <dc:creator />
      <dc:date>2012-08-09T13:52:30Z</dc:date>
    </item>
    <item>
      <title>Re: Date Offset</title>
      <link>https://community.qlik.com/t5/QlikView/Date-Offset/m-p/376621#M140416</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Peek(&lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #eef4f9;"&gt;[Real Date]&lt;/SPAN&gt;, RowNo()-4) as &lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #eef4f9;"&gt; [Offset Date]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #eef4f9;"&gt;Just be careful with the edges, where no value is there 3 rows before.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Aug 2012 14:05:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-Offset/m-p/376621#M140416</guid>
      <dc:creator>giakoum</dc:creator>
      <dc:date>2012-08-09T14:05:26Z</dc:date>
    </item>
    <item>
      <title>Re: Date Offset</title>
      <link>https://community.qlik.com/t5/QlikView/Date-Offset/m-p/376622#M140417</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Great. thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Aug 2012 14:11:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-Offset/m-p/376622#M140417</guid>
      <dc:creator />
      <dc:date>2012-08-09T14:11:09Z</dc:date>
    </item>
  </channel>
</rss>

