<?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: Time off calculation in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Time-off-calculation/m-p/1097218#M364403</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be something like 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 *,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; WeekEnd(EndDate, 0, 0) as WeekEnding,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; EndDate-StartDate as [Time Off];&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;Territory, StartDate, EndDate&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;A1, 02/02/2016, 02/04/2016&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;A2, 02/08/2016, 02/08/2016&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;];&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/117256_Capture.PNG" style="height: auto;" /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 07 Mar 2016 20:32:28 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2016-03-07T20:32:28Z</dc:date>
    <item>
      <title>Time off calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Time-off-calculation/m-p/1097214#M364399</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need help calculating time off aggregated by week on daily data. The data format is as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Territory ------StartDate-------EndDate ------timeoff&lt;/P&gt;&lt;P&gt;A1---------------02/02/2016-----02/04/2016-----2&lt;/P&gt;&lt;P&gt;A2---------------02/08/2016------02/08/2016---1&lt;/P&gt;&lt;P&gt;Currently i figured out how to calculate time off for a selected range from a calendar object but i am having difficulties calculating time off on a weekly basis. I tried using a Master Calendar but i still couldn't figure it out.&lt;/P&gt;&lt;P&gt;I need the results to look like this:&lt;/P&gt;&lt;P&gt;Territory-------WeekEnding------Timeoff(days)&lt;/P&gt;&lt;P&gt;A1---------------02/07/2016--------2&lt;/P&gt;&lt;P&gt;A2---------------02/14/2016-------1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried linking the data to master calendar using Week(StartDate) but didn't work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone help? I would appreciate any thoughts and thank you !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 06 Mar 2016 05:22:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Time-off-calculation/m-p/1097214#M364399</guid>
      <dc:creator />
      <dc:date>2016-03-06T05:22:17Z</dc:date>
    </item>
    <item>
      <title>Re: Time off calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Time-off-calculation/m-p/1097215#M364400</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe you want to create reference dates for your intervals:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/2940"&gt;Creating Reference Dates for Intervals&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then link the reference dates to your master calendar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 06 Mar 2016 12:23:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Time-off-calculation/m-p/1097215#M364400</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-03-06T12:23:29Z</dc:date>
    </item>
    <item>
      <title>Re: Time off calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Time-off-calculation/m-p/1097216#M364401</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you swuehl. I will look it up.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 06 Mar 2016 19:30:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Time-off-calculation/m-p/1097216#M364401</guid>
      <dc:creator />
      <dc:date>2016-03-06T19:30:33Z</dc:date>
    </item>
    <item>
      <title>Re: Time off calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Time-off-calculation/m-p/1097217#M364402</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I just tried it and it didn't work. I am still showing missing date ranges (Weeks).&lt;/P&gt;&lt;P&gt;I will try again&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Mar 2016 19:43:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Time-off-calculation/m-p/1097217#M364402</guid>
      <dc:creator />
      <dc:date>2016-03-07T19:43:06Z</dc:date>
    </item>
    <item>
      <title>Re: Time off calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Time-off-calculation/m-p/1097218#M364403</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be something like 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 *,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; WeekEnd(EndDate, 0, 0) as WeekEnding,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; EndDate-StartDate as [Time Off];&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;Territory, StartDate, EndDate&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;A1, 02/02/2016, 02/04/2016&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;A2, 02/08/2016, 02/08/2016&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;];&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/117256_Capture.PNG" style="height: auto;" /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Mar 2016 20:32:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Time-off-calculation/m-p/1097218#M364403</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-03-07T20:32:28Z</dc:date>
    </item>
    <item>
      <title>Re: Time off calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Time-off-calculation/m-p/1097219#M364404</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sunny,&lt;/P&gt;&lt;P&gt;Thank you for your help with this. I tried your suggestion but i am still having a problem with missing dates.&lt;/P&gt;&lt;P&gt;I am working on adding a master calendar to try to fill in the gaps. Below is what i have as of now:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="TOT.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/117353_TOT.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Mar 2016 12:43:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Time-off-calculation/m-p/1097219#M364404</guid>
      <dc:creator />
      <dc:date>2016-03-08T12:43:30Z</dc:date>
    </item>
  </channel>
</rss>

