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
lcpaul41
Level I

How to filter data by time, always 2 weeks prior to current time

Hi, Wondering how to add a data filter that would pull data only from the last 2 weeks of collection, starting from the time the script is ran. I see how to manually set based on a specific date/time, but not how to have this continuously change with relation to the time it is ran. The data I am looking to filter has full time stamps already. Thank you.

1 ACCEPTED SOLUTION

Accepted Solutions
txnelson
Super User

Re: How to filter data by time, always 2 weeks prior to current time

The Today() function returns the current datetime.  Therefore you can select or exclude using a statement such as

If( :DateTime >= today()-inweeks(2), <your specific action statements go here> )
Jim

View solution in original post

1 REPLY 1
txnelson
Super User

Re: How to filter data by time, always 2 weeks prior to current time

The Today() function returns the current datetime.  Therefore you can select or exclude using a statement such as

If( :DateTime >= today()-inweeks(2), <your specific action statements go here> )
Jim

Recommended Articles