Jump to content
  • 0

Only display records older than specified time


AdamH

Question

I'm trying to create a report that displays all records "older" than "X Hours."

For instance, suppose I had 100 submissions 24+ hours ago, and 100 submissions today (within the last 24 hours). I want a report only displaying the 100 submissions from 24+ hours ago (and everything else prior to then -- but it excludes the submissions within the past 24 hours). Ideally this is specifiable by number of hours. EG, display all submissions/records older than X hours.

(Records are tagged with date/time of original submission).

Thanks.

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 1

Hi Adam,

You could add a new field "Date_filter" of Formula data type to your table and use the following function:

 Dateadd(hour,24,[@field:timestamp])

Replace [@field:timestamp] with the name of your field that holds date/time of original submission.

In the pre-defined criteria report, on Select Filtering Fields screen, move "Date_filter" to Selected Fields area. On the Configure Filtering Fields screen click on the "Date_filter" field and choose "Before Now" as comparison type.

Hope this helps.

Ariel

Link to comment
Share on other sites

  • 0

Wow ! this is what I was looking for!  I want to filter records except showing the last 7 days.  It works perfectly.  Set a formula field and add 7 days to the date submitted and then filter using Before Now and records that are 7 days new wont show up because their date is actually stamped ahead.

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...