<?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: Weeks in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Weeks/m-p/1007701#M652291</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is a good discussion of Week Numbers and the complexity of the issues this raises here.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/3545"&gt;Redefining the Week Numbers&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 Aug 2015 10:31:55 GMT</pubDate>
    <dc:creator>Colin-Albert</dc:creator>
    <dc:date>2015-08-27T10:31:55Z</dc:date>
    <item>
      <title>Weeks</title>
      <link>https://community.qlik.com/t5/QlikView/Weeks/m-p/1007698#M652287</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;H iii,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have Data for Two Months July 2015 and august 2015.&lt;/P&gt;&lt;P&gt;specific data (1 July to 22 august).&lt;/P&gt;&lt;P&gt;i created&amp;nbsp; Weeks Field Representing week 1,week 2.....&amp;nbsp;&amp;nbsp; against every date.&lt;/P&gt;&lt;P&gt;but since august 1st week consist of two days only Saturday and Sunday.&lt;/P&gt;&lt;P&gt;the week number(week 1 ,week 2) is placed for whole week starting from Monday to Sunday which takes 5 days of july and 2 days of august.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my requirement is to make last week of July from Monday to Thursday and first week of august consisting of&amp;nbsp; Saturday and Sunday.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please suggest some method!!!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Aug 2015 08:41:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Weeks/m-p/1007698#M652287</guid>
      <dc:creator />
      <dc:date>2015-08-27T08:41:02Z</dc:date>
    </item>
    <item>
      <title>Re: Weeks</title>
      <link>https://community.qlik.com/t5/QlikView/Weeks/m-p/1007699#M652288</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, this is the functionality of Week().&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As per my understanding, you need to hard code it at script level or UI level..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If(Date&amp;gt;1st of month and Date&amp;lt;=7th of month, Week1,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;If(Date&amp;gt;7th of month and Date&amp;lt;=14th of month, week2,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;like this.......&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Aug 2015 10:09:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Weeks/m-p/1007699#M652288</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-08-27T10:09:25Z</dc:date>
    </item>
    <item>
      <title>Re: Weeks</title>
      <link>https://community.qlik.com/t5/QlikView/Weeks/m-p/1007700#M652289</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;week 1,week 2 ..... have been created by me .&lt;/P&gt;&lt;P&gt;but i want the restriction that if week has got 4 days in it then it should end at that day only and next week should be there for rest days of&amp;nbsp; week.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Aug 2015 10:29:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Weeks/m-p/1007700#M652289</guid>
      <dc:creator />
      <dc:date>2015-08-27T10:29:03Z</dc:date>
    </item>
    <item>
      <title>Re: Weeks</title>
      <link>https://community.qlik.com/t5/QlikView/Weeks/m-p/1007701#M652291</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is a good discussion of Week Numbers and the complexity of the issues this raises here.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/3545"&gt;Redefining the Week Numbers&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Aug 2015 10:31:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Weeks/m-p/1007701#M652291</guid>
      <dc:creator>Colin-Albert</dc:creator>
      <dc:date>2015-08-27T10:31:55Z</dc:date>
    </item>
    <item>
      <title>Re: Weeks</title>
      <link>https://community.qlik.com/t5/QlikView/Weeks/m-p/1007702#M652292</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sounds like you need to create another inline dimension for date with a flag field 0 and 1 with 1 being start of the consecutive week.manually pickout all dates say in the next 2 years ? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Aug 2015 10:33:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Weeks/m-p/1007702#M652292</guid>
      <dc:creator />
      <dc:date>2015-08-27T10:33:41Z</dc:date>
    </item>
    <item>
      <title>Re: Weeks</title>
      <link>https://community.qlik.com/t5/QlikView/Weeks/m-p/1007703#M652293</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Autonumber(WeekName(yourdate), MonthName(yourdate))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Aug 2015 10:38:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Weeks/m-p/1007703#M652293</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2015-08-27T10:38:37Z</dc:date>
    </item>
    <item>
      <title>Re: Weeks</title>
      <link>https://community.qlik.com/t5/QlikView/Weeks/m-p/1007704#M652294</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;If(Date&amp;gt;1st of month and Date&amp;lt;=7th of month, Week1,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333330154419px; font-family: inherit;"&gt;If(Date&amp;gt;7th of month and Date&amp;lt;=14th of month, week2,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;If(Date&amp;gt;14th of month and Date&amp;lt;=21st of month, Week3,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333330154419px; font-family: inherit;"&gt;If(Date&amp;gt;21st of month and Date&amp;lt;=28th of month, week4,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-style: inherit; font-size: 13.3333330154419px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-weight: inherit;"&gt;If(Date&amp;gt;28st of month and Date&amp;lt;=31st of month, week5&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-style: inherit; font-size: 13.3333330154419px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-weight: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-style: inherit; font-size: 13.3333330154419px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-weight: inherit;"&gt;This is hard coded, it wud repeat for every month from week1 - week5&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Aug 2015 10:41:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Weeks/m-p/1007704#M652294</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-08-27T10:41:12Z</dc:date>
    </item>
    <item>
      <title>Re: Weeks</title>
      <link>https://community.qlik.com/t5/QlikView/Weeks/m-p/1007705#M652295</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My suggestion is to make use of the following key, instead of week1, week2, ... as week identifier, since its order is compatible with the chronological order as well as it enables distinguishing two different weeks whenever a week is between two consecutive months: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;100 * Week(DateField) + Num(Month(DateField))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The first two digits represent the week number and the last two digits denote the month.&lt;/P&gt;&lt;P&gt;Thus, for example, the last week of July is splitted into two weeks for your data: the week 3107 for the days of July and the week 3108 for the days of August, the second week of August will be 3208, and so on an so forth. &lt;/P&gt;&lt;P&gt;I hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Aug 2015 11:02:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Weeks/m-p/1007705#M652295</guid>
      <dc:creator>jldengra</dc:creator>
      <dc:date>2015-08-27T11:02:40Z</dc:date>
    </item>
    <item>
      <title>Re: Weeks</title>
      <link>https://community.qlik.com/t5/QlikView/Weeks/m-p/1007706#M652297</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_178116_Pic1.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/97390_QlikCommunity_Thread_178116_Pic1.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_1440973598552752 jive_text_macro" jivemacro_uid="_1440973598552752"&gt;
&lt;P&gt;tabCalendar: &lt;/P&gt;
&lt;P&gt;LOAD *, &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Day(Date) as Day, &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; WeekDay(Date) as WeekDay, &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Week(Date) as Week, &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; WeekName(Date) as WeekName, &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Month(Date) as Month, &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; MonthName(Date) as MonthName, &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dual('Q'&amp;amp;Ceil(Month(Date)/3),Ceil(Month(Date)/3)) as Quarter, &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; QuarterName(Date) as QuarterName, &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Year(Date) as Year, &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; WeekYear(Date) as WeekYear,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Autonumber(WeekName(Date), MonthName(Date)) as WeekNumber;&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;LOAD Date(MinDate+IterNo()-1) as Date &lt;/P&gt;
&lt;P&gt;While MinDate+IterNo()-1 &amp;lt;= Today(); &lt;/P&gt;
&lt;P&gt;LOAD MakeDate(2014) as MinDate &lt;/P&gt;
&lt;P&gt;AutoGenerate 1;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 30 Aug 2015 22:29:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Weeks/m-p/1007706#M652297</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2015-08-30T22:29:02Z</dc:date>
    </item>
  </channel>
</rss>

