cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Sign-in to the JMP Community will be unavailable intermittently Dec. 6-7 due to a system update. Thank you for your understanding!
  • We’re retiring the File Exchange at the end of this year. The JMP Marketplace is now your destination for add-ins and extensions.
  • JMP 19 is here! Learn more about the new features.

Discussions

Solve problems, and share tips and tricks with other JMP users.
Choose Language Hide Translation Bar
Danial1
Level II

How do I select rows within a specific time range and create a new column using the selected rows?

For example, I only wanted to select rows when the time is between 7pm-10pm. How do I create a column with the selected rows within the specified time range?

Danial1_0-1605693947009.png

 

1 ACCEPTED SOLUTION

Accepted Solutions
ian_jmp
Level X

Re: How do I select rows within a specific time range and create a new column using the selected rows?

Using the 'Hour()' function (see 'Help > Scripting Index'), you could add a new column with a formula such as:

Hour( :test_start_date ) >= 19 & Hour( :test_start_date ) <= 22

View solution in original post

2 REPLIES 2
ian_jmp
Level X

Re: How do I select rows within a specific time range and create a new column using the selected rows?

Using the 'Hour()' function (see 'Help > Scripting Index'), you could add a new column with a formula such as:

Hour( :test_start_date ) >= 19 & Hour( :test_start_date ) <= 22
Danial1
Level II

Re: How do I select rows within a specific time range and create a new column using the selected rows?

Thanks a lot for the prompt response. It helped a tonne!

Recommended Articles