Hi everyone,
I am stuck on this and I know there must be a way.
I have a report that needs to look like this.
Level 1 Account Level 2 Account Amount
Revenue Revenue 100,000
Sub Total 100,000
% of Revenue 100%
Distrubution Cost Marketing 10,000
Advertisement 1,000
Other 1,000
Sub Total 12,000
% of Revenue 12%
Overheads Building 20,000
Salary 20,000
Sub Total 40,000
% of Revenue 40%
I want to use the revenue row in a grouped footer to divide the group total by revenue.
There will only be one revenue row in the report.
Thus Over heads Sub Total/Revenue row
40,000/100,000 = 40%
I need to get a case statement that selects the revenue row and uses it in the calculation. I have tried using a tabular reference but this subquery makes the report runtime spiral out of acceptance.
Any help would be greatly appreciated.
Thanks
Victor Herron