cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • JMP will suspend normal business operations for our Winter Holiday beginning on Wednesday, Dec. 24, 2025, at 5:00 p.m. ET (2:00 p.m. ET for JMP Accounts Receivable).
    Regular business hours will resume at 9:00 a.m. EST on Friday, Jan. 2, 2026.
  • We’re retiring the File Exchange at the end of this year. The JMP Marketplace is now your destination for add-ins and extensions.

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