G
gabriel
Hi !
I would like to create a query with 3 fields (columns).
First column: ID (primary key field)
Second column: Sugar cane species (duplicate records)
Third column: Average productivity for the respective sugar cane species
(numeric)
The duplicate records of the second row can't be removed, because they have
to preserve their identity, expressed by the first column.
Using "totals" for the query, the third column doesn't return the average
value of each sugar cane species, when I choose "mean"in the "sort" cell.
The value calculated in this third row is the "mean"value of the first two
records of each sugar cane species, instead of all records.
How can I force the query, to calculate in the third row the mean value of
all records for each specific sugar cane species?
Her a little example:
Original data
ID Sugar cane species Productivity index
1 A 1.7
2 A 1.2
3 A 1.0
4 B 1.4
Created query:
ID Sugar cane species Productivity index
1 A 1.7
2 A 1.7
3 A 1.0
4 B 1.4
Desired query:
ID Sugar cane species Productivity index
1 A 1.3
2 A 1.3
3 A 1.3
4 B 1.4
Somebody can help me ?
Sincerely
gabriel
I would like to create a query with 3 fields (columns).
First column: ID (primary key field)
Second column: Sugar cane species (duplicate records)
Third column: Average productivity for the respective sugar cane species
(numeric)
The duplicate records of the second row can't be removed, because they have
to preserve their identity, expressed by the first column.
Using "totals" for the query, the third column doesn't return the average
value of each sugar cane species, when I choose "mean"in the "sort" cell.
The value calculated in this third row is the "mean"value of the first two
records of each sugar cane species, instead of all records.
How can I force the query, to calculate in the third row the mean value of
all records for each specific sugar cane species?
Her a little example:
Original data
ID Sugar cane species Productivity index
1 A 1.7
2 A 1.2
3 A 1.0
4 B 1.4
Created query:
ID Sugar cane species Productivity index
1 A 1.7
2 A 1.7
3 A 1.0
4 B 1.4
Desired query:
ID Sugar cane species Productivity index
1 A 1.3
2 A 1.3
3 A 1.3
4 B 1.4
Somebody can help me ?
Sincerely
gabriel