D
Daan den Hollander via AccessMonster.com
I have a crosstabquery that performs a count of the Categorie-field.
I'd like an AVG based on the total of the total-field in the row.
Something like AVG(Count([Tbl_Incidenten.ID))
This is the SQL-statement of the count.
TRANSFORM Count(Tbl_Incidenten.ID) AS CountOfID
SELECT Tbl_Incidenten.Categorie, Count(Tbl_Incidenten.ID) AS
TotalofCategorie
FROM Tbl_Incidenten
GROUP BY Tbl_Incidenten.Categorie
PIVOT Format(Format([Datum],"yyyy")) & "-"+Format(Format([Datum],"mm"),"00")
;
Hope you can help me.
Daan
I'd like an AVG based on the total of the total-field in the row.
Something like AVG(Count([Tbl_Incidenten.ID))
This is the SQL-statement of the count.
TRANSFORM Count(Tbl_Incidenten.ID) AS CountOfID
SELECT Tbl_Incidenten.Categorie, Count(Tbl_Incidenten.ID) AS
TotalofCategorie
FROM Tbl_Incidenten
GROUP BY Tbl_Incidenten.Categorie
PIVOT Format(Format([Datum],"yyyy")) & "-"+Format(Format([Datum],"mm"),"00")
;
Hope you can help me.
Daan