+ Reply to Thread
Results 1 to 5 of 5

Access with Time Series

  1. #1
    Registered User
    Join Date
    01-17-2005
    Posts
    28

    Access with Time Series

    Hi

    I have an Access database with hourly time series data. How would I create a query that calculates the difference between observations at 12:00pm vs 11:00am or the difference between yesterday and last week? Is this possible in Access?

    Thanks,

    Jay

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2406 Win 11 Home 64 Bit
    Posts
    24,011

    Re: Access with Time Series

    Depending on how your tables are structured, this may be possible. How are your tables structured? What information are you trying to retrieve? Give us some sample data so that we can give you a reasonable answer. What version of Access are you using.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Registered User
    Join Date
    01-17-2005
    Posts
    28

    Re: Access with Time Series

    I am using Access 2003, Access 2000 file format. I've attached an excel spreadsheet with what my database looks like.

    Thanks.
    Attached Files Attached Files

  4. #4
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2406 Win 11 Home 64 Bit
    Posts
    24,011

    Re: Access with Time Series

    Here is a solution. You may want to create a search form or set parameters to allow variable searches. But this should get you started. There are three queries. You would set your criteria in the first query and then run the third one as it is based upon the first and second.

    The first query accepts the criteria and returns the data to be analyzed/calculated.

    The second query establishes row numbers that will allow the third query pull the prior data.

    The third query then does the calculation.

    Alan
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    01-17-2005
    Posts
    28

    Re: Access with Time Series

    Thanks for the help Alan. I'll review what you've done and try to wrap my head around it.

    Appreciate the help.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1