cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • New to JMP? Join us Sept. 23-24 for the Early User Edition of Discovery Summit, tailor-made for new users. Register now for free!
  • Your voice matters! Tell us how you prefer to receive JMP updates, so we can tailor our communication to your needs. Take short survey.
  • See how to access JMP Marketplace - and - find, create & share add-ins to extend your JMP. Watch video.

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