<?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 Delaying (lag) a row value by column date in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Delaying-lag-a-row-value-by-column-date/m-p/17634#M16078</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;I would like to make a simple calculation but I can not.&lt;/P&gt;&lt;P&gt;Attached jmp table is a subset of Hotel Occupancy Data Base.&lt;/P&gt;&lt;P&gt;Simple logic for Record ID 27421 is;&lt;/P&gt;&lt;P&gt;in 14 Apr 2016 250 Rooms arrive and check in,&lt;/P&gt;&lt;P&gt;in 14-15-16 Apr 2016 those 250 Rooms stay at the hotel for 3 days long,&lt;/P&gt;&lt;P&gt;in 17.04.2015 the 250 Rooms which arrived in 14 Apr 2016 Check Out (Leave the hotel).&lt;/P&gt;&lt;P&gt;I need to calculate the RoomLeave Column (which I filled manually for the purpose)..&lt;/P&gt;&lt;P&gt;Record ID is unique but many more arrivals/stay/leave occur at the same dates with different Record IDs.&lt;/P&gt;&lt;P&gt;Many thanks in advance for any of your support.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="11173_Screen Shot 2016-03-24 at 23.06.33.png" style="width: 615px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/2854iDF9111938B816505/image-size/medium?v=v2&amp;amp;px=400" role="button" title="11173_Screen Shot 2016-03-24 at 23.06.33.png" alt="11173_Screen Shot 2016-03-24 at 23.06.33.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 19 Oct 2016 02:11:12 GMT</pubDate>
    <dc:creator>saitcopuroglu</dc:creator>
    <dc:date>2016-10-19T02:11:12Z</dc:date>
    <item>
      <title>Delaying (lag) a row value by column date</title>
      <link>https://community.jmp.com/t5/Discussions/Delaying-lag-a-row-value-by-column-date/m-p/17634#M16078</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;I would like to make a simple calculation but I can not.&lt;/P&gt;&lt;P&gt;Attached jmp table is a subset of Hotel Occupancy Data Base.&lt;/P&gt;&lt;P&gt;Simple logic for Record ID 27421 is;&lt;/P&gt;&lt;P&gt;in 14 Apr 2016 250 Rooms arrive and check in,&lt;/P&gt;&lt;P&gt;in 14-15-16 Apr 2016 those 250 Rooms stay at the hotel for 3 days long,&lt;/P&gt;&lt;P&gt;in 17.04.2015 the 250 Rooms which arrived in 14 Apr 2016 Check Out (Leave the hotel).&lt;/P&gt;&lt;P&gt;I need to calculate the RoomLeave Column (which I filled manually for the purpose)..&lt;/P&gt;&lt;P&gt;Record ID is unique but many more arrivals/stay/leave occur at the same dates with different Record IDs.&lt;/P&gt;&lt;P&gt;Many thanks in advance for any of your support.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="11173_Screen Shot 2016-03-24 at 23.06.33.png" style="width: 615px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/2854iDF9111938B816505/image-size/medium?v=v2&amp;amp;px=400" role="button" title="11173_Screen Shot 2016-03-24 at 23.06.33.png" alt="11173_Screen Shot 2016-03-24 at 23.06.33.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Oct 2016 02:11:12 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Delaying-lag-a-row-value-by-column-date/m-p/17634#M16078</guid>
      <dc:creator>saitcopuroglu</dc:creator>
      <dc:date>2016-10-19T02:11:12Z</dc:date>
    </item>
    <item>
      <title>Re: Delaying (lag) a row value by column date</title>
      <link>https://community.jmp.com/t5/Discussions/Delaying-lag-a-row-value-by-column-date/m-p/17635#M16079</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would the date difference function work for you?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If Date Difference(CheckOutDate, CheckInDate, Day) = 1 then room leave = room night, else 0.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Mar 2016 22:48:29 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Delaying-lag-a-row-value-by-column-date/m-p/17635#M16079</guid>
      <dc:creator>KarenC</dc:creator>
      <dc:date>2016-03-24T22:48:29Z</dc:date>
    </item>
    <item>
      <title>Re: Delaying (lag) a row value by column date</title>
      <link>https://community.jmp.com/t5/Discussions/Delaying-lag-a-row-value-by-column-date/m-p/17636#M16080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is a quick script that performs the data table updating you want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000dd; font-family: Consolas; font-size: 10pt;"&gt;Names default to here&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: teal; font-family: Consolas; font-size: 10pt;"&gt;1&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 10pt;"&gt;);&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 10pt;"&gt;dt=&lt;/SPAN&gt;&lt;SPAN style="color: #0000dd; font-family: Consolas; font-size: 10pt;"&gt;current data table&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 10pt;"&gt;();&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: green; font-family: Consolas; font-size: 10pt;"&gt;// Create the RoomLeave column and initialize it&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000dd; font-family: Consolas; font-size: 10pt;"&gt;If&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000dd; font-family: Consolas; font-size: 10pt;"&gt;Try&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 10pt;"&gt;(dt:RoomLeave&amp;lt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: navy; font-family: Consolas; font-size: 10pt;"&gt;get name&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 10pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: purple; font-family: Consolas; font-size: 10pt;"&gt;""&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 10pt;"&gt;)!=&lt;/SPAN&gt;&lt;SPAN style="color: purple; font-family: Consolas; font-size: 10pt;"&gt;""&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 10pt;"&gt;, dt&amp;lt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: navy; font-family: Consolas; font-size: 10pt;"&gt;delete columns&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: purple; font-family: Consolas; font-size: 10pt;"&gt;"RoomLeave"&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 10pt;"&gt;));&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000dd; font-family: Consolas; font-size: 10pt;"&gt;wait&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: teal; font-family: Consolas; font-size: 10pt;"&gt;.2&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 10pt;"&gt;);&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 10pt;"&gt;dt&amp;lt;&amp;lt; &lt;/SPAN&gt;&lt;SPAN style="color: navy; font-family: Consolas; font-size: 10pt;"&gt;New Column&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: purple; font-family: Consolas; font-size: 10pt;"&gt;"RoomLeave"&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 10pt;"&gt;, set each value(&lt;/SPAN&gt;&lt;SPAN style="color: teal; font-family: Consolas; font-size: 10pt;"&gt;0&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 10pt;"&gt;));&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: green; font-family: Consolas; font-size: 10pt;"&gt;// Find the last staydate and the Arrival Room for each RecordID&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 10pt;"&gt;dtsumm = dt &amp;lt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 10pt;"&gt;Summary(invisible,&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Group( :RecordId ),&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #0000dd; font-family: Consolas; font-size: 10pt;"&gt;Max&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 10pt;"&gt;( :StayDate ),&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #0000dd; font-family: Consolas; font-size: 10pt;"&gt;Max&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 10pt;"&gt;( :ArrivalRoom ),&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Freq( &lt;/SPAN&gt;&lt;SPAN style="color: purple; font-family: Consolas; font-size: 10pt;"&gt;"None"&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 10pt;"&gt; ),&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Weight( &lt;/SPAN&gt;&lt;SPAN style="color: purple; font-family: Consolas; font-size: 10pt;"&gt;"None"&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 10pt;"&gt; ),&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; statistics column name format( &lt;/SPAN&gt;&lt;SPAN style="color: purple; font-family: Consolas; font-size: 10pt;"&gt;"column"&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 10pt;"&gt; )&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 10pt;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: green; font-family: Consolas; font-size: 10pt;"&gt;// Change the ArrivalRoom to the RoomLeave&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 10pt;"&gt;dtsumm:ArrivalRoom &amp;lt;&amp;lt; &lt;/SPAN&gt;&lt;SPAN style="color: navy; font-family: Consolas; font-size: 10pt;"&gt;Set Name&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: purple; font-family: Consolas; font-size: 10pt;"&gt;"RoomLeave"&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 10pt;"&gt;);&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: green; font-family: Consolas; font-size: 10pt;"&gt;// Cleanup the data table to keep only the columns needed&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 10pt;"&gt;dtsumm &amp;lt;&amp;lt; &lt;/SPAN&gt;&lt;SPAN style="color: navy; font-family: Consolas; font-size: 10pt;"&gt;delete columns&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: purple; font-family: Consolas; font-size: 10pt;"&gt;"N Rows"&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 10pt;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: green; font-family: Consolas; font-size: 10pt;"&gt;// Update the original data table with the Leaving data&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: green; font-family: Consolas; font-size: 10pt;"&gt;// Matching on the RecordID and the last staydate&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 10pt;"&gt;dt &amp;lt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 10pt;"&gt;Update(&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; With(dtsumm ),&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Match Columns( :RecordId = :RecordId, :StayDate = :StayDate )&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 10pt;"&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 10pt;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: green; font-family: Consolas; font-size: 10pt;"&gt;// Delete the summary data table&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 10pt;"&gt;&lt;SPAN style="color: #0000dd; font-family: Consolas; font-size: 10pt;"&gt;close&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 10pt;"&gt;( dtsumm, nosave );&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Mar 2016 02:13:49 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Delaying-lag-a-row-value-by-column-date/m-p/17636#M16080</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2016-03-25T02:13:49Z</dc:date>
    </item>
    <item>
      <title>Re: Delaying (lag) a row value by column date</title>
      <link>https://community.jmp.com/t5/Discussions/Delaying-lag-a-row-value-by-column-date/m-p/17637#M16081</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Jim Nelson,&lt;BR /&gt;Thank you for the input it does the job but I need to solve it with a formula column, the data base is huge and updating itself in every minute.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Mar 2016 09:01:32 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Delaying-lag-a-row-value-by-column-date/m-p/17637#M16081</guid>
      <dc:creator>saitcopuroglu</dc:creator>
      <dc:date>2016-03-25T09:01:32Z</dc:date>
    </item>
    <item>
      <title>Re: Delaying (lag) a row value by column date</title>
      <link>https://community.jmp.com/t5/Discussions/Delaying-lag-a-row-value-by-column-date/m-p/17638#M16082</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are the data for each RecordID always grouped together and in ascending order based upon StayDate?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If they are, here is a formula that will work:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If( :RecordId != Lag( :RecordId ) | Row() == 1,&lt;/P&gt;&lt;P&gt; ar = :ArrivalRoom&lt;/P&gt;&lt;P&gt;);&lt;/P&gt;&lt;P&gt;If( Date Difference( :StayDate, :CheckOutDate, "Day" ) == 1,&lt;/P&gt;&lt;P&gt; ar,&lt;/P&gt;&lt;P&gt; 0&lt;/P&gt;&lt;P&gt;);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Mar 2016 12:18:48 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Delaying-lag-a-row-value-by-column-date/m-p/17638#M16082</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2016-03-25T12:18:48Z</dc:date>
    </item>
    <item>
      <title>Re: Delaying (lag) a row value by column date</title>
      <link>https://community.jmp.com/t5/Discussions/Delaying-lag-a-row-value-by-column-date/m-p/17639#M16083</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear &lt;A href="https://kvoqx44227.lithium.com/people/karen@boulderstats" target="_blank"&gt;karen@boulderstats&lt;/A&gt;​ thank you for the input. Either I did it wrong or the formula itself gives error. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="11182_Screen Shot 2016-03-25 at 10.16.31.png" style="width: 745px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/2864i4C8B7B9AB697F1FE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="11182_Screen Shot 2016-03-25 at 10.16.31.png" alt="11182_Screen Shot 2016-03-25 at 10.16.31.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Oct 2016 02:12:20 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Delaying-lag-a-row-value-by-column-date/m-p/17639#M16083</guid>
      <dc:creator>saitcopuroglu</dc:creator>
      <dc:date>2016-10-19T02:12:20Z</dc:date>
    </item>
    <item>
      <title>Re: Delaying (lag) a row value by column date</title>
      <link>https://community.jmp.com/t5/Discussions/Delaying-lag-a-row-value-by-column-date/m-p/17640#M16084</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Jim Nelson! It works and yes the data is in ascending order.&lt;/P&gt;&lt;P&gt;Many thanks again, I can pull my report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="11186_Screen Shot 2016-03-25 at 18.11.16.png" style="width: 1168px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/2865iA9B5C7E66DA02D51/image-size/medium?v=v2&amp;amp;px=400" role="button" title="11186_Screen Shot 2016-03-25 at 18.11.16.png" alt="11186_Screen Shot 2016-03-25 at 18.11.16.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;P.S.: Unfortunately the &lt;STRONG&gt;'day'&lt;/STRONG&gt; have to come from the &lt;STRONG&gt;StayDate&lt;/STRONG&gt; for the &lt;STRONG&gt;ArrivalRoom&lt;/STRONG&gt; and &lt;STRONG&gt;RoomNight&lt;/STRONG&gt; but does not fit for &lt;STRONG&gt;RoomCout&lt;/STRONG&gt; which needs a +1 day delay (A guest can not stay and Check Out same day). Acc. to my logic it is impossible to solve it in one tabulate report like the one above...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Oct 2016 02:12:30 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Delaying-lag-a-row-value-by-column-date/m-p/17640#M16084</guid>
      <dc:creator>saitcopuroglu</dc:creator>
      <dc:date>2016-10-19T02:12:30Z</dc:date>
    </item>
    <item>
      <title>Re: Delaying (lag) a row value by column date</title>
      <link>https://community.jmp.com/t5/Discussions/Delaying-lag-a-row-value-by-column-date/m-p/17641#M16085</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, I didn't provide the exact correct formula.&amp;nbsp; You got close.&amp;nbsp; It is the "Day" piece that is tricky. Jim used the same formula in the script he wrote only he has it correct in that you need the quotes around "Day".&amp;nbsp; With many JMP formula's the options can be tricky (they generally make sense once you see them) so I find I often need the user manual to get all of the pieces correct.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Mar 2016 16:55:40 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Delaying-lag-a-row-value-by-column-date/m-p/17641#M16085</guid>
      <dc:creator>KarenC</dc:creator>
      <dc:date>2016-03-25T16:55:40Z</dc:date>
    </item>
  </channel>
</rss>

