<?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 Gantt Chart Help in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Gantt-Chart-Help/m-p/790973#M279690</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm building a Gantt Chart from a horizontal stacked bar instead of using an extension. I've done something similar in MS Excel and plan to use the same approach. The chart is set to show time worked based on timestamp data. Each row of data has a punch in and a punch out. Employees will often more than one punch instance daily (e.g. several punch in/out for breaks). Current chart set up as:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Bar 1: 1st punch data for the day based on timestamp (Bar color set to transparent)&lt;/LI&gt;&lt;LI&gt;Bar 2: Time duration of the 1st punch data (e.g. 2:29:14) - Bar set to a blue color&lt;/LI&gt;&lt;LI&gt;Bar 3: Difference between 1st punch data 2nd punch data for the day based on timestamps (Bar color set to transparent)&lt;/LI&gt;&lt;LI&gt;Bar 4: Time duration of the 2nd punch data Bar set to a blue color&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;I repeat these steps as many times as necessary based on the number of punch instances by an employee in a day.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;STRONG style="text-decoration: underline;"&gt;My Areas of Need:&lt;/STRONG&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;In order to sort/order the punch instances in a day by an employee, I had to use the following Previous and Peek formula.&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;IF([EE Name]=Previous([EE Name]) and Actual_Date=Previous(Actual_Date),RangeSum(Peek('Punch_Count'),1),1) as [Punch_Count]&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;It seems to work in most cases, but when I load for my entire data table, some individuals do not work properly. I think errors occur when a row of punch data for an employee is not is chronological order by Start timestamp. (e.g. John Doe punch start in row 100 is less than John Doe punch start in row 80; therefore assigning a Punch_Count of '1' to both rows)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Is there a simpler way to give each punch line a unique identifier in chronological order, possibly using a rank based on employee and start timestamp?&lt;/SPAN&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Punch_count is important because Set Analysis is used to call the specific punch for the Gantt chart&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;How do I get the axis to show as time and start at the date selected?&lt;/SPAN&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;I would like to show from 12:00am to 12:00am the next morning.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Attached is the QVW that I'm using.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Any Help is much appreciated.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 20 Nov 2014 18:24:23 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-11-20T18:24:23Z</dc:date>
    <item>
      <title>Gantt Chart Help</title>
      <link>https://community.qlik.com/t5/QlikView/Gantt-Chart-Help/m-p/790973#M279690</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm building a Gantt Chart from a horizontal stacked bar instead of using an extension. I've done something similar in MS Excel and plan to use the same approach. The chart is set to show time worked based on timestamp data. Each row of data has a punch in and a punch out. Employees will often more than one punch instance daily (e.g. several punch in/out for breaks). Current chart set up as:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Bar 1: 1st punch data for the day based on timestamp (Bar color set to transparent)&lt;/LI&gt;&lt;LI&gt;Bar 2: Time duration of the 1st punch data (e.g. 2:29:14) - Bar set to a blue color&lt;/LI&gt;&lt;LI&gt;Bar 3: Difference between 1st punch data 2nd punch data for the day based on timestamps (Bar color set to transparent)&lt;/LI&gt;&lt;LI&gt;Bar 4: Time duration of the 2nd punch data Bar set to a blue color&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;I repeat these steps as many times as necessary based on the number of punch instances by an employee in a day.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;STRONG style="text-decoration: underline;"&gt;My Areas of Need:&lt;/STRONG&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;In order to sort/order the punch instances in a day by an employee, I had to use the following Previous and Peek formula.&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;IF([EE Name]=Previous([EE Name]) and Actual_Date=Previous(Actual_Date),RangeSum(Peek('Punch_Count'),1),1) as [Punch_Count]&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;It seems to work in most cases, but when I load for my entire data table, some individuals do not work properly. I think errors occur when a row of punch data for an employee is not is chronological order by Start timestamp. (e.g. John Doe punch start in row 100 is less than John Doe punch start in row 80; therefore assigning a Punch_Count of '1' to both rows)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Is there a simpler way to give each punch line a unique identifier in chronological order, possibly using a rank based on employee and start timestamp?&lt;/SPAN&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Punch_count is important because Set Analysis is used to call the specific punch for the Gantt chart&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;How do I get the axis to show as time and start at the date selected?&lt;/SPAN&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;I would like to show from 12:00am to 12:00am the next morning.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Attached is the QVW that I'm using.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Any Help is much appreciated.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Nov 2014 18:24:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Gantt-Chart-Help/m-p/790973#M279690</guid>
      <dc:creator />
      <dc:date>2014-11-20T18:24:23Z</dc:date>
    </item>
  </channel>
</rss>

