RE: Counting based on a conditional expression
From: Fons Ponsioen (FonsPonsioen_at_discussions.microsoft.com)
Date: 01/27/05
- Next message: Bob Brannon: "Re: page margin"
- Previous message: Samaba Jones via AccessMonster.com: "Re: How do I suppress the page header when the report footer prints?"
- In reply to: Tina: "RE: Counting based on a conditional expression"
- Next in thread: Tina: "RE: Counting based on a conditional expression"
- Reply: Tina: "RE: Counting based on a conditional expression"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 27 Jan 2005 09:43:10 -0800
Tina,
I would try:
=Sum(ABS([Adjusted bill time]<[Productivity Expectation])
Each time the adjusted BillTime is less than Productivity Expectation this
would result in
=Sum(ABS(-1) and if not =Sum(ABS(0)
The ABS function than changes the -1 to a 1
Than Sum() wil summarize the data for whatever group you set in the query or
report.
Than group your query or report by [Week Of]
Hope this helps.
Fons
"Tina" wrote:
> Fons, I tried doing this...
>
> =Sum(Abs([Week of]="[Adjusted bill time]<[Productivity Expectation]"))
>
> I received a "data type mismatch" error?????
> Also, should it be count instead of sum?
>
> "Fons Ponsioen" wrote:
>
> > Hi Tina.
> > What you could try is:
> > =Sum (Abs([YourField]="TheConditionYouWantToCount"))
> > Hope this helps.
> > Fons
> >
> > "Tina" wrote:
> >
> > > I am trying to do a count based on a conditional expression in my report, if
> > > that's possible.
> > >
> > > I want to do a count on my "Week of" field if ([Adjusted bill
> > > time]<[Productivity Expectation]). I'm getting "overflow" and all sorts of
> > > other errors.
> > >
> > > Can this be done? Thanks for any help.
- Next message: Bob Brannon: "Re: page margin"
- Previous message: Samaba Jones via AccessMonster.com: "Re: How do I suppress the page header when the report footer prints?"
- In reply to: Tina: "RE: Counting based on a conditional expression"
- Next in thread: Tina: "RE: Counting based on a conditional expression"
- Reply: Tina: "RE: Counting based on a conditional expression"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|