Summary of time in HH:MM:SS format in Crystal Report

40 pts.
Tags:
Crystal Reports
Crystal Reports Database
Crystal Reports XI
How to display duration from DB in float value in cross tab report as HH:MM:SS format. Requirement as follows: Date     Abdul Anwer     Tiger Woods     Total 08-17                         00:00:25     03:15:58 07-21                         00:00:01     03:15:58 07-17   02:36:57         00:29:32     03:15:58 07-16                         00:02:34     03:15:58 07-06   00:00:45         00:01:53     03:15:58 06-18                         00:00:27     03:15:58 06-17                         00:02:39     03:15:58 Its showing cumulative value for Total for all rows. I have created following formula which binded summary field: totext(abs(({UserActivityLog.Duration}) / 3600),"00") & ":" & totext(abs(remainder(({UserActivityLog.Duration}),3600) / 60),"00") & ":" & totext(abs(remainder(remainder(({UserActivityLog.Duration}),3600),60)),"00"); Above formula is showing correct value for each user/day. Following formula given in Display String for Total: WhilePrintingRecords; totext(abs((Sum ({UserActivityLog.Duration})) / 3600),"00") & ":" & totext(abs(remainder((Sum ({UserActivityLog.Duration})),3600) / 60),"00") & ":" & totext(abs(remainder(remainder((Sum ({UserActivityLog.Duration})),3600),60)),"00"); Please help me to get correct Total value for each day. Thanks Sharma

Software/Hardware used:
Crystal Report
ASKED: November 10, 2009  10:07 PM
UPDATED: November 11, 2009  2:03 PM

Answer Wiki

Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following