<?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 Hourly Census graph in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Hourly-Census-graph/m-p/293399#M1201795</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks so much Rob! This solution appears to work the way I need.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Dec 2010 22:22:31 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-12-22T22:22:31Z</dc:date>
    <item>
      <title>Hourly Census graph</title>
      <link>https://community.qlik.com/t5/QlikView/Hourly-Census-graph/m-p/293397#M1201793</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to create a graph from data to show an x-axis that contains Care Units (for Emergency room patients in beds at the time) and the y-axis shows each hour of the day (in military time). So the y-axis will have 00 for midnight hour, 01 for 1am hour, 02 for 2am hour and so on through 23 for 11 pm hour.&lt;/P&gt;&lt;P&gt;The goal is to show a count of patients in the Emergency care rooms for each hour of the day (this will be used for staffing purposes). So, if a patient arrives at midnight and is in Care Unit 2 for 3 1/2 hours, then they will be counted for the 00 hour, 01 hour, 02 hour, and 03 hour on the graph for care unit 2. I have their arrive date/time and discharge date/time as well as their LOS (Length of stay). The length of stay is in hh:mm format. I am having trouble trying to figure out a way to graph this.&lt;/P&gt;&lt;P&gt;Any thoughts would be greatly appreciated since I am fairly new to QlikView.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;nmellick&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Dec 2010 21:37:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Hourly-Census-graph/m-p/293397#M1201793</guid>
      <dc:creator />
      <dc:date>2010-12-08T21:37:41Z</dc:date>
    </item>
    <item>
      <title>Hourly Census graph</title>
      <link>https://community.qlik.com/t5/QlikView/Hourly-Census-graph/m-p/293398#M1201794</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One approach would be to generate a Calendar table of each hour and date. Then use IntervalMatch to connect the patient visits into the Calendar hours. See attached example.&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Dec 2010 00:39:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Hourly-Census-graph/m-p/293398#M1201794</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2010-12-21T00:39:37Z</dc:date>
    </item>
    <item>
      <title>Hourly Census graph</title>
      <link>https://community.qlik.com/t5/QlikView/Hourly-Census-graph/m-p/293399#M1201795</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks so much Rob! This solution appears to work the way I need.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Dec 2010 22:22:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Hourly-Census-graph/m-p/293399#M1201795</guid>
      <dc:creator />
      <dc:date>2010-12-22T22:22:31Z</dc:date>
    </item>
    <item>
      <title>Re: Hourly Census graph</title>
      <link>https://community.qlik.com/t5/QlikView/Hourly-Census-graph/m-p/293400#M1201796</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have Personal Edition so I'm unable to open your file. Could you upload a PE version or provide some details of your solution?&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;&lt;P&gt;Jim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 08 Feb 2014 18:19:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Hourly-Census-graph/m-p/293400#M1201796</guid>
      <dc:creator />
      <dc:date>2014-02-08T18:19:02Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Hourly Census graph</title>
      <link>https://community.qlik.com/t5/QlikView/Hourly-Census-graph/m-p/293401#M1201797</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can't provide a PE copy, but here's the script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;data:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;LOAD *,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; // Round down to get starting hour for IntervalMatch&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; timestamp(floor(Arrive) + Maketime(hour(Arrive)), 'MM/DD/YYYY hh') as ArriveHour&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;LOAD&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; Patient,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; Unit,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; timestamp#(Arrive, 'MM/DD/YYYY hh:mm') as Arrive,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; timestamp#(Discharge, 'MM/DD/YYYY hh:mm') as Discharge&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;INLINE [&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Patient, Unit, Arrive, Discharge&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;P1, A, 01/01/2010 09:00, 01/01/2010 12:30&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;P2, A, 01/01/2010 09:30, 01/01/2010 10:30&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;P3, A, 01/01/2010 11:15, 01/01/2010 16:40&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;P4, A, 01/01/2010 18:30, 01/02/2010 02:10&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;P5, A, 01/01/2010 01:15, 01/01/2010 01:30&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;P6, B, 01/01/2010 10:00, 01/01/2010 11:30&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;P7, B, 01/01/2010 10:15, 01/01/2010 10:30&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;P8, B, 01/01/2010 10:30, 01/01/2010 15:15&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;P9, B, 01/01/2010 13:00, 01/01/2010 15:30&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;P10,B, 01/02/2010 01:15, 01/02/2010 05:30&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;// Get date range&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;date_temp:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;LOAD&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; min(floor(Arrive)) as mindate,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; max(floor(Discharge)) as maxdate&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;RESIDENT data&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;LET vMindate = peek('mindate')-1;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;LET vMaxdate = peek('maxdate');&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;DROP TABLE date_temp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;// Generate a calendar table with one row for each hour each date&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;FOR i = 0 to 23 // Hour 0 to 23&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; Calendar:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; LOAD *,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; timestamp(Date + Maketime($(i)), 'MM/DD/YYYY hh') as DateHour,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; $(i) as Hour&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; LOAD&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; date($(vMindate) + IterNo()) as Date&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; AUTOGENERATE 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; WHILE $(vMindate) + IterNo() &amp;lt;= $(vMaxdate)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;NEXT i&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;// IntervalMatch to connect Patient visits to the Calendar table&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;IntervalMatch (DateHour)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;LOAD ArriveHour, Discharge&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;RESIDENT data&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 09 Feb 2014 00:32:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Hourly-Census-graph/m-p/293401#M1201797</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2014-02-09T00:32:14Z</dc:date>
    </item>
    <item>
      <title>Re: Hourly Census graph</title>
      <link>https://community.qlik.com/t5/QlikView/Hourly-Census-graph/m-p/293402#M1201798</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for responding so quickly Rob. I'll try this in my application.&lt;/P&gt;&lt;P&gt;Thanks again&lt;/P&gt;&lt;P&gt;Jim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 09 Feb 2014 15:17:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Hourly-Census-graph/m-p/293402#M1201798</guid>
      <dc:creator />
      <dc:date>2014-02-09T15:17:45Z</dc:date>
    </item>
    <item>
      <title>Re: Hourly Census graph</title>
      <link>https://community.qlik.com/t5/QlikView/Hourly-Census-graph/m-p/293403#M1201799</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hell Rob&lt;/P&gt;&lt;P&gt;Thanks again for your help with this however I'm struggling with how my load from a local Excel file fits in with your script. I've replaced your Inline section with my load, ie:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:&lt;/P&gt;&lt;P&gt;LOAD *,&lt;/P&gt;&lt;P&gt;&amp;nbsp; // Round down to get starting hour for IntervalMatch&lt;/P&gt;&lt;P&gt;timestamp (floor(Arrive) + Maketime(hour(Arrive)),&lt;/P&gt;&lt;P&gt;'DD/MM/YYYY hh') as ArriveHour&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;Patient,&lt;/P&gt;&lt;P&gt;Unit,&lt;/P&gt;&lt;P&gt;timestamp#(Arrive, 'DD/MM/YYYY hh:mm') as Arrive,&lt;/P&gt;&lt;P&gt;timestamp#(Discharge, 'DD/MM/YYYY' 'hh:mm) as Discharge&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;[Data_1.xlsx]&lt;/P&gt;&lt;P&gt;coxml, embedded labels, table is Sheet1);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Get date range&lt;/P&gt;&lt;P&gt;date_Temp:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;....and so on but the vMindate and vMaxdate variables aren't picking anything up which is where I think the problem may be.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again&lt;/P&gt;&lt;P&gt;Jim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 16 Feb 2014 10:59:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Hourly-Census-graph/m-p/293403#M1201799</guid>
      <dc:creator />
      <dc:date>2014-02-16T10:59:59Z</dc:date>
    </item>
    <item>
      <title>Re: Hourly Census graph</title>
      <link>https://community.qlik.com/t5/QlikView/Hourly-Census-graph/m-p/293404#M1201800</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hard to say without seeing your entire script. Can you post all of it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 16 Feb 2014 16:54:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Hourly-Census-graph/m-p/293404#M1201800</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2014-02-16T16:54:47Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Hourly Census graph</title>
      <link>https://community.qlik.com/t5/QlikView/Hourly-Census-graph/m-p/293405#M1201801</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm unable to paste directly into this reply box for some reason so I've attached a Word doc with the script. Hope this is okay.&lt;/P&gt;&lt;P&gt;Jim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 16 Feb 2014 17:31:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Hourly-Census-graph/m-p/293405#M1201801</guid>
      <dc:creator />
      <dc:date>2014-02-16T17:31:15Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Hourly Census graph</title>
      <link>https://community.qlik.com/t5/QlikView/Hourly-Census-graph/m-p/293406#M1201802</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rob, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for post the hourly census qvw, that's very helpful.&lt;/P&gt;&lt;P&gt;I have one question: it works perfectly, only when i select a certain month, the first day of the month wouldn't have the count right, because the census count also need to count in patients admitted from previous date so it's a rolling total count. How can i fix that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you!&lt;/P&gt;&lt;P&gt;LeeAnn&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Oct 2016 14:56:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Hourly-Census-graph/m-p/293406#M1201802</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-10-04T14:56:58Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Hourly Census graph</title>
      <link>https://community.qlik.com/t5/QlikView/Hourly-Census-graph/m-p/293407#M1201803</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rob,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for post the hourly census qvw in Qlik community,&amp;nbsp; that's very helpful.&lt;/P&gt;&lt;P&gt;I have one question: it works perfectly, only when i select a certain month, the first day of the month wouldn't have the count right, because the census count also need to count in patients admitted from previous date so it's a rolling total count. How can i fix that? Really appreciate your help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you!&lt;/P&gt;&lt;P&gt;LeeAnn&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Oct 2016 00:45:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Hourly-Census-graph/m-p/293407#M1201803</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-10-06T00:45:47Z</dc:date>
    </item>
    <item>
      <title>Re: Hourly Census graph</title>
      <link>https://community.qlik.com/t5/QlikView/Hourly-Census-graph/m-p/293408#M1201804</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;LeeAnn,&lt;/P&gt;&lt;P&gt;It sounds like you have two dates: AdmitDate and DisChargeDate.&amp;nbsp; Can you post a sample?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Oct 2016 20:06:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Hourly-Census-graph/m-p/293408#M1201804</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2016-10-06T20:06:34Z</dc:date>
    </item>
    <item>
      <title>Re: Hourly Census graph</title>
      <link>https://community.qlik.com/t5/QlikView/Hourly-Census-graph/m-p/293409#M1201805</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks for replying Rob!&lt;/P&gt;&lt;P&gt;Oh... I know why my first selected day is not correct, I have an existing calendar in my data model so when I replicate the hourly census I created a new Calendar.&lt;/P&gt;&lt;P&gt;So in the following look should I replace ' &lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(vMindate)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; + &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;IterNo&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;()) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Date&lt;/SPAN&gt;' to the date name in my existing data model?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG&gt;FOR&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;i&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; = 0 &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;to&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; 23 &lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;// Hour 0 to 23&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; Calendar:&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;LOAD&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; *,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;timestamp&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; + &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Maketime&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(i)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;), 'MM/DD/YYYY hh') &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;DateHour&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(i)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Hour&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt; ;&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;LOAD&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(vMindate)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; + &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;IterNo&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;()) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;AUTOGENERATE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; 1&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;WHILE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(vMindate)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; + &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;IterNo&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;() &amp;lt;= &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(vMaxdate)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt; ;&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;NEXT&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;i &lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Oct 2016 15:22:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Hourly-Census-graph/m-p/293409#M1201805</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-10-07T15:22:16Z</dc:date>
    </item>
    <item>
      <title>Re: Hourly Census graph</title>
      <link>https://community.qlik.com/t5/QlikView/Hourly-Census-graph/m-p/293410#M1201806</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rob&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have attached an example. Basically I already have an existing calendar in my app and it's linked to my 'Data' table by this key: %DateKey. If I were to implement my census using the existing calenda I'm gonna have to break the previous link by %DateKey and only let interval match to link the calendar and Data table. But I do need the previous linkage (%DateKey) for other things...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What should I do?&lt;/P&gt;&lt;P&gt;(in the attach, I commented out %DateKey field in Calendar and census works fine, but how should I modify it so I don't have to lose my previous linkage for it to work?)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks a lot for your help!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LeeAnn&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 08 Oct 2016 12:02:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Hourly-Census-graph/m-p/293410#M1201806</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-10-08T12:02:03Z</dc:date>
    </item>
  </channel>
</rss>

