<?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: Group durations across multiple weeks By Week in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Group-durations-across-multiple-weeks-By-Week/m-p/1048401#M352285</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry for the late replay.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just applied your example in my application and it worked perfectly!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again for your contribution!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 May 2016 10:46:53 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-05-03T10:46:53Z</dc:date>
    <item>
      <title>Group durations across multiple weeks By Week</title>
      <link>https://community.qlik.com/t5/QlikView/Group-durations-across-multiple-weeks-By-Week/m-p/1048398#M352282</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a table which contains the downtime of machines. It looks something similar to the below table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture4.PNG" class="image-4 jive-image" src="https://community.qlik.com/legacyfs/online/123138_Capture4.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Therefore I have the following situation:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture3.PNG" class="jive-image image-2" height="184" src="https://community.qlik.com/legacyfs/online/123136_Capture3.PNG" style="height: 184px; width: 770.811px;" width="771" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to find a way such that I can the downtime i.e Duration (Days) by weeks, as following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture2.PNG" class="jive-image image-3" src="https://community.qlik.com/legacyfs/online/123137_Capture2.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone please recommend how this can be achieved?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Apr 2016 15:31:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Group-durations-across-multiple-weeks-By-Week/m-p/1048398#M352282</guid>
      <dc:creator />
      <dc:date>2016-04-29T15:31:42Z</dc:date>
    </item>
    <item>
      <title>Re: Group durations across multiple weeks By Week</title>
      <link>https://community.qlik.com/t5/QlikView/Group-durations-across-multiple-weeks-By-Week/m-p/1048399#M352283</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would you be able to explain the logic of downtime Duration? I can't seem to find a relations between your input table and the Gantt chart witht he expected output table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Apr 2016 15:59:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Group-durations-across-multiple-weeks-By-Week/m-p/1048399#M352283</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-04-29T15:59:18Z</dc:date>
    </item>
    <item>
      <title>Re: Group durations across multiple weeks By Week</title>
      <link>https://community.qlik.com/t5/QlikView/Group-durations-across-multiple-weeks-By-Week/m-p/1048400#M352284</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think I get it now &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;Script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SET FirstWeekDay=0;&lt;/STRONG&gt;&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 * Inline [&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Duration ID, Start Day, End Day, Duration&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;D001, 16/04/2016, 22/04/2016, 7&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;D002, 11/04/2016, 29/04/2016, 19&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;D003, 16/04/2016, 24/04/2016, 9&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;];&lt;/STRONG&gt;&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 [Duration ID],&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Duration,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; [Start Day],&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; [End Day],&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Date([Start Day] + IterNo() - 1) as Date,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Week([Start Day] + IterNo() - 1) as Week,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; WeekDay([Start Day] + IterNo() - 1) as WeekDay&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;While [Start Day] + IterNo() - 1 &amp;lt;= [End Day];&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;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/123200_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't know how you are calculating your Week, but the the idea will remain the same the Week calculation will change.&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>Sat, 30 Apr 2016 01:42:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Group-durations-across-multiple-weeks-By-Week/m-p/1048400#M352284</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-04-30T01:42:57Z</dc:date>
    </item>
    <item>
      <title>Re: Group durations across multiple weeks By Week</title>
      <link>https://community.qlik.com/t5/QlikView/Group-durations-across-multiple-weeks-By-Week/m-p/1048401#M352285</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry for the late replay.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just applied your example in my application and it worked perfectly!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again for your contribution!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 May 2016 10:46:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Group-durations-across-multiple-weeks-By-Week/m-p/1048401#M352285</guid>
      <dc:creator />
      <dc:date>2016-05-03T10:46:53Z</dc:date>
    </item>
  </channel>
</rss>

