Help Needed With Cumulative Totals And Graphs

Jul 31, 2006

Hi all,

New user here so apologies if I post in the wrong place.

My colleague and I are trying to put together a database which automates a very time consuming process which is currently being done in Excel.

The purpose of the database is to pull together a load of actuals from SAP and then the forecasts we have put together and then chuck out a whole load of graphs and a summary spreadsheet/ report for the upper echelons;ons of management.

The data is in the database and so far it is all going well - but we have hit a stumbling block. We need Access to calculate some cumulative totals so that we can throw the whole lot into our excel graphs but we can't figure out how to do it.

We are using ye olde Access 97 so our options are a little limited.

Can anyone give us a starter for 10? If you need anything more technical, I can post whatever information you need.

Thanks
Tasha

View Replies


ADVERTISEMENT

Cumulative Totals

Nov 9, 2005

I have two tables, one for budget and the other for actual expenditure. I need a query or queries that will give me a cumulative figure on 3 groups based on the expenditure table. In my expenditure table I have the following fields.

ExpenditureID Autonumber
Period Text
CostCentre Text
CostCode Text
Value Currency
fldDate Short Date

I have managed to fnd a function that will give me a running sum for each individual group, but cannot seem to get it to work for more than 1 group. The function is this.
Function fncRunSum(lngCatID As Long, lngUnits As Long) As Long
'Variables that retain their values.
Static lngID As Long
Static lngAmt As Long

If lngID <> lngCatID Then
'If the current ID does not match the last ID, then (re)initialize.
lngID = lngCatID
lngAmt = lngUnits
Else
'If the current ID matches the last, keep a running sum for the ID.
lngAmt = lngAmt + lngUnits
End If

'Pass the running sum back to the query.
fncRunSum = lngAmt
End Function

Is there any way I can see the results in one query or table? Any help appreciated.

View 6 Replies View Related

Cumulative Totals - Please Help

May 26, 2006

Hi,
I'm having trouble trying to create an expression for generating cumulative totals by Month.

I believe this is the function I need to use -

DSum (expression, domain, [criteria] )

I need the layout to be as follows -

Months - Rows
Cumulative Monthly Despatches - Column

I have a field list with
Months
Despatches
Models

All of these are from another Query and 'Despatches' is an expression generated in the other query

Can anyone please Help?!

View 1 Replies View Related

Cumulative Monthly Totals?

May 31, 2006

Hi,

I'm trying to create an expression that will calculate cumulative monthly totals but my expression seems to only calculate totals for all months
e.g
MonthDirect DespatchesCum Direct Despatches
2006/031580 21867
2006/0410681 21867
2006/059606 21867

The expression I’m using is
Cum Direct Despatches: (Select Sum([Direct Despatches]) from QRY_DirectDespatches_ByMonth_ByModel)

The query should display the following results -
MonthDirect DespatchesCum Direct Despatches
2006/031580 1580
2006/0410681 12261
2006/059606 21867

I'm using Access 2002 on XP.
Can anyone please advise me where i'm going wrong?!
Thanks in advance for the response

View 3 Replies View Related

Creating Weekly Report From Cumulative Totals

Mar 13, 2013

I have an excel report which I would like to run through Access to drive trend analysis and compare with other similar reports. The excel report has a cumulative spend figure each week and not the actual weekly spend numbers, the budget figure also can change depending on the actuals.

Excel report:

Week 1
Product ID
Customer
Yearly Budget
Spend

1122
Sam
100
3

1123
John
200
4

[code]...

Will I need to create a new table each week or can I link the file and it updates automatically?Can Access store the weekly data and just update it one week at a time?

View 3 Replies View Related

Tips Needed: Access Books, Graphs, PDF

Jun 26, 2005

Hello,

I am about to start a project where I must link an Access front-end database to an Oracle backend. I have about a year of Access development behind me now, and now here is the next challenge.

What I have to do is create analyses of data and output the data mainly in the form of diagrams (i.e. graphs or charts). I have seen how this can be done with Automation in Access in a book by Alison Balter (Mastering Access 2000 Development), by controlling the Excel object etc.

Here are my 2 questions:

1. I am considering buying another book on Access now, something that will contain more examples/methods for presenting information as a graph with the help of Excel. Should I stick to buying an Access book, or should I look into getting something that is more Excel programming oriented, i.e. something like an “Excel programmers compendium”? Any recommendations/tips to get me started would be appreciated.

2. The users want the graphs that I produce to be saved as a .PDF automatically at the push of a button in the Access GUI. How is this done? Do I need special software, or can I use something like PDFWriter to automatically convert the Excel graphs into .PDF’s?

Thanks in advance for the tips and have a nice day! :)

J

View 3 Replies View Related

Reports :: Sum Of Multiple Running Totals / Cumulative Data

Jul 29, 2013

i have a table with health facilities (A,B,C,D) . each health facility has data from several months (Jan, Feb, Mar etc). the table has 2 fields (New Patients) and (Cumulative Patients) . Cumulative Patients is a total of New Patients for current month plus the total patients for the previous month. In the Facility Footer of the report if i create text boxes with data =Sum([New Patients]) and =([Cumulative Patients]) works well.

However in the Report Footer =Sum([New Patients]) works but =Sum([Cumulative Patients]) totals everything. if i try =([Cumulative Patients]).

View 8 Replies View Related

Crosstab Query Totals Needed

Oct 10, 2006

hey all,

I've created a crosstab query that shows a weekly cost associated with an employee which is dependant on his/her start and end date.

that is, there is a list of employees (row heading) with forecast weeks (column heaging) and a "weeklyforecastedrate" (value) which is dependant on the employees start and end.

my goal now is to total values per employee by quarters. for example, my weeks start on 9/30/06 and run til 3/31/07. i want to sum the values between Q1: 9/30/06 to 12/23/06 per employee, between Q2: 12/30/06 to 3/24/07 per employee, etc.

i have a tbl called tbl_Quarter_Costs which capture the dates per quarter.

can i add this function to the existing crosstab query? if yes, how?

thansk
tuktuk

View 10 Replies View Related

Graphs

Jan 15, 2008

I have created a table in Access with the data I need to put into a line graph.

The data is in this format:

[Table]....

This just a snapshot of the data. What i would like to do is produce seperate line graphs for each town, charting the temperatures over the three years. Because there is so much data i need to find a way which can produce graphs on mass.

View 1 Replies View Related

Totals Query/sums/grand Totals

Sep 4, 2007

Hey all! This is my first post. Been searching through the net all day trying to find a solution to this problem. Basically i have a table that looks like this (regular text is what i have and bolded text is what I need:Name Date Qty MOBrad 12/12/2007 23323 4423John 12/11/2007 3445 4432 John 12/11/2007 344 4432 John 12/11/2007 45 4432 John 12/11/2007 44 4432 John 12/11/2007 3445 4432 Grand Total: (Qty)And then I'd like to be able to carry this over and display a grand total at the bottom of every page of a report that I would need to generate. Our company produces forms and we sometimes have 60 - 70 people working on a single job. We want to see their hours individually but we would also like to see a grand sum of all their hours. If someone could help with this or needs more info let me know. Thanks for all your help!

View 14 Replies View Related

Graphs In Access

Jun 2, 2005

is it possible to place a graph from Excel in an Access report? instead of using the Access pivot charts?

Thanks
Kevin

View 1 Replies View Related

Making Graphs

Apr 18, 2006

I am not sure where to post this so could someone please move it to the appropriate area thanks.

I want to make a graph that will show how many employees are in the company for each year (Going back 10 years and keeping up to date) I have never done this before and our teacher feels that its best if we learn on our own (basicaly he's an idiot).

How do I go about using the pivot chart?

I have made a query which adds up the total number of employees at the current time.. but apart from that I havent a clue. I want the graph to have the years on the bottom and numbers up the side (1,2,3,4,5 etc) and then the number of employees that were in the company during that year will be plotted.

I will use a table that is to be used for archiving to mke the query as it will have all the employees who were ever in the system record.

The table is thus:

Employee_ID
Emp_First_Name
Emp_Surname
Age
Emp_Home_Number
Emp_Mobile_Number
Emp_Address_1
(so on and including postcode)
Date_Started
Position_ID

I have no idea what to do other than to rename the axes and change the increments, but they are jsut numbers, no dates or anything.

Any help apreciated.

View 6 Replies View Related

Graphs Replicating

Jun 13, 2005

Hi All,

This is a simple problem i think....but am struggling to find a variable to change!.

The problem is that i have a chart on a form, but the chart is replicated 22 times (i.e 22 charts on seperate pages)...there should only be 1!

I have 22 variables on the X-Axis...so am presuming it is linked to that somehow. am also graphing off a crosstab.

I am still searching for a solution myself...but thought i'd ask in here incase anyone has any ideas/experience of this problem!

Thanks!

View 1 Replies View Related

Graphs In Forms

Aug 30, 2005

I am a bit of a db virgin! So I would appreciate some assistance please.
I am trying to display a graph in the form view of a db.
The db is comprised of a standard form and table set up but the data comes from a series of linked excel spreadsheets.
Basically it is a way of displaying student data for parents evenings at school and I would like a graph to make it the data more visual.

can anyone help?

View 5 Replies View Related

Graphs With Minutes Along The Bottom

May 19, 2005

I have some machine data to display showing running speeds. This is logged every minute when the machine is running but not when stopped.

how do I display a bar graph with a timescale along the bottom of minutes showing gaps when the mchine is down. :confused:

View 2 Replies View Related

Pivotcharts, Graphs Export

Nov 3, 2006

I do not know why this has been so difficult. I have search google and even this forum. There is no clear cut explanation on how to build a button on a form to export a pivotchart to a jpg. Does anyone know how this can be done. please show code.

View 1 Replies View Related

How To Atomically Create Graphs Using Vba

Jul 17, 2006

I have a number of deliverables and want to create a graph for each one,
I can get a list of deliverable via a select statement but not sure how to create a graph from that

For example I have this sql statement as the row source for a graph

Code:SELECT Team.TeamLeadName AS Expr1, FormatPercent(Avg(RawData.PercentComplete)) AS CurrentProgressFROM Team, RawDataWHERE (((RawData.TeamLeadNumber)=[Team].[TeamLeadNumber]) AND ((RawData.DeliverableDesc)="RACE Off-the-runs v1"))GROUP BY Team.TeamLeadName;

"RACE Off-the-runs v1" is a deliverable

I had the idea of taking the list of deliverables and iterating through them, for each iteration set the row source for a graph as

Code:SELECT Team.TeamLeadName AS Expr1, FormatPercent(Avg(RawData.PercentComplete)) AS CurrentProgressFROM Team, RawDataWHERE (((RawData.TeamLeadNumber)=[Team].[TeamLeadNumber]) AND ((RawData.DeliverableDesc)="deliverableNAME"))GROUP BY Team.TeamLeadName; where deliverableNAME = the current deliverable in the iteration

The problem is
1)I’m not sure if/how to set the row source with a variable (in this case the variable is deliverableNAME)
2)How would I make sure that each iteration its creating a new graph, rather then just overwriting the existing one. Basically how to have each iteration create a new graph.
3)How would I store these graphs, each one on its own form, can they all be on one form (access seems to limit the height a form to 22 inches)

View 1 Replies View Related

Analysis Graphs For Individual Customers

Mar 4, 2005

My database records order details for analysis. I have created a form to monitor individual trends in orders placed by my customers. As we supply bespoke items each customer has a list of products which they alone purchase, i.e we do not supply stock items, each item is specifically for one customer (they can then buy the items on a regular basis). The products are assigned to a customer in the products table.

The Analysis form I have created displays the customers name and two graphs. The first graph shows total sales each month, this graph updates as I navigate through the records (i.e. a different graph is loaded for each customer). The form also contains another graph, this is where the problem lies! This graph shows orders of the individual products, controlled by a drop down list containing all the products we supply. I need to limit this list to only show those products relevant to the current customer select on the form. (The products are assigned to a customer in my products table). Currently I achieve this by using a query which when the form is opened asks me to enter a customer ID, the drop down list is then limited to the products supplied to that customer.

What I would like is for the drop down list to update as I navigate through the records. i.e. when customer A is displayed show all the products assigned to customer A, when customer B is displayed show all the products assigned to customer B.

I’ve attached a snapshot of the form to help explain what I mean.

Thanks for any suggestions.

View 1 Replies View Related

Printing Graphs On Inkjet Printers

Jan 5, 2005

i have a graph in access, and when i print it on a laserjet printer, all of the data and text prints. When i print the graph on a inkjet, only the text prints...not the graph. How do i solve this?

View 1 Replies View Related

General :: Adding Values To Graphs?

May 23, 2013

anyway you can add the values onto a graph

eg i have created a bar graph and on each bar would like the value shown on the top of it

View 9 Replies View Related

Graphs In Report Not Working In ACCDE Version

Sep 6, 2013

Using Access 2010 32-bit. I have a report that contains a Graph Chart (class = MSGraph.Chart.8). The reports works fine using the uncompiled .accdb. When I compile to .accde, the report is not rendered...I get an empty report screen as though Access is going to produce the report and nothing happens. I have to terminate Access using the "X" at the top right.

View 3 Replies View Related

General :: Access 2007 - Line And Bar Graphs As Report?

Jun 11, 2012

Is it possible to create a line or bar graph as a report in Access 2007?

If so, how would you go about it?

View 1 Replies View Related

Queries :: Graphs - How To Change Chart Type Using VBA Code

Apr 28, 2014

I am trying to change the chart type on a MSGraph control that I have added on my form. However, there is no graph.ChartType

OLE Class: Microsoft Graph Chart
Class: MSGraph.Chart.8

View 6 Replies View Related

Cumulative Row Function?

May 23, 2005

How to make calculated field that represents cumulative row?
For example – table has fields "transaction_number", "trans_date" and "trans_amount".
In this table I register money transactions on my bank-account. I need calculated field that is going to show how much money is on my account after every transaction.

Thanks

View 8 Replies View Related

Queries :: Sum Cumulative By Id?

Aug 22, 2013

how can i do this in a query

Id---Q---Cu
1---10---10
1---10---20
1---10---30
2---10---10
2---10---20
2---10---30

View 2 Replies View Related

Selective Cumulative Sums

Sep 24, 2007

Good afternoon,

I am trying to figure out how to create a cumulative sum field for a test report I am working on. On a very simple level, I can run queries to get my data into the following format:

Test # | Article # | Test Time | Test Parameters
1 | 1 | 8 | A,B,C
2 | 2 | 5 | A,B,C
3 | 2 | 7 | A,B,C
4 | 2 | 9 | A,B,C

For each test number, I want a separate report page showing the article number, test time, and test parameters. Also on each page, I want to display the cumulative test time for all test numbers up to the displayed test number, but only for the article used in that test.

For this example, page three would have test number 3, article number 2, test time 7, test parameters A,B,C, and cumulative test time on article 2 of 12 (5+7), while page four would have a cumulative test time on article 2 of 21 (5+7+9).

How can I convince Access to do this for me? So far I've only been able to have a cumulative test time for all test articles, not just the test article related to the test number. To make this more complicated, Access needs to be able to have another article added at any time without having to rework the code to create the test reports.

I appreciate any help you can give me that will get me on my way.

Thanks!
Erik

View 4 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved