I have a report that prints monthly percentages and then a quarterly percentage.
I have a function that calculates the monthly percentages. I'd like this function to pass back not only the percentage but also the dividend and divisor for the calculation so that I can use these to form the quarterly percentage. Is this possible or is there a more elegant solution?
Each figure in the calculation is obtained by running a complex SQL query so I don't want to run each one more than once.
Thanks for any advice.
I have a function that calculates the monthly percentages. I'd like this function to pass back not only the percentage but also the dividend and divisor for the calculation so that I can use these to form the quarterly percentage. Is this possible or is there a more elegant solution?
Each figure in the calculation is obtained by running a complex SQL query so I don't want to run each one more than once.
Thanks for any advice.