I have a query with totals grouped by date and by survey section and I am trying to include a column with the proportions these section totals are of the total for each date. The Totals are an expression sum of several fields.
Date Section Number Prop
A 1 # #/Sum(#) Where Date =A
A 2 # #/Sum(#) Where Date =A
A 3 # #/Sum(#) Where Date =A
B 1 # #/Sum(#) Where Date =B
B 2 # #/Sum(#) Where Date =B
B 3 # #/Sum(#) Where Date =B
I have tried using a second query to calculate the totals by date but joins produce errors when I add it to the original query. This seems like a simple problem but hours of floundering have led me here.
Date Section Number Prop
A 1 # #/Sum(#) Where Date =A
A 2 # #/Sum(#) Where Date =A
A 3 # #/Sum(#) Where Date =A
B 1 # #/Sum(#) Where Date =B
B 2 # #/Sum(#) Where Date =B
B 3 # #/Sum(#) Where Date =B
I have tried using a second query to calculate the totals by date but joins produce errors when I add it to the original query. This seems like a simple problem but hours of floundering have led me here.