Rounding an "Average"

T

Tom

The rounding expression below does not work. Some values have up to 7
decimals. Does anyone know what's wrong w/ it?


SectionTotal: Avg((Round([RecordAvg],2)))



Thanks,
Tom
 
K

Ken Snell [MVP]

Define "does not work", please. You get no result? It shows an error? It
gives an incorrect result?
 
T

Tom

Ken:

I want to round to 2 decimals. Depending on the values, I get up to 7
decimals.

So, the "rounding" does not work properly.

I'd appreciate if you have additional pointers as to how I can get values
equal to ###.##.

Thanks,
Tom




Ken Snell said:
Define "does not work", please. You get no result? It shows an error? It
gives an incorrect result?

--

Ken Snell
<MS ACCESS MVP>

Tom said:
The rounding expression below does not work. Some values have up to 7
decimals. Does anyone know what's wrong w/ it?


SectionTotal: Avg((Round([RecordAvg],2)))



Thanks,
Tom
 
K

Ken Snell [MVP]

Round again after the Avg function:

SectionTotal: Round(Avg((Round([RecordAvg],2))),2)


--

Ken Snell
<MS ACCESS MVP>

Tom said:
Ken:

I want to round to 2 decimals. Depending on the values, I get up to 7
decimals.

So, the "rounding" does not work properly.

I'd appreciate if you have additional pointers as to how I can get values
equal to ###.##.

Thanks,
Tom




Ken Snell said:
Define "does not work", please. You get no result? It shows an error? It
gives an incorrect result?

--

Ken Snell
<MS ACCESS MVP>

Tom said:
The rounding expression below does not work. Some values have up to 7
decimals. Does anyone know what's wrong w/ it?


SectionTotal: Avg((Round([RecordAvg],2)))



Thanks,
Tom
 
T

Tom

Ken:

Thanks so much... that did the "trick"!

Tom


Ken Snell said:
Round again after the Avg function:

SectionTotal: Round(Avg((Round([RecordAvg],2))),2)


--

Ken Snell
<MS ACCESS MVP>

Tom said:
Ken:

I want to round to 2 decimals. Depending on the values, I get up to 7
decimals.

So, the "rounding" does not work properly.

I'd appreciate if you have additional pointers as to how I can get values
equal to ###.##.

Thanks,
Tom




Ken Snell said:
Define "does not work", please. You get no result? It shows an error? It
gives an incorrect result?

--

Ken Snell
<MS ACCESS MVP>

The rounding expression below does not work. Some values have up to 7
decimals. Does anyone know what's wrong w/ it?


SectionTotal: Avg((Round([RecordAvg],2)))



Thanks,
Tom
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top