Howdy folks,
Hoping someone can help me with some calculations in a query
I need to take sum and average data in one column based on values in 4 other other columns.
The fields I have are as follows, and basically what the data looks like with the calculation I need to do:
ProjectID....Space...Time...Date...........Number. ..Expr1
1 ..............2 .........5pm....06/22/13.....2...........2.5
1 ............. 2 .........5pm....06/22/13.....3...........2.5
2...............5......... 3pm ...01/24/14.....8...........4.5
2...............5..........3pm ...01/24/14.....1...........4.5
3...............1..........6am....02/02/14.....10.........8.3
3...............1..........6am....02/02/14.....6...........8.3
3...............1..........6am....02/02/14.....9...........8.3
So if ProjectID, Space, Time, and Date have equal values in multiple records, I need to sum the values in the field "Number" for those records, and then divide by the number of records, for the final values in Expr1.
Hope someone can offer some insight into creating an expression for this.
Cheers!