Skip to main content
ExLibris

Knowledge Assistant

BETA
  • Subscribe by RSS
  • Back
    Alma

     

    Ex Libris Knowledge Center
    1. Search site
      Go back to previous article
      1. Sign in
        • Sign in
        • Forgot password
    1. Home
    2. Alma
    3. Knowledge Articles
    4. Analytics - retrieving records based on criteria of "x days before today"

    Analytics - retrieving records based on criteria of "x days before today"

    1. Last updated
    2. Save as PDF
    3. Share
      1. Share
      2. Tweet
      3. Share
    1. Question
    2. Answer
    • Article Type: Q&A
    • Product: Alma

    Question

    I'd like to schedule an automatic daily or weekly report of items
    added to Alma in the past "x" time period - probably the past 30 days

    Answer

    Under filter, select the comparison (less than, greater than), than instead of choosing a value, select "More Options" and "SQL query", and use the following:

    timestampadd(SQL_TSI_DAY, {x} ,CURRENT_DATE)
    where {x} is the number of days forward or back (and usually you'll want back, so a negative number) number of days.
    This sql can be used for months or years as well, by changing the SQL_TSI constant accordingly.

    Category: Analytics


    • Article last edited: 6/9/2014
    View article in the Exlibris Knowledge Center
    1. Back to top
      • Analytics - Recalled Items
      • Analytics - Total (sum) at Top of Table
    • Was this article helpful?

    Recommended articles

    1. Article type
      Topic
      Content Type
      Documentation
      Language
      English
      Product
      Alma
    2. Tags
      1. Analytics
      2. contype:kba
      3. Resource Management - Alma
    1. © Copyright 2025 Ex Libris Knowledge Center
    2. Powered by CXone Expert ®
    • Term of Use
    • Privacy Policy
    • Contact Us
    2025 Ex Libris. All rights reserved