<?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: Week selection with different week start date in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Week-selection-with-different-week-start-date/m-p/710424#M1075339</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You may try this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&amp;gt;=date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;((&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;WeekStart&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;today&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(),-13)-2),'DD/MM/YYYY')&amp;nbsp;&amp;nbsp; &amp;lt;= &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;WeekStart&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;today&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;())-3,'DD/MM/YYYY')&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 Aug 2014 05:33:47 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-08-05T05:33:47Z</dc:date>
    <item>
      <title>Week selection with different week start date</title>
      <link>https://community.qlik.com/t5/QlikView/Week-selection-with-different-week-start-date/m-p/710420#M1075334</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;I needed my week to start on a Saturday and end on a Friday.&amp;nbsp; Meaning wk31 for me would start on Saturday 26/07/14 and end on Friday 01/08/14.&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;To achieve this I have created a listbox with the below expression instead of a field.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;SPAN style="color: #0000ff;"&gt;=week&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;WeekStart&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;Date&lt;/SPAN&gt;,0,-2))+1 &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Not sure if this was the proper way of doing it but it seems to work.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Now I need to create a button which when pressed select the last 12 weeks according to my week format starting on Saturdays and ending Friday's.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;I tried the below but this is creating a rolling range day by day.&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;='&amp;gt;=$(=date(today()-84))' &amp;amp; '&amp;lt;$(=date(today()))' &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;I need the range to start from Saturday of 13 weeks ago and end always Friday of last week.&amp;nbsp; Anyone can help me get this please?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Aug 2014 16:45:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Week-selection-with-different-week-start-date/m-p/710420#M1075334</guid>
      <dc:creator />
      <dc:date>2014-08-04T16:45:45Z</dc:date>
    </item>
    <item>
      <title>Re: Week selection with different week start date</title>
      <link>https://community.qlik.com/t5/QlikView/Week-selection-with-different-week-start-date/m-p/710421#M1075335</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alex,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In a similar case, I used a new field added to the master calendar in the load script. For each possible date, sorted in ascending order, I added a week personnel identifier value which is incremented for each starting day of week found (Saturday).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The new field can be selected from a button which selects date as possible values ​​of the period of week (Saturday-Friday) or weeks required. The attachment shows an example.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Aug 2014 22:13:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Week-selection-with-different-week-start-date/m-p/710421#M1075335</guid>
      <dc:creator>ssanchez</dc:creator>
      <dc:date>2014-08-04T22:13:24Z</dc:date>
    </item>
    <item>
      <title>Re: Week selection with different week start date</title>
      <link>https://community.qlik.com/t5/QlikView/Week-selection-with-different-week-start-date/m-p/710422#M1075337</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To arrive at the week start date (of Saturday-to-Friday week) for any Date, use the following expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Date(WeekStart(Date+2)-2)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Aug 2014 23:16:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Week-selection-with-different-week-start-date/m-p/710422#M1075337</guid>
      <dc:creator>nagaiank</dc:creator>
      <dc:date>2014-08-04T23:16:12Z</dc:date>
    </item>
    <item>
      <title>Re: Week selection with different week start date</title>
      <link>https://community.qlik.com/t5/QlikView/Week-selection-with-different-week-start-date/m-p/710423#M1075338</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try below &lt;/P&gt;&lt;P&gt; If(WeekDay(Date) &amp;gt;= 5, Week(Date) +1, Week(Date)) AS NewWeek,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;AHFAQ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Aug 2014 05:27:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Week-selection-with-different-week-start-date/m-p/710423#M1075338</guid>
      <dc:creator>ashfaq_haseeb</dc:creator>
      <dc:date>2014-08-05T05:27:18Z</dc:date>
    </item>
    <item>
      <title>Re: Week selection with different week start date</title>
      <link>https://community.qlik.com/t5/QlikView/Week-selection-with-different-week-start-date/m-p/710424#M1075339</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You may try this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&amp;gt;=date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;((&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;WeekStart&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;today&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(),-13)-2),'DD/MM/YYYY')&amp;nbsp;&amp;nbsp; &amp;lt;= &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;WeekStart&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;today&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;())-3,'DD/MM/YYYY')&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Aug 2014 05:33:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Week-selection-with-different-week-start-date/m-p/710424#M1075339</guid>
      <dc:creator />
      <dc:date>2014-08-05T05:33:47Z</dc:date>
    </item>
  </channel>
</rss>

