<?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: using calendar weeks and reduce the week by +/- 1 in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/using-calendar-weeks-and-reduce-the-week-by-1/m-p/1286160#M619134</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think it would be easier if you used a Week field or an autonumber(Year &amp;amp; '|' &amp;amp; Week) field for it which are created within the script in a master-calendar which is connected to your makeweekdate() which is really a date in whatever formatting is used for it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 01 Mar 2017 15:16:45 GMT</pubDate>
    <dc:creator>marcus_sommer</dc:creator>
    <dc:date>2017-03-01T15:16:45Z</dc:date>
    <item>
      <title>using calendar weeks and reduce the week by +/- 1</title>
      <link>https://community.qlik.com/t5/QlikView/using-calendar-weeks-and-reduce-the-week-by-1/m-p/1286159#M619133</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;&lt;/P&gt;&lt;P&gt;I am taking data from an Excel, where the date is shown like 201709 (YEAR,WEEK).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I am using a variable to put the date input inside and use the makeweedate() to create a proper date for QlikView&amp;nbsp; (which creates the start date of the corresponding week, e.g. 2/27/2017) and with weekname() I am going "back" to the originally shown presentation, the calendarweek: 2017/09&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;weekname&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;makeweekdate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;((&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;left&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;vL.ActualCalendarWeek&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;,4)), (&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;right&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;vL.ActualCalendarWeek&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;,2)))) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;With this 2017/09, I usually would like to go back to week 8 etc., I thought its possible by deducting -1. BUT than&lt;/SPAN&gt; &lt;SPAN style="font-size: 10pt;"&gt;QV shows 42792, that's 2/2672017. So one day instead of one week deducted.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Anyway is there a easy way to jump to different weeks from this point? I don't want to deduct always -7,-14,-21 days :/.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Thanks for any support. &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Mar 2017 10:19:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/using-calendar-weeks-and-reduce-the-week-by-1/m-p/1286159#M619133</guid>
      <dc:creator>chriys1337</dc:creator>
      <dc:date>2017-03-01T10:19:36Z</dc:date>
    </item>
    <item>
      <title>Re: using calendar weeks and reduce the week by +/- 1</title>
      <link>https://community.qlik.com/t5/QlikView/using-calendar-weeks-and-reduce-the-week-by-1/m-p/1286160#M619134</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think it would be easier if you used a Week field or an autonumber(Year &amp;amp; '|' &amp;amp; Week) field for it which are created within the script in a master-calendar which is connected to your makeweekdate() which is really a date in whatever formatting is used for it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Mar 2017 15:16:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/using-calendar-weeks-and-reduce-the-week-by-1/m-p/1286160#M619134</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2017-03-01T15:16:45Z</dc:date>
    </item>
  </channel>
</rss>

