i have designed a crystal report whch has groups say A, B and C in main report. I have created sub report by grouping C and sub report has the data (measures). Main report doesnot contain any measure.
Now the subreport is linked to main report based on prompt on C.
I have created a shared variable for the group total of C in sub report.
And I am getting correct value for group C in main report.
Now the problem for me is the requirement to show summarized value for grop B and grand total for A.
I did use Total = total +sharedval.
It works well for group A since there is a prompt for A in main report and user can select only one value of A.
But my above formula doesnot work good for Group B. It works like running count, in the sense secod row of group B will show total of first row of group B and the total of C in second row of B.
I tried to reset the sharedval to zero. But then it started me to show the value zero.
Any help on this regard will be apprecieated.
-Raghu
Now the subreport is linked to main report based on prompt on C.
I have created a shared variable for the group total of C in sub report.
And I am getting correct value for group C in main report.
Now the problem for me is the requirement to show summarized value for grop B and grand total for A.
I did use Total = total +sharedval.
It works well for group A since there is a prompt for A in main report and user can select only one value of A.
But my above formula doesnot work good for Group B. It works like running count, in the sense secod row of group B will show total of first row of group B and the total of C in second row of B.
I tried to reset the sharedval to zero. But then it started me to show the value zero.
Any help on this regard will be apprecieated.
-Raghu