<?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: Want to create Week Bucket Dimension in the script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Want-to-create-Week-Bucket-Dimension-in-the-script/m-p/916244#M651596</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;or this if you need &amp;amp; between them:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;If(Even(Week), YearWeek &amp;amp; '&amp;amp;' &amp;amp; YearWeek + 1, YearWeek - 1 &amp;amp;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt; '&amp;amp;' &amp;amp;&lt;/STRONG&gt; YearWeek) as NewColumn&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 07 Aug 2015 19:12:46 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2015-08-07T19:12:46Z</dc:date>
    <item>
      <title>Want to create Week Bucket Dimension in the script</title>
      <link>https://community.qlik.com/t5/QlikView/Want-to-create-Week-Bucket-Dimension-in-the-script/m-p/916240#M651592</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My requirement is little strange but you need your help. I have snapshot date column, YearWeek column, Now i need to create a column which is the combination of two weeks. For example if my first week in 2014 starts from aug-17-2014 (sunday ) to aug-24-2015 (sunday) and the week number is 201434. Now i wanted&amp;nbsp; a new column which will include two weeks start date is aug-17-2014 to aug-31-2014 and the value in the column should look like this 201434&amp;amp;201435... see the attached QVW with all the dates...and attached excel sheet with some sample data how the output should look like..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Aug 2015 19:04:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Want-to-create-Week-Bucket-Dimension-in-the-script/m-p/916240#M651592</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-08-07T19:04:44Z</dc:date>
    </item>
    <item>
      <title>Re: Want to create Week Bucket Dimension in the script</title>
      <link>https://community.qlik.com/t5/QlikView/Want-to-create-Week-Bucket-Dimension-in-the-script/m-p/916241#M651593</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-users/120618"&gt;MRKachhiaIMP&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;@&lt;SPAN style="color: #3d3d3d; font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; margin: 5px 0 0;"&gt;Massimo Grossi&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Aug 2015 19:07:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Want-to-create-Week-Bucket-Dimension-in-the-script/m-p/916241#M651593</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-08-07T19:07:56Z</dc:date>
    </item>
    <item>
      <title>Re: Want to create Week Bucket Dimension in the script</title>
      <link>https://community.qlik.com/t5/QlikView/Want-to-create-Week-Bucket-Dimension-in-the-script/m-p/916242#M651594</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure if I understand Vinay, but can't you just do this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(Even(Week), YearWeek &amp;amp; YearWeek + 1, YearWeek - 1 &amp;amp; YearWeek) as NewColumn&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Aug 2015 19:08:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Want-to-create-Week-Bucket-Dimension-in-the-script/m-p/916242#M651594</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-08-07T19:08:24Z</dc:date>
    </item>
    <item>
      <title>Re: Want to create Week Bucket Dimension in the script</title>
      <link>https://community.qlik.com/t5/QlikView/Want-to-create-Week-Bucket-Dimension-in-the-script/m-p/916243#M651595</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sunny That does not work , what i wanted to is i want to group two weeks at a time as new dimension..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Aug 2015 19:12:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Want-to-create-Week-Bucket-Dimension-in-the-script/m-p/916243#M651595</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-08-07T19:12:10Z</dc:date>
    </item>
    <item>
      <title>Re: Want to create Week Bucket Dimension in the script</title>
      <link>https://community.qlik.com/t5/QlikView/Want-to-create-Week-Bucket-Dimension-in-the-script/m-p/916244#M651596</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;or this if you need &amp;amp; between them:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;If(Even(Week), YearWeek &amp;amp; '&amp;amp;' &amp;amp; YearWeek + 1, YearWeek - 1 &amp;amp;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt; '&amp;amp;' &amp;amp;&lt;/STRONG&gt; YearWeek) as NewColumn&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Aug 2015 19:12:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Want-to-create-Week-Bucket-Dimension-in-the-script/m-p/916244#M651596</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-08-07T19:12:46Z</dc:date>
    </item>
    <item>
      <title>Re: Want to create Week Bucket Dimension in the script</title>
      <link>https://community.qlik.com/t5/QlikView/Want-to-create-Week-Bucket-Dimension-in-the-script/m-p/916245#M651597</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;remember for one week means you will include 7 days, 1 month means 30 or 31 days.. now i want to create a new dimension with two week numbers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Aug 2015 19:15:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Want-to-create-Week-Bucket-Dimension-in-the-script/m-p/916245#M651597</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-08-07T19:15:11Z</dc:date>
    </item>
    <item>
      <title>Re: Want to create Week Bucket Dimension in the script</title>
      <link>https://community.qlik.com/t5/QlikView/Want-to-create-Week-Bucket-Dimension-in-the-script/m-p/916246#M651598</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;any help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Aug 2015 19:22:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Want-to-create-Week-Bucket-Dimension-in-the-script/m-p/916246#M651598</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-08-07T19:22:36Z</dc:date>
    </item>
    <item>
      <title>Re: Want to create Week Bucket Dimension in the script</title>
      <link>https://community.qlik.com/t5/QlikView/Want-to-create-Week-Bucket-Dimension-in-the-script/m-p/916247#M651599</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Vinay isn't this what you want???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/95414_Capture.PNG" style="max-width: 620px; height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD DayOfYear, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SnapShotDate, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Week, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Year, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; YearWeek,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(Even(Week) = -1, YearWeek &amp;amp; '&amp;amp;' &amp;amp; (YearWeek + 1), YearWeek - 1 &amp;amp; '&amp;amp;' &amp;amp; YearWeek) as NewColumn&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FROM&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;[week bucket output.xls]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(biff, embedded labels, table is Sheet1$);&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Aug 2015 19:25:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Want-to-create-Week-Bucket-Dimension-in-the-script/m-p/916247#M651599</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-08-07T19:25:16Z</dc:date>
    </item>
    <item>
      <title>Re: Want to create Week Bucket Dimension in the script</title>
      <link>https://community.qlik.com/t5/QlikView/Want-to-create-Week-Bucket-Dimension-in-the-script/m-p/916248#M651600</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Wow amazing ...In the similar manner can we create 3 more columns with 3 week , 4 week and 5 week buckets respectively..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Aug 2015 19:34:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Want-to-create-Week-Bucket-Dimension-in-the-script/m-p/916248#M651600</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-08-07T19:34:58Z</dc:date>
    </item>
    <item>
      <title>Re: Want to create Week Bucket Dimension in the script</title>
      <link>https://community.qlik.com/t5/QlikView/Want-to-create-Week-Bucket-Dimension-in-the-script/m-p/916249#M651601</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think it can be done. Just need to know how they will be grouped?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my current logic for 2 weeks was if week is even week then week &amp;amp; week + 1, but if its odd week then week-1 and week.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What are the logic for other combinations?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Aug 2015 19:37:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Want-to-create-Week-Bucket-Dimension-in-the-script/m-p/916249#M651601</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-08-07T19:37:25Z</dc:date>
    </item>
    <item>
      <title>Re: Want to create Week Bucket Dimension in the script</title>
      <link>https://community.qlik.com/t5/QlikView/Want-to-create-Week-Bucket-Dimension-in-the-script/m-p/916250#M651602</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please see the output how it should look like&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Aug 2015 19:42:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Want-to-create-Week-Bucket-Dimension-in-the-script/m-p/916250#M651602</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-08-07T19:42:07Z</dc:date>
    </item>
    <item>
      <title>Re: Want to create Week Bucket Dimension in the script</title>
      <link>https://community.qlik.com/t5/QlikView/Want-to-create-Week-Bucket-Dimension-in-the-script/m-p/916251#M651603</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD DayOfYear, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SnapShotDate, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Week, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Year, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; YearWeek,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(Even(Week) = -1, YearWeek &amp;amp; '&amp;amp;' &amp;amp; (YearWeek + 1), YearWeek - 1 &amp;amp; '&amp;amp;' &amp;amp; YearWeek) as [2Weeks],&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(Mod(AutoNumber(Week), 3) = 1, YearWeek &amp;amp; '&amp;amp;' &amp;amp; (YearWeek + 1) &amp;amp; '&amp;amp;' &amp;amp; (YearWeek + 2),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(Mod(AutoNumber(Week), 3) = 2, (YearWeek - 1) &amp;amp; '&amp;amp;' &amp;amp; YearWeek &amp;amp; '&amp;amp;' &amp;amp; (YearWeek + 1),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (YearWeek - 2) &amp;amp; '&amp;amp;' &amp;amp; (YearWeek - 1) &amp;amp; '&amp;amp;' &amp;amp; YearWeek)) as [3Weeks],&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(Mod(AutoNumber(Week), 4) = 1, YearWeek &amp;amp; '&amp;amp;' &amp;amp; (YearWeek + 1) &amp;amp; '&amp;amp;' &amp;amp; (YearWeek + 2) &amp;amp; '&amp;amp;' &amp;amp; (YearWeek + 3),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(Mod(AutoNumber(Week), 4) = 2, (YearWeek - 1) &amp;amp; '&amp;amp;' &amp;amp; YearWeek &amp;amp; '&amp;amp;' &amp;amp; (YearWeek + 1) &amp;amp; '&amp;amp;' &amp;amp; (YearWeek + 2),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(Mod(AutoNumber(Week), 4) = 3, (YearWeek - 2) &amp;amp; '&amp;amp;' &amp;amp; (YearWeek - 1) &amp;amp; '&amp;amp;' &amp;amp; YearWeek &amp;amp; '&amp;amp;' &amp;amp; (YearWeek + 1),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (YearWeek - 3) &amp;amp; '&amp;amp;' &amp;amp; (YearWeek - 2) &amp;amp; '&amp;amp;' &amp;amp; (YearWeek - 1) &amp;amp; '&amp;amp;' &amp;amp; YearWeek))) as [4Weeks]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FROM&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;[week bucket output.xls]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(biff, embedded labels, table is Sheet1$);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code will need some modifications based on your need.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Aug 2015 19:54:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Want-to-create-Week-Bucket-Dimension-in-the-script/m-p/916251#M651603</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-08-07T19:54:15Z</dc:date>
    </item>
    <item>
      <title>Re: Want to create Week Bucket Dimension in the script</title>
      <link>https://community.qlik.com/t5/QlikView/Want-to-create-Week-Bucket-Dimension-in-the-script/m-p/916252#M651604</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For the 3rd week and 4th week bucket the week should should start from week 201434 ...not from 201431... like dynamically it should take the minimum week as first week..&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/silly.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Aug 2015 20:00:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Want-to-create-Week-Bucket-Dimension-in-the-script/m-p/916252#M651604</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-08-07T20:00:27Z</dc:date>
    </item>
    <item>
      <title>Re: Want to create Week Bucket Dimension in the script</title>
      <link>https://community.qlik.com/t5/QlikView/Want-to-create-Week-Bucket-Dimension-in-the-script/m-p/916253#M651605</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;From your sample I am seeing 201434 as the minimum week:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/95415_Capture.PNG" style="max-width: 620px; height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Seems like this is what you want? Let me know if I am missing something....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Aug 2015 20:03:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Want-to-create-Week-Bucket-Dimension-in-the-script/m-p/916253#M651605</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-08-07T20:03:49Z</dc:date>
    </item>
    <item>
      <title>Re: Want to create Week Bucket Dimension in the script</title>
      <link>https://community.qlik.com/t5/QlikView/Want-to-create-Week-Bucket-Dimension-in-the-script/m-p/916254#M651606</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;pLEASE check this QVW file am i missing anything&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Aug 2015 20:11:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Want-to-create-Week-Bucket-Dimension-in-the-script/m-p/916254#M651606</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-08-07T20:11:31Z</dc:date>
    </item>
    <item>
      <title>Re: Want to create Week Bucket Dimension in the script</title>
      <link>https://community.qlik.com/t5/QlikView/Want-to-create-Week-Bucket-Dimension-in-the-script/m-p/916255#M651610</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't have a licensed version of QlikView, so can't really open the file you are sharing. Can you share the script, if you have made any changes to it and a screenshot of the table box object?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One thing to note here is that, you will need your data to be sorted in a correct order. So if it isn't &lt;STRONG&gt;sorted&lt;/STRONG&gt; in &lt;STRONG&gt;Ascending&lt;/STRONG&gt; order by &lt;STRONG&gt;SnapShotDate, &lt;/STRONG&gt;I would recommend doing the 2Weeks, 3Weeks and 4Weeks calculation in preceding load or resident load with the order by statement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Aug 2015 20:15:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Want-to-create-Week-Bucket-Dimension-in-the-script/m-p/916255#M651610</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-08-07T20:15:32Z</dc:date>
    </item>
    <item>
      <title>Re: Want to create Week Bucket Dimension in the script</title>
      <link>https://community.qlik.com/t5/QlikView/Want-to-create-Week-Bucket-Dimension-in-the-script/m-p/916256#M651612</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Attached is the excel sheet and scripy&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Test:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD DayOfYear,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SnapShotDate,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Week,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Year,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; YearWeek,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(Even(Week) = -1, YearWeek &amp;amp; '-' &amp;amp; (YearWeek + 1), YearWeek - 1 &amp;amp; '-' &amp;amp; YearWeek) as [2Weeks],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(Mod(AutoNumber(Week), 3) = 1, YearWeek &amp;amp; '-' &amp;amp; (YearWeek + 1) &amp;amp; '-' &amp;amp; (YearWeek + 2),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(Mod(AutoNumber(Week), 3) = 2, (YearWeek - 1) &amp;amp; '-' &amp;amp; YearWeek &amp;amp; '-' &amp;amp; (YearWeek + 1),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (YearWeek - 2) &amp;amp; '-' &amp;amp; (YearWeek - 1) &amp;amp; '-' &amp;amp; YearWeek)) as [3Weeks],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(Mod(AutoNumber(Week), 4) = 1, YearWeek &amp;amp; '-' &amp;amp; (YearWeek + 1) &amp;amp; '-' &amp;amp; (YearWeek + 2) &amp;amp; '-' &amp;amp; (YearWeek + 3),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(Mod(AutoNumber(Week), 4) = 2, (YearWeek - 1) &amp;amp; '-' &amp;amp; YearWeek &amp;amp; '-' &amp;amp; (YearWeek + 1) &amp;amp; '-' &amp;amp; (YearWeek + 2),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(Mod(AutoNumber(Week), 4) = 3, (YearWeek - 2) &amp;amp; '-' &amp;amp; (YearWeek - 1) &amp;amp; '-' &amp;amp; YearWeek &amp;amp; '-' &amp;amp; (YearWeek + 1),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (YearWeek - 3) &amp;amp; '-' &amp;amp; (YearWeek - 2) &amp;amp; '-' &amp;amp; (YearWeek - 1) &amp;amp; '-' &amp;amp; YearWeek))) as [4Weeks]&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;C&gt;&lt;/C&gt;&lt;/P&gt;&lt;P&gt;(biff, embedded labels, table is Sheet1$);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Aug 2015 20:21:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Want-to-create-Week-Bucket-Dimension-in-the-script/m-p/916256#M651612</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-08-07T20:21:58Z</dc:date>
    </item>
    <item>
      <title>Re: Want to create Week Bucket Dimension in the script</title>
      <link>https://community.qlik.com/t5/QlikView/Want-to-create-Week-Bucket-Dimension-in-the-script/m-p/916257#M651613</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yup got it brother , thanks a lot &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Aug 2015 20:24:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Want-to-create-Week-Bucket-Dimension-in-the-script/m-p/916257#M651613</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-08-07T20:24:30Z</dc:date>
    </item>
    <item>
      <title>Re: Want to create Week Bucket Dimension in the script</title>
      <link>https://community.qlik.com/t5/QlikView/Want-to-create-Week-Bucket-Dimension-in-the-script/m-p/916258#M651614</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See if this is what you want:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD DayOfYear, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SnapShotDate, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Week, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Year, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; YearWeek&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FROM&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;[Calendar Week.xls]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(biff, embedded labels, table is Sheet1$);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;[Final Table]:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD *,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; If(Even(Week) = -1, YearWeek &amp;amp; '&amp;amp;' &amp;amp; (YearWeek + 1), YearWeek - 1 &amp;amp; '&amp;amp;' &amp;amp; YearWeek) as [2Weeks],&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(Mod(AutoNumber(Week), 3) = 1, YearWeek &amp;amp; '&amp;amp;' &amp;amp; (YearWeek + 1) &amp;amp; '&amp;amp;' &amp;amp; (YearWeek + 2),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(Mod(AutoNumber(Week), 3) = 2, (YearWeek - 1) &amp;amp; '&amp;amp;' &amp;amp; YearWeek &amp;amp; '&amp;amp;' &amp;amp; (YearWeek + 1),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (YearWeek - 2) &amp;amp; '&amp;amp;' &amp;amp; (YearWeek - 1) &amp;amp; '&amp;amp;' &amp;amp; YearWeek)) as [3Weeks],&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(Mod(AutoNumber(Week), 4) = 1, YearWeek &amp;amp; '&amp;amp;' &amp;amp; (YearWeek + 1) &amp;amp; '&amp;amp;' &amp;amp; (YearWeek + 2) &amp;amp; '&amp;amp;' &amp;amp; (YearWeek + 3),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(Mod(AutoNumber(Week), 4) = 2, (YearWeek - 1) &amp;amp; '&amp;amp;' &amp;amp; YearWeek &amp;amp; '&amp;amp;' &amp;amp; (YearWeek + 1) &amp;amp; '&amp;amp;' &amp;amp; (YearWeek + 2),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(Mod(AutoNumber(Week), 4) = 3, (YearWeek - 2) &amp;amp; '&amp;amp;' &amp;amp; (YearWeek - 1) &amp;amp; '&amp;amp;' &amp;amp; YearWeek &amp;amp; '&amp;amp;' &amp;amp; (YearWeek + 1),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (YearWeek - 3) &amp;amp; '&amp;amp;' &amp;amp; (YearWeek - 2) &amp;amp; '&amp;amp;' &amp;amp; (YearWeek - 1) &amp;amp; '&amp;amp;' &amp;amp; YearWeek))) as [4Weeks]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Resident Table&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Order By SnapShotDate;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DROP Table Table;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Aug 2015 20:28:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Want-to-create-Week-Bucket-Dimension-in-the-script/m-p/916258#M651614</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-08-07T20:28:34Z</dc:date>
    </item>
    <item>
      <title>Re: Want to create Week Bucket Dimension in the script</title>
      <link>https://community.qlik.com/t5/QlikView/Want-to-create-Week-Bucket-Dimension-in-the-script/m-p/916259#M651615</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Awesome &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am glad it worked out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Aug 2015 20:29:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Want-to-create-Week-Bucket-Dimension-in-the-script/m-p/916259#M651615</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-08-07T20:29:16Z</dc:date>
    </item>
  </channel>
</rss>

