<?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: Calculating days between similar or matching rows/events? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Calculating-days-between-similar-or-matching-rows-events/m-p/63879#M34162</link>
    <description>&lt;P&gt;This is perfect, exactly what I needed. Thanks!&lt;/P&gt;</description>
    <pubDate>Wed, 25 Jul 2018 16:55:50 GMT</pubDate>
    <dc:creator>Bearcat</dc:creator>
    <dc:date>2018-07-25T16:55:50Z</dc:date>
    <item>
      <title>Calculating days between similar or matching rows/events?</title>
      <link>https://community.jmp.com/t5/Discussions/Calculating-days-between-similar-or-matching-rows-events/m-p/63835#M34147</link>
      <description>&lt;P&gt;Hi everyone, I have a list of events and their dates. I want to calculate the number of days since a matching event happened.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example, I have a list of patients visiting a doctor. I have the first two columns, Name and Date of Visit, but I would like to know how to calculate the third column, Days Since Last Visit. This would return only the number of days since Dave's &lt;EM&gt;most recent visit.&amp;nbsp;&lt;/EM&gt;Any guidance, especially in formula creation, would be appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Name&lt;/TD&gt;&lt;TD&gt;Date of Visit&lt;/TD&gt;&lt;TD&gt;Days Since Last Visit&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;John&lt;/TD&gt;&lt;TD&gt;6/1/2018&lt;/TD&gt;&lt;TD&gt;.&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Dave&lt;/TD&gt;&lt;TD&gt;6/14/2018&lt;/TD&gt;&lt;TD&gt;.&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Mike&lt;/TD&gt;&lt;TD&gt;6/17/2018&lt;/TD&gt;&lt;TD&gt;.&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Mike&lt;/TD&gt;&lt;TD&gt;6/21/2018&lt;/TD&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Dave&lt;/TD&gt;&lt;TD&gt;7/1/2018&lt;/TD&gt;&lt;TD&gt;16&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;John&lt;/TD&gt;&lt;TD&gt;7/3/2018&lt;/TD&gt;&lt;TD&gt;32&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Tue, 24 Jul 2018 21:04:56 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Calculating-days-between-similar-or-matching-rows-events/m-p/63835#M34147</guid>
      <dc:creator>Bearcat</dc:creator>
      <dc:date>2018-07-24T21:04:56Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating days between similar or matching rows/events?</title>
      <link>https://community.jmp.com/t5/Discussions/Calculating-days-between-similar-or-matching-rows-events/m-p/63849#M34151</link>
      <description>&lt;P&gt;Bearcat, there are likely multiple methods to do this, but here is my recommendation. Create a column named Date of Last Visit and then find the difference. To get the date of the last visit, I attached a script to the data table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So add new records, run the table script and the table is updated. By keeping the Date of Last Visit, it is easier to verify results.&lt;/P&gt;&lt;P&gt;Note to get days find the difference in the dates and divide by 24*60*60, the number of seconds in a day.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope this helps.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jul 2018 05:57:00 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Calculating-days-between-similar-or-matching-rows-events/m-p/63849#M34151</guid>
      <dc:creator>gzmorgan0</dc:creator>
      <dc:date>2018-07-25T05:57:00Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating days between similar or matching rows/events?</title>
      <link>https://community.jmp.com/t5/Discussions/Calculating-days-between-similar-or-matching-rows-events/m-p/63879#M34162</link>
      <description>&lt;P&gt;This is perfect, exactly what I needed. Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jul 2018 16:55:50 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Calculating-days-between-similar-or-matching-rows-events/m-p/63879#M34162</guid>
      <dc:creator>Bearcat</dc:creator>
      <dc:date>2018-07-25T16:55:50Z</dc:date>
    </item>
  </channel>
</rss>

