Using CR XI with TCAccess Views (SQL Views) where there are multiple records for each Auth within each District by year. Each record has the total for the Auth amount field for the district, but only one District total amount is to be summed per Auth.
I have grouped Roll; District; Year; Auth
I can get the following formula to work at the Year group level, but when I try to use Summary or Running Totals it errors can't sum a summary.
When I place the formula in the higher groups I only get the last occurrance.
local numberVar AuthTAC := 0;
local numberVar AuthCount := 0;
local numberVar AuthTot := 0;
AuthTAC := sum({ViewTA04.SUM_TACHANGE}, {ViewTA04.AUTH_CODE});
AuthCount := DistinctCount ({ViewTA04.AUTH_CODE}, {ViewTA04.YEAR});
AuthTot := AuthTAC * AuthCount;
AuthTot;
Any suggestions!!!!
I have grouped Roll; District; Year; Auth
I can get the following formula to work at the Year group level, but when I try to use Summary or Running Totals it errors can't sum a summary.
When I place the formula in the higher groups I only get the last occurrance.
local numberVar AuthTAC := 0;
local numberVar AuthCount := 0;
local numberVar AuthTot := 0;
AuthTAC := sum({ViewTA04.SUM_TACHANGE}, {ViewTA04.AUTH_CODE});
AuthCount := DistinctCount ({ViewTA04.AUTH_CODE}, {ViewTA04.YEAR});
AuthTot := AuthTAC * AuthCount;
AuthTot;
Any suggestions!!!!