<?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: Room Turnover in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Room-Turnover/m-p/9613#M729</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This data is auto-populated from every night at midnight, so I'm not sure the table function would work. &lt;/P&gt;&lt;P&gt;The fields I need are Operating Room Name, Surgery Date, Patient In, Patient Out. The previous patient Patient Out to the next Patient In is where I'm stuck.&amp;nbsp; The table function would work, but I'm not sure how that would work with the source system field. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 29 May 2018 15:15:27 GMT</pubDate>
    <dc:creator>kjeffries16</dc:creator>
    <dc:date>2018-05-29T15:15:27Z</dc:date>
    <item>
      <title>Room Turnover</title>
      <link>https://community.qlik.com/t5/App-Development/Room-Turnover/m-p/9609#M725</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Hello,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;In QlikSense, I am trying to create a set analysis formula to determine average room turnover in our OR, and I'm having a bit of trouble getting started.&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;The fields I have that I think I need are Entity, Department, Room Name, PatientInRoomInstant and PatientOutRoomInstant (mm/dd/yy hh:mm). I want to be able to have this calculate by day, week, month, year, depending on how the user filters the sheet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;The metric is how quickly do we turn a room from when Patient A exits the room and Patient B enters for the next procedure.&amp;nbsp; There are multiple rooms in multiple areas with several facilities.&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Thanks in advance for any guidance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Kim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 May 2018 20:46:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Room-Turnover/m-p/9609#M725</guid>
      <dc:creator>kjeffries16</dc:creator>
      <dc:date>2018-05-24T20:46:36Z</dc:date>
    </item>
    <item>
      <title>Re: Room Turnover</title>
      <link>https://community.qlik.com/t5/App-Development/Room-Turnover/m-p/9610#M726</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;first you have to choose what date you link with your calendar : InInstant or outInstant&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then calculate the average of (OutInstant - InInstant) for row where outInstant not null, so :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;avg({&amp;lt;outInstant = {'*'} &amp;gt;}&amp;nbsp; outInstant - InInstant)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 May 2018 11:48:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Room-Turnover/m-p/9610#M726</guid>
      <dc:creator>ogautier62</dc:creator>
      <dc:date>2018-05-25T11:48:10Z</dc:date>
    </item>
    <item>
      <title>Re: Room Turnover</title>
      <link>https://community.qlik.com/t5/App-Development/Room-Turnover/m-p/9611#M727</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i'd recommend you start by defining what data you need to be able to make such a calculation, and if it's not available, calculate it in the script; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at first siight, you need to have a field for each procedure that contains the end of the previous procedure in the same room on the same day&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;you should be able to generate that field in the script using some "advanced" manipulations of your tables (order them by time, compare previous rows, conditionnaly calculate the end of the previous procedure for a certain procedure). &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;when finished, i'm not even convinced you'll need set analysis... &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 May 2018 12:55:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Room-Turnover/m-p/9611#M727</guid>
      <dc:creator>mikaelsc</dc:creator>
      <dc:date>2018-05-26T12:55:24Z</dc:date>
    </item>
    <item>
      <title>Re: Room Turnover</title>
      <link>https://community.qlik.com/t5/App-Development/Room-Turnover/m-p/9612#M728</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This one calculates the OR time for the single patient/procedure, so I'm not sure what I'm doing wrong with the formula.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 May 2018 15:11:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Room-Turnover/m-p/9612#M728</guid>
      <dc:creator>kjeffries16</dc:creator>
      <dc:date>2018-05-29T15:11:53Z</dc:date>
    </item>
    <item>
      <title>Re: Room Turnover</title>
      <link>https://community.qlik.com/t5/App-Development/Room-Turnover/m-p/9613#M729</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This data is auto-populated from every night at midnight, so I'm not sure the table function would work. &lt;/P&gt;&lt;P&gt;The fields I need are Operating Room Name, Surgery Date, Patient In, Patient Out. The previous patient Patient Out to the next Patient In is where I'm stuck.&amp;nbsp; The table function would work, but I'm not sure how that would work with the source system field. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 May 2018 15:15:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Room-Turnover/m-p/9613#M729</guid>
      <dc:creator>kjeffries16</dc:creator>
      <dc:date>2018-05-29T15:15:27Z</dc:date>
    </item>
    <item>
      <title>Re: Room Turnover</title>
      <link>https://community.qlik.com/t5/App-Development/Room-Turnover/m-p/9614#M730</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;don't expect this to be automatic... this is about bringing "intelligence" to data &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;: &lt;/P&gt;&lt;P&gt;i'd think you'd have 3 steps (or more &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; ) : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) create temporary table containing data from source system temp1: Load *; Sql select * from ***; etc. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) create a table in which you do the "special" calculations: &lt;/P&gt;&lt;P&gt;- it needs to be sorted in order to allow calculations (order by) &lt;/P&gt;&lt;P&gt;- then use previous() function in combination with if() expressions to define your logic&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tempTable2: &lt;/P&gt;&lt;P&gt;Load &lt;/P&gt;&lt;P&gt;if(previous(OpRoom)= OpRoom and previous(Date)= Date, previous(endTime)) as PreviousOpEndTime&lt;/P&gt;&lt;P&gt;* &lt;/P&gt;&lt;P&gt;resident temp1&lt;/P&gt;&lt;P&gt;order by OpRoom asc, Date asc;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3) additionnal creation of fields etc; dropping temp tables; etc&lt;/P&gt;&lt;P&gt;Final Table: &lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;*,&lt;/P&gt;&lt;P&gt;StartTime - &lt;SPAN style="font-size: 13.3333px;"&gt;PreviousOpEndTime as DelayBetweenPreviousAndStartOp&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;resident tempTable 2; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;drop tables... &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jun 2018 08:44:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Room-Turnover/m-p/9614#M730</guid>
      <dc:creator>mikaelsc</dc:creator>
      <dc:date>2018-06-05T08:44:46Z</dc:date>
    </item>
  </channel>
</rss>

