Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

The Summary/running total field could not be created error message

Status
Not open for further replies.

essental

Technical User
Aug 1, 2002
4
US
I am trying to create a report that will show internet usage per user per site by time block;
ie: holmese 8:00 10:00 11:00 13:40 etc etc.
I used this formula
NumberVar total := Sum ({HttpData.Duration}, {Categories.Category_Name});
NumberVar hours := truncate(total/3600);
NumberVar remains := Remainder(total, 3600);
NumberVar mins := truncate(remains/60);
NumberVar seconds := remains - (mins * 60);

Formula would not create a summary/running total field.
Can anyone help me out. Thanks in Advance.
 
You can't automate a running total on a formula like that. Is this a paste of the complete formula?

The output of this formula is going to be the seconds variable - is that really what you want to total up? Don't you want to concatenate all the variables to give you a time string?

Naith

 
See faq 767-2300 on this topic. Software Training and Support for Macola, Crystal Reports and Goldmine
714-348-0964
dgilsdorf@mchsi.com
 
Naith;
The last part of the formula is this:
if mins < 10 and seconds < 10 then
ToText(hours,0 + &quot;h&quot; + ToText(mins,0) + &quot;m&quot; + ToText(seconds,0) + &quot;s&quot;
else if mins < 10 then
ToText(hours,0) + &quot;h&quot; + ToText(mins,0) + &quot;m&quot; + ToText(seconds,0) + &quot;s&quot;
else if seconds < 10 then
ToText(hours,0) + &quot;h&quot; + ToText(mins,0) + &quot;m&quot; + ToText(seconds,0) + &quot;s&quot;

I hope this makes it clearer.
Ed
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top