Results 1 to 3 of 3
  1. #1
    richard70 is offline Novice
    Windows XP Access 2000
    Join Date
    Sep 2008
    Posts
    2

    Year over Year Comparision of Portfolio


    Hello. I would like to compare year over year total property revenue by month. Each monthly total shows the grand total of all valid properties. A property can only be included in a monthly comparison with the previous year if that property was active durring the previous year and current year for that month. For example, a property obtained in Feb 2010 would be exclded from contributing to the total revenue in Jan 2011, because it was not active in Jan 2010. I need to compare apples with apples. I have a revenue table showing the hotel ID, the month and year of the stay, and the revenue amount. I also have a property table that shows when a property became active, and when it terminates. Another issues is that not every property has revenue for each month. So if a property has no revenue in Feb 2010, it still needs to contribute to total revenue of Feb 2011, provided that it was active in Feb for both years. The tricky part is that revenue may be missing for a property because it has no revenue for that month, Or because I am trying to filter that property out of that month because I can't compare it with the next year. I don't know how to determine if data missing in one year means that I also need to exclude that property from the comparison year. The only time it should be excluded from a monthly grand total is if that property was not active durring both years for that month. Please help if you know what needs to be done. Thanks.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,931
    I expect will require multiple queries to accomplish. Maybe a query for each year, grouping by hotel and month, use an alias field name for the revenue field that includes the year. Join the queries on hotel and month fields, jointype of only where fields in both queries are equal. This should give side-by-side revenue columns for each year.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    richard70 is offline Novice
    Windows XP Access 2000
    Join Date
    Sep 2008
    Posts
    2
    Thank you June7. That is how it was done. I appreciate your advice!

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 1
    Last Post: 08-12-2011, 10:39 AM
  2. Show Year with Quarter
    By Mordred in forum Access
    Replies: 9
    Last Post: 06-30-2011, 07:50 AM
  3. Year to date sum
    By jzacharias in forum Database Design
    Replies: 6
    Last Post: 09-10-2010, 10:38 AM
  4. fiscal year
    By RedGoneWILD in forum Programming
    Replies: 4
    Last Post: 08-04-2010, 01:38 PM
  5. by year by month
    By nkuebelbeck in forum Reports
    Replies: 21
    Last Post: 03-24-2010, 01:53 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums