I have a report which is structured as follows:-
Details a SUBREPORT1
Details b SUBREPORT2
Details c SUBREPORT3
Group Footer#1 Branch @Total1 @Total2 @Total3
branch
Where the formula @Total1 on Subreport1 is:-
whileprintingrecords;
shared currencyvar total1 = SUM({Sales},{Branch})
Where the formula @Total2 on Subreport2 is:-
whileprintingrecords;
shared currencyvar total2 = SUM({Sales},{Branch})
Where the formula @Total3 on Subreport3 is:-
whileprintingrecords;
shared currencyvar total3 = SUM({Sales},{Branch})
My problem is that I want the report to initially display only the totals by branch (in the Group Footer). Then when the user drills down on these totals to display the full detail in the Subreports.
I find that if I hide or surpress Detail a,b and c then the formulas in the Group Footer evaluate as zero. I guess this is because the formulas use "WhilePrinting" ? If I don't suppress the detail the formulas evaluate correctly but I don't get the drill down functionality I require.
Anyone got any bright ideas??
Details a SUBREPORT1
Details b SUBREPORT2
Details c SUBREPORT3
Group Footer#1 Branch @Total1 @Total2 @Total3
branch
Where the formula @Total1 on Subreport1 is:-
whileprintingrecords;
shared currencyvar total1 = SUM({Sales},{Branch})
Where the formula @Total2 on Subreport2 is:-
whileprintingrecords;
shared currencyvar total2 = SUM({Sales},{Branch})
Where the formula @Total3 on Subreport3 is:-
whileprintingrecords;
shared currencyvar total3 = SUM({Sales},{Branch})
My problem is that I want the report to initially display only the totals by branch (in the Group Footer). Then when the user drills down on these totals to display the full detail in the Subreports.
I find that if I hide or surpress Detail a,b and c then the formulas in the Group Footer evaluate as zero. I guess this is because the formulas use "WhilePrinting" ? If I don't suppress the detail the formulas evaluate correctly but I don't get the drill down functionality I require.
Anyone got any bright ideas??