<?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: Caluculation of weeks with dates in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Caluculation-of-weeks-with-dates/m-p/452683#M168938</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;'Week Of&amp;nbsp; ' &amp;amp;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;&lt;SPAN style="font-size: 8pt; color: #0000ff;"&gt;Date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;((&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; color: #0000ff;"&gt;WeekStart&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; color: #800000;"&gt;K_DATE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)),'MM/DD') &amp;amp;'-'&amp;amp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; color: #0000ff;"&gt;Date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;((&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; color: #0000ff;"&gt;WeekEnd&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; color: #800000;"&gt;K_DATE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&lt;STRONG style="color: #ff0000;"&gt; - 2&lt;/STRONG&gt;),'MM/DD') &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; color: #0000ff;"&gt;AS&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; color: #800000;"&gt;Weekof&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;&lt;SPAN style="font-size: 8pt; color: #800000;"&gt;I used &lt;STRONG&gt;2&lt;/STRONG&gt; here by considering week end date as sunday. For you it is saturday then it will be &lt;STRONG&gt;1&lt;/STRONG&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 07 Jun 2013 21:22:08 GMT</pubDate>
    <dc:creator>CELAMBARASAN</dc:creator>
    <dc:date>2013-06-07T21:22:08Z</dc:date>
    <item>
      <title>Caluculation of weeks with dates</title>
      <link>https://community.qlik.com/t5/QlikView/Caluculation-of-weeks-with-dates/m-p/452680#M168935</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;i have calendar date and for every month and&amp;nbsp; i want to calcualte the weeks ..&lt;/P&gt;&lt;P&gt;for that i used the below expression to&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'Week-'&amp;amp;(1+ &lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;ceil&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;((&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;K_DATE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;-&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;FLOOR&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;WEEKEND&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;MONTHSTART&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;K_DATE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),0,-1)))/7)) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;AS&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Week&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&amp;nbsp; this works fine&amp;nbsp; and show &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Week1, week2 ,week3, week4, week5,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;now the issue i have is instead of week1 i want to show the&amp;nbsp; dates i.e. starting date and end date of that week.. for every particular month...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt; and also i want to exclude weekends ..&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;so i used this &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; 'Week Of&amp;nbsp; ' &amp;amp;&lt;/P&gt;&lt;P&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: #800000; font-size: 8pt;"&gt;K_DATE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)),'MM/DD') &amp;amp;'-'&amp;amp; &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;WeekEnd&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;K_DATE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)),'MM/DD') &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;AS&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Weekof&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&amp;nbsp; this works fine but i in the weekend&amp;nbsp; function i want to calculate the end date of the week&amp;nbsp; say friday..&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;SPAN style="font-size: 8pt;"&gt;Any help would be really Appreciates..&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;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Jun 2013 18:59:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Caluculation-of-weeks-with-dates/m-p/452680#M168935</guid>
      <dc:creator>shree909</dc:creator>
      <dc:date>2013-06-07T18:59:31Z</dc:date>
    </item>
    <item>
      <title>Re: Caluculation of weeks with dates</title>
      <link>https://community.qlik.com/t5/QlikView/Caluculation-of-weeks-with-dates/m-p/452681#M168936</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The trouble is that your weeks are not linked to the dates, like on a table. On an application likes yours i had to create a qvd that contains thats parameters then i just charge the data from qvd and show the way you want.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Jun 2013 20:28:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Caluculation-of-weeks-with-dates/m-p/452681#M168936</guid>
      <dc:creator />
      <dc:date>2013-06-07T20:28:56Z</dc:date>
    </item>
    <item>
      <title>Re: Caluculation of weeks with dates</title>
      <link>https://community.qlik.com/t5/QlikView/Caluculation-of-weeks-with-dates/m-p/452682#M168937</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp; thanks for the reply ,&lt;/P&gt;&lt;P&gt;i have all the dates&amp;nbsp;&amp;nbsp; from that date i want to calcuate year, month , week that works&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;from those dates i want to&amp;nbsp; create a week in suach a way its show the end date and start date of that week instead of&amp;nbsp;&amp;nbsp; week1&amp;nbsp; , wee ( week start date , week end date)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Jun 2013 20:38:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Caluculation-of-weeks-with-dates/m-p/452682#M168937</guid>
      <dc:creator>shree909</dc:creator>
      <dc:date>2013-06-07T20:38:26Z</dc:date>
    </item>
    <item>
      <title>Re: Caluculation of weeks with dates</title>
      <link>https://community.qlik.com/t5/QlikView/Caluculation-of-weeks-with-dates/m-p/452683#M168938</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;'Week Of&amp;nbsp; ' &amp;amp;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;&lt;SPAN style="font-size: 8pt; color: #0000ff;"&gt;Date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;((&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; color: #0000ff;"&gt;WeekStart&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; color: #800000;"&gt;K_DATE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)),'MM/DD') &amp;amp;'-'&amp;amp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; color: #0000ff;"&gt;Date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;((&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; color: #0000ff;"&gt;WeekEnd&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; color: #800000;"&gt;K_DATE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&lt;STRONG style="color: #ff0000;"&gt; - 2&lt;/STRONG&gt;),'MM/DD') &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; color: #0000ff;"&gt;AS&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; color: #800000;"&gt;Weekof&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;&lt;SPAN style="font-size: 8pt; color: #800000;"&gt;I used &lt;STRONG&gt;2&lt;/STRONG&gt; here by considering week end date as sunday. For you it is saturday then it will be &lt;STRONG&gt;1&lt;/STRONG&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Jun 2013 21:22:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Caluculation-of-weeks-with-dates/m-p/452683#M168938</guid>
      <dc:creator>CELAMBARASAN</dc:creator>
      <dc:date>2013-06-07T21:22:08Z</dc:date>
    </item>
  </channel>
</rss>

