<?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 Filter data within date and time range in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Filter-data-within-date-and-time-range/m-p/424593#M67371</link>
    <description>&lt;P&gt;Hi.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to filter data within 2 dates.&amp;nbsp;&lt;/P&gt;&lt;P&gt;the dates are in another table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;Table 1:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="thoufik11_0-1633663944125.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/36409i326C6865887D4865/image-size/medium?v=v2&amp;amp;px=400" role="button" title="thoufik11_0-1633663944125.png" alt="thoufik11_0-1633663944125.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Table 2:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="thoufik11_1-1633664014188.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/36410i0CACB0279D0221CC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="thoufik11_1-1633664014188.png" alt="thoufik11_1-1633664014188.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;How can I filter the data in table 1 that has END_TIME between the START_TIME and END_TIME in table 2?&lt;/P&gt;&lt;P&gt;I want the result in the new table.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope I explained it clearly.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 10 Jun 2023 23:38:06 GMT</pubDate>
    <dc:creator>thoufik11</dc:creator>
    <dc:date>2023-06-10T23:38:06Z</dc:date>
    <item>
      <title>Filter data within date and time range</title>
      <link>https://community.jmp.com/t5/Discussions/Filter-data-within-date-and-time-range/m-p/424593#M67371</link>
      <description>&lt;P&gt;Hi.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to filter data within 2 dates.&amp;nbsp;&lt;/P&gt;&lt;P&gt;the dates are in another table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;Table 1:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="thoufik11_0-1633663944125.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/36409i326C6865887D4865/image-size/medium?v=v2&amp;amp;px=400" role="button" title="thoufik11_0-1633663944125.png" alt="thoufik11_0-1633663944125.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Table 2:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="thoufik11_1-1633664014188.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/36410i0CACB0279D0221CC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="thoufik11_1-1633664014188.png" alt="thoufik11_1-1633664014188.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;How can I filter the data in table 1 that has END_TIME between the START_TIME and END_TIME in table 2?&lt;/P&gt;&lt;P&gt;I want the result in the new table.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope I explained it clearly.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 10 Jun 2023 23:38:06 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Filter-data-within-date-and-time-range/m-p/424593#M67371</guid>
      <dc:creator>thoufik11</dc:creator>
      <dc:date>2023-06-10T23:38:06Z</dc:date>
    </item>
    <item>
      <title>Re: Filter data within date and time range</title>
      <link>https://community.jmp.com/t5/Discussions/Filter-data-within-date-and-time-range/m-p/424608#M67372</link>
      <description>&lt;P&gt;Here is a simple example of one type of filtering&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );

// Substitute the actual names of your data table
dt1 = Data Table( "table 1" );
dt2 = Data Table( "table 2" );

// This statement will select all of the rows in data table 1 that are
// between the start and end dates from the second data table
// Taking the value in the second data table's first row for the columns
// START_TIME of SideAStart and END_TIME of SideAEnd
// Not knowing what you really mean as "Filter the Data Table", this is
// a guess as to how you want to "Filter" the data
dt1 &amp;lt;&amp;lt; dt1 &amp;lt;&amp;lt; select where( dt2:START_TIME of SideAStart[1] &amp;lt;= dt1:END_TIME &amp;lt;= dt2:END_TIME of SideAEnd[1] );&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 08 Oct 2021 04:30:00 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Filter-data-within-date-and-time-range/m-p/424608#M67372</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2021-10-08T04:30:00Z</dc:date>
    </item>
  </channel>
</rss>

