<?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: Aggregate by weeks within an activity date range? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Aggregate-by-weeks-within-an-activity-date-range/m-p/1147841#M629737</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK I spot you provided additional explanation when I was writing post. New version of file here:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Screenshot:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Screen Shot 07-26-16 at 08.54 PM.PNG" class="jive-image image-1" src="/legacyfs/online/132583_Screen Shot 07-26-16 at 08.54 PM.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 26 Jul 2016 18:54:57 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-07-26T18:54:57Z</dc:date>
    <item>
      <title>Aggregate by weeks within an activity date range?</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregate-by-weeks-within-an-activity-date-range/m-p/1147837#M629733</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All, I have a data table like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ActivityName&amp;nbsp;&amp;nbsp; ActivityStartDate&amp;nbsp;&amp;nbsp; ActivityEndDate&lt;/P&gt;&lt;P&gt;Steps&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2/1/2016&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2/28/2016&lt;/P&gt;&lt;P&gt;Exercise&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4/13/2016&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 6/7/2016&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(There are actually many of these activities broken out by activityid tied to various clients, but that aggregation should fall into place.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to make a calendar out of it like this:&lt;/P&gt;&lt;P&gt;ActivityName&amp;nbsp;&amp;nbsp;&amp;nbsp; ActivityDate&amp;nbsp;&amp;nbsp;&amp;nbsp; ActivityWeek&lt;/P&gt;&lt;P&gt;Steps&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2/1/2016&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;/P&gt;&lt;P&gt;Steps&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2/2/2016&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;/P&gt;&lt;P&gt;Steps&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2/3/2016&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;Exercise&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4/11/2016&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 6&lt;/P&gt;&lt;P&gt;Exercise&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4/12/2016&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 6&lt;/P&gt;&lt;P&gt;Exercise&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4/13/2016&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 6&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to do this?&amp;nbsp; (I have some master calendar script for a single date range that I'm trying to make smarter now, but hoping for an assist if I get stuck. &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;Edit: Added a sample qvw and excel worksheet.&amp;nbsp; Sheet1 of the excel worksheet is what I have.&amp;nbsp; The second tab shows the result I need.&amp;nbsp; Thanks!&amp;nbsp; (Stuff I mention below this point I expect I can work out myself once I have a calendar table.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------&lt;/P&gt;&lt;P&gt;Ultimately, I'm going to join UserActivityLogs onto this.&amp;nbsp; for instance join the steps log on stepsdate=activitydate and steps.activityname=calendar.activityname, join the exercise log on exercisedate=activitydate and exercise.activityname=calendar.activityname, etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wave 2 will be a bunch of counting how many users participated or met the goals of X number of activities based on days each user logged within the activity date ranges.&amp;nbsp; I tried just writing if statements&amp;nbsp; on the front, but it's timing out on accesspoint, so need to aggregate in script and put simpler charts and tables on the front.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jul 2016 14:08:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregate-by-weeks-within-an-activity-date-range/m-p/1147837#M629733</guid>
      <dc:creator>stevelord</dc:creator>
      <dc:date>2016-07-26T14:08:49Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregate by weeks within an activity date range?</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregate-by-weeks-within-an-activity-date-range/m-p/1147838#M629734</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Steve,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please send that Application / Raw Data?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With out raw data we can't do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/thread/48693"&gt;Creating A Master Calendar&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jul 2016 14:32:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregate-by-weeks-within-an-activity-date-range/m-p/1147838#M629734</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2016-07-26T14:32:10Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregate by weeks within an activity date range?</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregate-by-weeks-within-an-activity-date-range/m-p/1147839#M629735</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Steve,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For sure you must start with a Master Calendar. Here is a good article about that: &lt;A href="https://community.qlik.com/docs/DOC-6662"&gt;The Fastest Dynamic Calendar Script (Ever)&lt;/A&gt;‌. Personally, I use simplified, traditional version mentioned by &lt;A href="https://community.qlik.com/qlik-users/2445"&gt;stephen-x.redmond&lt;/A&gt; in &lt;A _jive_internal="true" href="https://community.qlik.com/docs/DOC-6662#comment-17321‌"&gt;THIS &lt;/A&gt;comment in above article. Check both and see which one suits you better &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;Secondly to split data ranges as in your above example, you will need to use IntervalMatch function. Great tutorial here: &lt;A href="https://community.qlik.com/qlik-blogpost/3037"&gt;IntervalMatch&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Finally I attach a sample qvw file with implementation of Master Calendar and usage of IntervalMatch function.&lt;/P&gt;&lt;P&gt;I do not understand how are you numbering weeks though. I simply use Week number as per calendar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Final table looks like this:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Screen Shot 07-26-16 at 08.33 PM.PNG" class="jive-image image-1" src="/legacyfs/online/132582_Screen Shot 07-26-16 at 08.33 PM.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Kuba&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jul 2016 18:36:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregate-by-weeks-within-an-activity-date-range/m-p/1147839#M629735</guid>
      <dc:creator />
      <dc:date>2016-07-26T18:36:02Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregate by weeks within an activity date range?</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregate-by-weeks-within-an-activity-date-range/m-p/1147840#M629736</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Added attachments, thanks!&amp;nbsp; First tab of the excel worksheet is what I have and second tab is what I need help getting to.&amp;nbsp; Feel free to drop new script into the qvw and re-attach for me to try.&amp;nbsp; I have a named license myself and can adapt it to our actual data structure.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jul 2016 18:38:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregate-by-weeks-within-an-activity-date-range/m-p/1147840#M629736</guid>
      <dc:creator>stevelord</dc:creator>
      <dc:date>2016-07-26T18:38:31Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregate by weeks within an activity date range?</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregate-by-weeks-within-an-activity-date-range/m-p/1147841#M629737</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK I spot you provided additional explanation when I was writing post. New version of file here:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Screenshot:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Screen Shot 07-26-16 at 08.54 PM.PNG" class="jive-image image-1" src="/legacyfs/online/132583_Screen Shot 07-26-16 at 08.54 PM.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jul 2016 18:54:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregate-by-weeks-within-an-activity-date-range/m-p/1147841#M629737</guid>
      <dc:creator />
      <dc:date>2016-07-26T18:54:57Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregate by weeks within an activity date range?</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregate-by-weeks-within-an-activity-date-range/m-p/1147842#M629738</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jakub, this is extremely close - the data structure and dates column are great, but something's off in the activity week column.&amp;nbsp; On the second challenge it has five days for the first activity week and has a 2-day activity week at the end.&amp;nbsp; I think maybe because it's using actual calendar weeks as a reference instead of the challengestartdate.&amp;nbsp; Do you have an angle to make that activityweek column consider the challengestartdate as day 1 of week 1, then run 7-day increments from there?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you've gotten it far enough that I might just bang out the activity week column with if statements on the final data table in script.&amp;nbsp; They'd be the same if statements that were causing accesspoint to time out, but our server could handle them back in script.&amp;nbsp; If you have an angle more optimal than if statements though, I'd like that.&amp;nbsp; Thanks! &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 will come back to give you correct answer credit and maybe helpful myself or you or whoever irons out the activityweek column.&amp;nbsp; That dates column got me to 90%.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jul 2016 20:00:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregate-by-weeks-within-an-activity-date-range/m-p/1147842#M629738</guid>
      <dc:creator>stevelord</dc:creator>
      <dc:date>2016-07-26T20:00:27Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregate by weeks within an activity date range?</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregate-by-weeks-within-an-activity-date-range/m-p/1147843#M629739</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Steve,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try attached &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;BR,&lt;/P&gt;&lt;P&gt;Kuba&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jul 2016 21:03:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregate-by-weeks-within-an-activity-date-range/m-p/1147843#M629739</guid>
      <dc:creator />
      <dc:date>2016-07-26T21:03:54Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregate by weeks within an activity date range?</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregate-by-weeks-within-an-activity-date-range/m-p/1147844#M629740</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey &lt;A href="https://community.qlik.com/qlik-users/116233"&gt;stevelord&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Was my last file helpful, or you still require assistance with this problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Kuba&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2016 20:50:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregate-by-weeks-within-an-activity-date-range/m-p/1147844#M629740</guid>
      <dc:creator />
      <dc:date>2016-07-28T20:50:28Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregate by weeks within an activity date range?</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregate-by-weeks-within-an-activity-date-range/m-p/1147845#M629741</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's brilliant thank you!&amp;nbsp; The date range thing and rank ceil / 7 as week stuff. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&amp;nbsp; Sorry for late reply, I've have days off this week, and my top top priorities are actually nprinting automation and three job applicants we're interviewing soon, so a little jammed.&amp;nbsp; I see your solution works and saved it on my desktop to use as a guide, but might be a couple weeks before I have time to implement it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway, you're set to be the next gysburt wasserstein I think.&amp;nbsp; Thanks again!&lt;/P&gt;&lt;P&gt;-Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2016 23:47:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregate-by-weeks-within-an-activity-date-range/m-p/1147845#M629741</guid>
      <dc:creator>stevelord</dc:creator>
      <dc:date>2016-07-28T23:47:59Z</dc:date>
    </item>
  </channel>
</rss>

