<?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: Relative calendar field: WeeksAgo in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Relative-calendar-field-WeeksAgo/m-p/500059#M1125563</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I found the answer somewhere&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(WeekStart(Today()) - WeekStart(TempDate))/7 as WeeksAgo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 13 Jan 2014 10:27:02 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-01-13T10:27:02Z</dc:date>
    <item>
      <title>Relative calendar field: WeeksAgo</title>
      <link>https://community.qlik.com/t5/QlikView/Relative-calendar-field-WeeksAgo/m-p/500058#M1125562</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, i'm very new to Qliview and am trying to set up some relative calendar dates in my Master Calendar. I found these statements on one of the design blogs and they're very useful.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;Today&lt;/SPAN&gt;() - &lt;SPAN style="color: #800000;"&gt;Date &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;as &lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;DaysAgo&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;12*(&lt;SPAN style="color: #0000ff;"&gt;Year&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;Today&lt;/SPAN&gt;())-&lt;SPAN style="color: #0000ff;"&gt;Year&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;Date&lt;/SPAN&gt;)) + &lt;SPAN style="color: #0000ff;"&gt;Month&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;Today&lt;/SPAN&gt;()) - &lt;SPAN style="color: #0000ff;"&gt;Month&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;Date&lt;/SPAN&gt;) &lt;SPAN style="color: #0000ff;"&gt;as &lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;MonthsAgo&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, I really need one for WeeksAgo as well&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My best guess was&lt;/P&gt;&lt;P&gt;52*(Week(Today())-Week(TempDate)) + Week(Today()) - Week(TempDate) as WeeksAgo&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but this doesn't seem to work. What am I doing wrong?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jan 2014 09:54:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Relative-calendar-field-WeeksAgo/m-p/500058#M1125562</guid>
      <dc:creator />
      <dc:date>2014-01-13T09:54:50Z</dc:date>
    </item>
    <item>
      <title>Re: Relative calendar field: WeeksAgo</title>
      <link>https://community.qlik.com/t5/QlikView/Relative-calendar-field-WeeksAgo/m-p/500059#M1125563</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I found the answer somewhere&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(WeekStart(Today()) - WeekStart(TempDate))/7 as WeeksAgo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jan 2014 10:27:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Relative-calendar-field-WeeksAgo/m-p/500059#M1125563</guid>
      <dc:creator />
      <dc:date>2014-01-13T10:27:02Z</dc:date>
    </item>
  </channel>
</rss>

