Results 1 to 14 of 14
  1. #1
    chavez_sea is offline Competent Performer
    Windows 7 32bit Access 2007
    Join Date
    Feb 2011
    Posts
    105

    Budget report

    Hello,


    I need help with running a report. I have two tables ,one budget table with the amounts allocated. (Budget have eg. Staff costs code #1, with sub items 1.1, 1.2, 1.3 etc and Expenses code 2, with sub items 2.1, 2.2, etc
    I have another table with expenditure. I want to run a report for a specific time period ( I have that part) listing all transactions and showing what is the balance is per main heading. I made a query linking the sub items in both tables, and specifying that it brings all records from the budget on those that match in the expenditure table.
    The result is that for every expenditure it brings the amount budgeted, in the end "blowing' up the budgeted figure. I tried using AVG instead of sum but the end overall total budget is still wrong.

    Thanks for help.

    Cristina (chavez_sea)

  2. #2
    Dal Jeanis is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2013
    Location
    Dallas TX
    Posts
    1,742
    Actually, I think you don't want an inner join, I think you want full outer join. If they've spent money that wasn't allocated, you want to know. If they've allocated money but spent nothing, you want to know.

    Here's what I'd do if I were you.

    1) Make a query that correctly calculates the budget by category. Ignore the expenses for now.
    2) Make a query that correctly calculates the expenses by category. Ignore the budget for now.
    3) Make a query that matches and nets the budget against the expenses by category.

    Take it step by step. If you can't do #1, then don't jump to #3. Ask the questions here that tell you how to do it.

  3. #3
    chavez_sea is offline Competent Performer
    Windows 7 32bit Access 2007
    Join Date
    Feb 2011
    Posts
    105
    what is a full outer join?

  4. #4
    chavez_sea is offline Competent Performer
    Windows 7 32bit Access 2007
    Join Date
    Feb 2011
    Posts
    105
    Also what I need is a detail listing of all the expenditure transactions with totals and that matched with the budget for the category of expenses. If I understand what you said to do would be s summary for both expense and budget.
    This is an example of the report. The budget for inspectors shows up beside each expense
    I average the total budget estimate and so it gives me the correct total
    STAFF COSTS
    1.5 Inspectors (Engineer)
    1.5 Inspectors (Engineer)
    1.5 Inspectors (Engineer)
    1.5 Inspectors (Engineer)
    budget estimate:
    The grand total at the end however is wrong for the total budget
    Thanks

  5. #5
    Dal Jeanis is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2013
    Location
    Dallas TX
    Posts
    1,742
    So, you don't know how to make a budget by category?

    Okay, you'll have to post the table structure and the structure of the current query. We'll get you sorted out.

  6. #6
    chavez_sea is offline Competent Performer
    Windows 7 32bit Access 2007
    Join Date
    Feb 2011
    Posts
    105
    sorry this is the table
    This is an example of the report. The budget for inspectors shows up beside each expense
    I average the total budget estimate and so it gives me the correct total
    STAFF COSTS Expenditure
    1.5 Inspectors (Engineer) €408,000.00 €735.24
    1.5 Inspectors (Engineer) €147.05
    1.5 Inspectors (Engineer) €147.05
    1.5 Inspectors (Engineer) €147.05
    budget estimate: 408,000.00 1,176.39 406,823.61
    The grand total at the end however is wrong for the total budget

  7. #7
    chavez_sea is offline Competent Performer
    Windows 7 32bit Access 2007
    Join Date
    Feb 2011
    Posts
    105
    I have one report that I did of summary of expenditure matched with the total budget by category and that works fine. I have to do another report listing the expenditure in detail and showing the the budget , and the balance, and a grand total, like the example above. The Grand total is where the problem occurs

  8. #8
    chavez_sea is offline Competent Performer
    Windows 7 32bit Access 2007
    Join Date
    Feb 2011
    Posts
    105

  9. #9
    Dal Jeanis is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2013
    Location
    Dallas TX
    Posts
    1,742
    Totals look right to me. The subtotals aren't double-included, anyway. Which ones do you think are off?

  10. #10
    chavez_sea is offline Competent Performer
    Windows 7 32bit Access 2007
    Join Date
    Feb 2011
    Posts
    105
    This is the budget the total is 1,258,355

  11. #11
    chavez_sea is offline Competent Performer
    Windows 7 32bit Access 2007
    Join Date
    Feb 2011
    Posts
    105
    The first part the staff cost is correct , that is where there was not expenditure.
    THE TOTAL FOR THE operating should be $147,955 see below:
    Amount
    STAFF $126,000.00
    STAFF $126,000.00
    STAFF $81,000.00
    STAFF $42,000.00
    STAFF $408,000.00
    STAFF $204,000.00
    STAFF $18,000.00
    STAFF $5,400.00
    STAFF $100,000.00
    TOTAL $1,110,400.00
    OPERATING $5,400.00
    OPERATING $18,000.00
    OPERATING $18,000.00
    OPERATING $40,000.00
    OPERATING $8,000.00
    OPERATING $7,000.00
    OPERATING $15,000.00
    OPERATING $21,600.00
    OPERATING $14,955.00
    TOTAL $147,955.00
    GRAND TOTAL $1,258,355.00

  12. #12
    chavez_sea is offline Competent Performer
    Windows 7 32bit Access 2007
    Join Date
    Feb 2011
    Posts
    105
    The reason it appears that the budget is not duplicated is because for the detail, I chose the option to hide duplicates, and for the subtotal, as opposed to SUM for the expenditure I put AVG so that is shows up the average which is works out.
    =Avg([Programme estimate budget estimate]) =Sum([Sum total of records])(where records represents each payment. The error occurs at the subtotal by OPERATING EXPENSES, thereby also making an error in the TOTAL BUDGET.

    Thanks

  13. #13
    Dal Jeanis is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2013
    Location
    Dallas TX
    Posts
    1,742
    Don't you want those expenses to be negative, so that they net from the remaining budget?

  14. #14
    chavez_sea is offline Competent Performer
    Windows 7 32bit Access 2007
    Join Date
    Feb 2011
    Posts
    105
    Well they could be, but I subtract them to get my remaining balance. I just need my total budget figures corrected. Do you see the problem?

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

Similar Threads

  1. Database options - on a budget
    By Ally1205 in forum Access
    Replies: 11
    Last Post: 07-19-2013, 03:59 AM
  2. 12 months Budget
    By Qian in forum Access
    Replies: 1
    Last Post: 07-14-2012, 02:13 AM
  3. Budget Calculations
    By Arwa in forum Queries
    Replies: 4
    Last Post: 07-26-2011, 03:56 AM
  4. Budget vs Actual
    By chaos in forum Access
    Replies: 1
    Last Post: 05-04-2011, 08:25 AM
  5. Budget and Collections(Actuals)
    By dref in forum Forms
    Replies: 0
    Last Post: 08-19-2010, 03:39 AM

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