PC Review


Reply
Thread Tools Rate Thread

cumulative percentage

 
 
Cory
Guest
Posts: n/a
 
      20th Dec 2007
I have the following calculated fields on a form:

[Standard Time] and [Actual Time]

There is a field that calculates the cumulative percentage using the formula
TimeValue([Standard Time])/TimeValue([actual time]).
I would like to have an average of the cumulative percentage on the form
footer. Everything I try seems to error. I have tried to average and sum
these fields to get the result but nothing is working for me. Any help will
be appreciated.
 
Reply With Quote
 
 
 
 
Minton M
Guest
Posts: n/a
 
      20th Dec 2007
On Dec 20, 1:24 pm, Cory <C...@discussions.microsoft.com> wrote:
> I have the following calculated fields on a form:
>
> [Standard Time] and [Actual Time]
>
> There is a field that calculates the cumulative percentage using the formula
> TimeValue([Standard Time])/TimeValue([actual time]).
> I would like to have an average of the cumulative percentage on the form
> footer. Everything I try seems to error. I have tried to average and sum
> these fields to get the result but nothing is working for me. Any help will
> be appreciated.


I'm not sure you can perform aggregates on cumulative fields but I
could be wrong. The simple workaround is to create a query that
averages the TimeValue([Standard Time])/TimeValue([actual time])
calculation (since this will be the same value as the cumulative
average - unless my caffeine's not working today) and then use a
DLookup call to put this into your form.

-- James
 
Reply With Quote
 
Cory
Guest
Posts: n/a
 
      20th Dec 2007
How would I try this if these are not stored values? Each control is just
calculated.

"Minton M" wrote:

> On Dec 20, 1:24 pm, Cory <C...@discussions.microsoft.com> wrote:
> > I have the following calculated fields on a form:
> >
> > [Standard Time] and [Actual Time]
> >
> > There is a field that calculates the cumulative percentage using the formula
> > TimeValue([Standard Time])/TimeValue([actual time]).
> > I would like to have an average of the cumulative percentage on the form
> > footer. Everything I try seems to error. I have tried to average and sum
> > these fields to get the result but nothing is working for me. Any help will
> > be appreciated.

>
> I'm not sure you can perform aggregates on cumulative fields but I
> could be wrong. The simple workaround is to create a query that
> averages the TimeValue([Standard Time])/TimeValue([actual time])
> calculation (since this will be the same value as the cumulative
> average - unless my caffeine's not working today) and then use a
> DLookup call to put this into your form.
>
> -- James
>

 
Reply With Quote
 
Minton M
Guest
Posts: n/a
 
      20th Dec 2007
On Dec 20, 2:02 pm, Cory <C...@discussions.microsoft.com> wrote:
> How would I try this if these are not stored values? Each control is just
> calculated.
>
> "Minton M" wrote:
> > On Dec 20, 1:24 pm, Cory <C...@discussions.microsoft.com> wrote:
> > > I have the following calculated fields on a form:

>
> > > [Standard Time] and [Actual Time]

>
> > > There is a field that calculates the cumulative percentage using the formula
> > > TimeValue([Standard Time])/TimeValue([actual time]).
> > > I would like to have an average of the cumulative percentage on the form
> > > footer. Everything I try seems to error. I have tried to average and sum
> > > these fields to get the result but nothing is working for me. Any help will
> > > be appreciated.

>
> > I'm not sure you can perform aggregates on cumulative fields but I
> > could be wrong. The simple workaround is to create a query that
> > averages the TimeValue([Standard Time])/TimeValue([actual time])
> > calculation (since this will be the same value as the cumulative
> > average - unless my caffeine's not working today) and then use a
> > DLookup call to put this into your form.

>
> > -- James


Cory,

In a query you can have a calculated value that is the same formula as
your cumulative field (although it's not cumulative but won't matter
for this query).

For example:

select ID, [a]-[b] as MyValue
from WhateverTable

Getting the query to do the legwork will be faster than using controls
anyway. Then you just create a group by query that uses this one and
averages out the calculated value. Let me know if I need to be clearer
and I'll throw together an example.

-- James
 
Reply With Quote
 
Cory
Guest
Posts: n/a
 
      21st Dec 2007
If you could be a bit clearer and and example would help if you wouldn't
mind. Thanks.

"Minton M" wrote:

> On Dec 20, 2:02 pm, Cory <C...@discussions.microsoft.com> wrote:
> > How would I try this if these are not stored values? Each control is just
> > calculated.
> >
> > "Minton M" wrote:
> > > On Dec 20, 1:24 pm, Cory <C...@discussions.microsoft.com> wrote:
> > > > I have the following calculated fields on a form:

> >
> > > > [Standard Time] and [Actual Time]

> >
> > > > There is a field that calculates the cumulative percentage using the formula
> > > > TimeValue([Standard Time])/TimeValue([actual time]).
> > > > I would like to have an average of the cumulative percentage on the form
> > > > footer. Everything I try seems to error. I have tried to average and sum
> > > > these fields to get the result but nothing is working for me. Any help will
> > > > be appreciated.

> >
> > > I'm not sure you can perform aggregates on cumulative fields but I
> > > could be wrong. The simple workaround is to create a query that
> > > averages the TimeValue([Standard Time])/TimeValue([actual time])
> > > calculation (since this will be the same value as the cumulative
> > > average - unless my caffeine's not working today) and then use a
> > > DLookup call to put this into your form.

> >
> > > -- James

>
> Cory,
>
> In a query you can have a calculated value that is the same formula as
> your cumulative field (although it's not cumulative but won't matter
> for this query).
>
> For example:
>
> select ID, [a]-[b] as MyValue
> from WhateverTable
>
> Getting the query to do the legwork will be faster than using controls
> anyway. Then you just create a group by query that uses this one and
> averages out the calculated value. Let me know if I need to be clearer
> and I'll throw together an example.
>
> -- James
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
PUZZLED - Daily Percentage Change and Cumulative Stuart Microsoft Excel Discussion 7 12th Nov 2008 12:01 AM
Calculating cumulative percentage =?Utf-8?B?UHJvc3BlY3Q=?= Microsoft Excel New Users 4 5th Apr 2007 04:12 AM
basic question - how to calculate a cumulative percentage? =?Utf-8?B?UHJvc3BlY3Q=?= Microsoft Excel Worksheet Functions 3 4th Apr 2007 01:59 PM
Basic question - how to calculate a cumulative percentage =?Utf-8?B?UHJvc3BlY3Q=?= Microsoft Excel Misc 2 4th Apr 2007 12:24 PM
Cumulative percentage in subform BruceM Microsoft Access Forms 0 29th Jan 2007 04:11 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:59 AM.