Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5983747
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T22:16:31+00:00 2026-05-22T22:16:31+00:00

So I have created the following code snippet to run in a formula to

  • 0

So I have created the following code snippet to run in a formula to rummate the hours worked for each code in labor…

NumberVar totalHours := SUM({LaborTicket.HoursWorked}, {LaborTicket.VisualCode});
NumberVar totalMinutes := SUM({LaborTicket.HoursWorked}, {LaborTicket.VisualCode}) * 60 MOD 60;
NumberVar totalSeconds := SUM({LaborTicket.HoursWorked}, {LaborTicket.VisualCode}) * 3600 MOD 60;

ToText(totalHours, 0) + ":" +
ToText(totalMinutes, '00') + ":" + 
Totext (totalSeconds , '00' )

It converts my representation of 1.50 hours into 1 hour and 30 minutes (or 1:30:00), beautiful.

Now however, they want the report to be by client, by visual code…

Since I need to show total hours for each visual code on one group footer and totals for each client on another group footer, I need to be able to specify to summate based on both of those facts which I’m not sure how to do.

The above function summates ALL clients, not just the one at that point in the report so I need to be able to summate based on the visual code AND client name. Any suggestions?

I’m using the version of crystal that comes with Visual Studio 2010 (well the one you download after installing it)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T22:16:31+00:00Added an answer on May 22, 2026 at 10:16 pm

    Ok, so it looks like you simply need to create a new group before the VisualCode group by the Client field. Once you have your two groups, you should be able to go ahead and insert your summary fields by using the new client group. I understand that this summary will show 1.5 instead of your format (1:30:00), but this exercise is just to make sure you are getting the data and then you can change the formatting with your formula once you have the data correct.

    Once you have this you should be able to find this new summary field in the field tree of the formula editor under “Report Fields”. Then you can change each SUM({LaborTicket.HoursWorked}, {LaborTicket.VisualCode}) part of your formatting function to the new summary field and place it in the same section as the non formatted summary field. To finish it off just suppress the non-formatted summary field so that only your field remains and put it where you need it within the section. I hope this helps.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have created an alert view with two buttons using the following code: UIAlertView
I have created the following stored procedure.. CREATE PROCEDURE [dbo].[UDSPRBHPRIMBUSTYPESTARTUP] ( @CODE CHAR(5) ,
I have a transparent BufferedImage created with the following code(not relevant how it is
friends, i have created custom title bar using following titlebar.xml file with code <?xml
I have written the following code snippet to read data from the database :
I have following code snippet to create NSSearchField programmatically mysearchField = [ [ NSSearchField
I have the following snippet of code: - (void)loadView { self.view = [[UILabel alloc]
i have run a code snippet from Gradle Cookbook apply plugin: 'java' task create-dirs
I have the following code to create a UIPickerView: pickerView = [[UIPickerView alloc] initWithFrame:CGRectMake(0.0f,
I have the following code that creates two objects (ProfileManager and EmployerManager) where the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.