Help! I need to determine the sum of the values from a formula field. My report has one group and in the Details section there is a column with a formula, @DateDiff, which calculates the difference in time on a DateTime field.
I would like to get the value of the total time for all the rows returned in the Details section, and place in the Report Footer.
I tried creating a secondary formula using the SUM() function but I receive an error saying "This field cannot be sumamrized". If I hilight the field with the formula in the report and right-click, there is no 'Sum' option under the 'Insert' pop-up menu. As a side note, I'm guessing Crystal won't let me use the sum functionality as it's calculating the value of the original formula when generating the results.
So I created a formula called @SumTime (placed in the Details section)...
Shared NumberVar TotalTime;
TotalTime := TotalTime + {@DateDiff};
The formula sums up the time differences correctly, but now I'm stumped on how to get this value into the Report Footer. I created a third formula to display the value of 'TotalTime' and it displays the correct value when placed in the Group Footer, but not when placed in the Report Footer.
I think I'm close, but what am I missing or not understanding? Thank you!!
I would like to get the value of the total time for all the rows returned in the Details section, and place in the Report Footer.
I tried creating a secondary formula using the SUM() function but I receive an error saying "This field cannot be sumamrized". If I hilight the field with the formula in the report and right-click, there is no 'Sum' option under the 'Insert' pop-up menu. As a side note, I'm guessing Crystal won't let me use the sum functionality as it's calculating the value of the original formula when generating the results.
So I created a formula called @SumTime (placed in the Details section)...
Shared NumberVar TotalTime;
TotalTime := TotalTime + {@DateDiff};
The formula sums up the time differences correctly, but now I'm stumped on how to get this value into the Report Footer. I created a third formula to display the value of 'TotalTime' and it displays the correct value when placed in the Group Footer, but not when placed in the Report Footer.
I think I'm close, but what am I missing or not understanding? Thank you!!