cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • See how to interactively organize and restructure data for analysis. Register for May 29 webinar, 2pm US ET.

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