This field cannot be summarized

I have a report where I need to calculate a total number of hours for the day and then for the week for each employee.  When trying to calculate the weekly total, I get an error message that says 'this field cannot be summarized'.  Below is the formula for the field that I am trying to summarize:
If {@ActHrsWorked} < 5.00 then {@ActHrsWorked} else
If {EMPLOYEE.SHIFT_ID} ='NO PARAMETERS' then {@ActHrsWorked} else
If {EMPLOYEE.SHIFT_ID} = 'OFFICE' then {@ActHrsWorked} else
{@ActHrsWorked} - .5
The @ActHrsWorked formula is as follows:
DateDiff ("n",Minimum ({Command.CLOCK_IN}, {Command.SHIFT_DATE}, "daily"), Maximum ({Command.CLOCK_OUT}, {Command.SHIFT_DATE}, "daily")) / 60
My employees clock in on labor tickets and can be clocked in on more than one at a time thus the need for the Minimum Clock_In and Maximum Clock_Out.
Please let me know if I can provide any more information.  Thank you in advance for your help!!!

Anne,
I don't have any sample data to test with but it looks fairly straight forward.
The following SQL will add 2 additional columns to to your data set... MIN_CLOCK_IN and MAX_CLOCK_OUT
SELECT
lt.EMPLOYEE_ID,
lt.SHIFT_DATE,
lt.EARNING_CODE_ID,
lt.HOURS_WORKED,
lt.ACT_CLOCK_IN,
lt.ACT_CLOCK_OUT,
lt.DESCRIPTION,
lt.CLOCK_IN,
lt.CLOCK_OUT,
mm.MIN_CLOCK_IN,
mm.MAX_CLOCK_OUT,
lt.TRANSACTION_ID 
FROM LABOR_TICKET AS lt
INNER JOIN (
     SELECT
     EMPLOYEE_ID,
     SHIFT_DATE,
     DESCRIPTION,
     Min(ACT_CLOCK_IN) AS MIN_CLOCK_IN,
     Max(ACT_CLOCK_OUT) AS MAX_CLOCK_OUT
     FROM LABOR_TICKET
     WHERE SHIFT_DATE>={?StartDate} and SHIFT_DATE <={?ZEndDate}
     GROUP BY EMPLOYEE_ID, SHIFT_DATE, DESCRIPTION) AS mm
ON lt.EMPLOYEE_ID = mm.EMPLOYEE_ID AND lt.SHIFT_DATE = mm.SHIFT_DATE AND lt.DESCRIPTION = mm.DESCRIPTION
WHERE SHIFT_DATE>={?StartDate} and SHIFT_DATE <={?ZEndDate}
Here's what it's doing...
It's using a sub-query to pull in Min & Max aggregates of the ACT_CLOCK_IN & ACT_CLOCK_OUT (respectively), grouped on EMPLOYEE_ID, SHIFT_DATE & DESCRIPTION.
The sub-query is then joined back to the original query so that you'll have the Min & Max values at the detail row level
HTH,
Jason

Similar Messages

  • Using Crystal Reports XI, Version 11.0.0.1994, "This field cannot be summarized." Message

    Post Author: Caroline Richards
    CA Forum: Crystal Reports
    I am currently working on a revenue report that has details with groupings for account, rate codes, and categories of rate codes. 
    Revenue for each account can be adjusted, and the adjustment is linked to the original revenue amount by an Accounts Receivable Transaction Number.  The correct summary for higher groupings are affected when an adjustment is made to the same revenue amount (same AR Transaction Number) more than once.  I have been able to calculate the correct revenue amount in a formula, leaving out the duplicated revenue when there's more than one adjustment on the revenue; however, when I try to summarize the calculated revenue amount in any way, I get a message stating:  "This field cannot be summarized." 
    Is there a way around this so that I can use the calculated amount?  Will an array work?

    Post Author: SKodidine
    CA Forum: Formula
    In CR, you cannot summarize on a summary field.  Since the formula already has a summary function in it, you will not be able to summarize on the formula field.
    Workaround would be to calculate summaries using a running total or another formula and thus avoid the summary using summary situation.

  • Help I stuck on "This field cannot be summarized"

    I'm trying to build a report that measures the rate a clinic exceeds standard visit resolution.
    For each Clinic I need a count of patients with 1 or more visits exceeding standard or @Yes_No = "Yes"
    Group 1 = Clinic Name
    Group 2 = PatID
    Detail fields = PatID, VisitID, Visit Start Date, Visit End Date
    A patient can have several visits
    Here are my formulas
    Code:
    @HourstoResolve := DateDiff ("h",{@StartDateTime},{@Sh_OrderDateTime} )
    Code:
    @Yes_No :=
    If
        (ToText({@Sh_OrderDateTime}) = "" or
        ISNULL({@HourstoResolve}) or
        ISNULL({@StartDateTime}) or
        {@HourstoResolve} > 2)
    then
        "Yes"
    else
        "No"
    Code:
    @ExceedStandard :=
    If
        {@Yes_No} = "Yes"
    Then
        1
    Else
        0
    I placed a RunningTotal Formula in the detail section but I still can't get the total by CLinic
    Can anyone help?
    Thanks
    Steve

    Hi Steve,
    1) Change the @Yes_No code to:
    If
        ({@Sh_OrderDateTime} = cdatetime(0,0,0,0,0,0) or
        {@HourstoResolve} = 0 or
        {@StartDateTime} = cdatetime(0,0,0,0,0,0) or
        {@HourstoResolve} > 2)
    then
        1
    2) Go to Insert Summary > Select this formula in the 'Field to Summarize' > Choose 'Sum' as the summary operation > Choose 'Group #1' as the Summary Location.
    -Abhilash

  • This field cannot be updated as there are open sales order lines

    When trying to enable Item Attributes then I am getting a message "This field cannot be updated as there are open sales order lines". I cancelled the Sales Order ( which was having only 1 sales order line and that is also cancelled) but still I am getting the same message.
    How to overcome this problem.
    Khan

    Thanks Karthik & Sandeep........
    Issue got fixed. There was an open Sales order Line because of that line the issue was coming. After cancelling that SO Line, Users were able to update the Item field.
    Regards,
    Khan.
    http://moreapps4u.blogspot.com/

  • HT4864 When trying to update my Mail Account Mailbox Behaviours settings, when I try to close the settings pane the following messages occur: Invalid Incoming Mail Server The "Incoming Mail Server" field cannot be empty. The incoming mail server box has p

    When trying to update my Mail Account Mailbox Behaviours settings, after making the changes when I try to close the settings pane the following messages occur: Invalid Incoming Mail Server The “Incoming Mail Server” field cannot be empty. The incoming mail server box has in light grey colour: p02-imap.mail.me.com in it and I cannot edit its content. Any ideas what is going on and how to fix it?

    Hi all,
    Mattreichenbach is probably on the right track here with a reset of settings.  I think I've determined the issue has to do with cached account information and inconsistencies for the account name.  This seems to crop up when I've changed my password and it hasn't propagated fully to all the servers, devices, certificates, etc.
    Hopefully many here are on their way to restoration of service by now but it's clear that a lot of people are having the same issues.  Very frustrating and definitely something Apple needs to resolve:  incoming mail server field grayed out, incorrect autopopulation of different fields, other unanticipated behaviors.  If you're still having issues, though, here's what worked for me...
    First, head to the iCloud preferences pane in System Configuration and choose "Sign Out".  When I did this it prompted me with a number of "are you sure" type questions about retaining information on my local machine.  I chose to delete/remove the info each time simply because it should all be restored by the cloud and I didn't want to risk a massive duplication of my data... I will say, I'm back up and running with no issues so I suspect you can make the same delete/remove choices...  But use your own judgment.  I don't want you to lose any data (ie.. please use care as you do this because I cannot bear the thought of causing anyone to experience the pain of data loss).
    Once you've signed out of iCloud, restart your system.  When you get back in, head to the Mail, Contacts and Calendars section of your System Preferences and add your account back by choosing the brushed aluminum "iCloud" button.  When it asks for your account name, use your @iCloud.com email address.  I am all but certain my issue had started because one of my devices (iPhone or whatever) had been set up with an email alias specified instead of my @iCloud.com address.
    Apple, if you're reading through any of these issues (there are TONS of users having this same problem).  Take note, that your icloud service somewhat frequently is not responding and yet tells the user that the password is wrong and this prompts people to be changing their passwords unnecessarily.  This has happened to me on numerous occasions.  Also, I noticed that last week's outage corresponded to a VERY similar outage exactly one year ago to the day.  Sounds like planned maintenance to me and I think you could do a better job notifying folks so we're not wasting HUGE amounts of time troubleshooting a problem that we have no hope of fixing.
    Hope that helps some of you!
    Terry Mullane
    Washington, DC

  • Format of numeric field cannot retain via Live Office

    In Webi, I changed the format of an numeric field to 2 decimal places.  When I retrieved this field to Excel via Live Office, I found the format of 2 decimal places cannot be retained.  It ended up displayed in 1 decimal places.
    I found when a webi report exported to Excel, the format can be retained.  
    Does anyone know if this is a product design or product issue? Thanks.
    Regards,
    Gloria

    Hi Gloria,
    I had a look at this in XI release 3.0 and received the same issue. The only way I could get this to work was to use the FormatNumber() method. This returns the value as a string, which live office represents with the trailing 0.
    So if the cell value was 12345.6, then FormatNumber([my cell]; "#,##0.00") will display 12345.60. This will display correctly in Excel (except that it is justified as text) when brought in by live office.
    This more of a work around than a fix, so you may want to raise a case.
    Regards
    Alan

  • APP-FND-01050: This flexfield cannot be opened because it has no displayed

    Hi,
    I am new to Oracle EBS R12.I created a profile and assiged "Indian HRMS Manager"
    when i try to select Respnsibilities->work structure:Grade->Description
    I got the Error
    APP-FND-01050: This flexfield cannot be opened because it has no displayed segments. Please contact your system administrator.
    Modify your flexfield definition to display one or more segments.
    This may also be caused by incorrect use of the DISPLAY= token to the flexfield user exits in the form. In that case, please contact your support representative.
    APP-FND-00730: This flexfield has an invalid value set. It may use a special value set that uses an Edit event user exit,
    and the user exit has failed. If you are using a form on a graphical user interface (GUI) you may have an invalid value set
    of a different type, possibly a table-validated value set where the table or view does not exist or
    where there is an invalid WHERE clause.
    Contact your system administrator or support representative to check and correct the value sets this flexfield uses.
    how to solve this error................

    Go to system administrator, choose define Key Flex field window. Query for the Grade KFF structure used for your business group. Check how many segments you have defined for it. Also check if at least one of them is enabled and displayed.
    This would make it clear why you are getting the error. Correct it by creating/enabling/displaying at least one segment. That's it !!

  • The "Exception" field cannot be written

    When I try to enter a website as an exception (so the password I use for it will not be saved anymore), the field cannot be written. The only action I can do is to click on the "Close" button !

    Thank you for your answer.
    The problem is that this info bar appears only when you visit a website for the first time.
    I have already tried to ask the password manager to forget the password I wanted to be forgotten, but it does not work, it still appears by default in its field when I go to the site.

  • My Sites "Updating values in this field is disabled temporarily"

    Managed metadata is configured and I am able to access and add terms, etc. I am able to go to the User Profile Service in Central Admin and update the managed metadata fields such as "Ask Me About", "Past Projects", "Skills",
    etc. However, when I go to the My Site host and try to edit my profile there, I get the error:
    There was a problem retrieving data for this field. Updating values in this field is disabled temporarily. You can still update values in other fields.
    Managed Metadata Service is available:
    I am able to go to the Managed Metadata service in Central Admin, add terms, etc.
    Service Connection settings:
    Checked - This service application is the default storage location for Keywords
    Checked - This service application is the default storage location for column specific term sets
    Editing profile from My Site host:
    Ask me About: There was a problem retrieving data for this field. Updating values in this field is disabled temporarily. You can still update values in other fields.
    Edit the same profile in Central Admin works fine:
    Ask Me About: No error, able to add data.
    All the solutions for this error that I have been able to find are not working, but they are for when the managed metadata service is inaccessible, or the fields cannot be updated in Central Admin either. I've recreated both the User Profile
    service and the Managed Metadata service. Any ideas?
    Thanks

    Hi tammylj,
    Based on your description, you should use the different service accounts for your CA web application and MySite host site web application, since "Ask Me About" is working for CA but not for MySite host site, the service account for MySite may not read
    and write managed metadata term store.
    please check and make sure your MySite web application service account is added in the Managed Metadata service application with permission "Read Access to Term Store" and "Read and Restricted Write Access to Term Store", then it should work.
    http://james-brennan.co.uk/2011/10/19/failed-background-check-when-the-managed-metadata-service-says-no/
    Thanks
    Daniel Yang
    TechNet Community Support

  • IBase component field cannot be modified anymore in ticket after SP16

    Hi all,
    I have a customer that is not happy about the fact that the Service Desk IBase component cannot be changed in tickets after installing SP16.
    Also see: Service Desk - Change IBase component
    However, what we don't understand is why in ONE of the tickets we have created this field is editable. 
    Do you think that this may be a bug?  Or perhaps we did something different with this one ticket?
    Thanks in advance for any help you can give us.
    KR,
    Brodo

    Hi,
    The replies by SAP were as follows
    Hi Kevin,
    I have enquired with my colleagues in the next level of support and
    was informed that it is not possible to change the ibase component
    in the support desk message as of SP15.
    Hello Kevin,
    Thank you very much for the update. I am very sorry to state that
    the feature is no more available and if you would like to request SAP toenable the feature again, I would suggest you create a development
    request. Please refer to the note 357732 for further information
    about this.
    Hope this information helps
    The above interactions happened on 14.08.2008
    Would appreciate though if you let me know when you get an update.
    regards,
    Kevin Hill

  • CRVS2010 Beta - Sporadic "This field name is not known. Details: errorKind"

    I am running CRVS2010 Beta 2 on the VS2010 trial version. I have been converting reports to this new version, but sometimes I get the error:
    This field name is not known. Details: errorKind Error in File XX11X1 {1X1111X1-1XX1-1X1X-111X-11111111X11X}.rpt: Error in formula tot-appr: '{@commited0}+{XX11X.AMT1} + {XX11X.AMT2} + {XX11X.AMT3} + {XX11X.AMT4} + {XX11X.AMT_FUT} ' This field name is not known. Details: errorKind
    I have done a lot of searching on this forum, Google, and Bing, but it seems everyone who receives this error message has just created the report or moved it to a new database, and the error is caused by a mis-pointed formula. I don't have that problem: in my case, the report usually works.
    I have tried querying the Oracle database immediately after receiving this error, and all the fields mentioned do exist, exactly where they ought to. The problem never exists when logging on with my own account, and sometimes works when logging on with other accounts, but I have not figured out a way to predict whether it will work or not.
    I have four reports I am running: one always works, two get this sort of error sometimes, and one (which is formatted differently) always shows up without errors, but is sometimes inexplicably blank. I cannot figure out in what way the report that always works is different from the two with this error (aside from obvious issues of layout and querying different tables, I mean).
    I'm at a loss for where to look next. I know this information won't be enough as-is, but I hope that your clarifying questions can help me find the error.
    Thank you for your consideration.
    EDIT: changed database names in case I get in trouble for revealing proprietary information, even though I don't think it's likely
    Edited by: sschaffer on Oct 25, 2010 9:57 PM

    Hello,
    Are you using a data Set? I believe the System.Data.OracleClient is the .NET Oracle client but not sure and not sure how reliable it is or what it's based on.
    What happens if you create a new report using the DataDirect OLE DB provide or Oracles OLE DB provide or use CR Oracle native driver?
    In the Connection Wizard select Oracle, that's the native driver, then when set log on info you just specify the Server name, User and PW, leave the database blank.
    Then what API's are you using to connect/set the log on info?
    I'm guessing that the error you are getting is likely an indexing problem in the table names etc. but not sure. if you search in this forum on "crlogger.dll" you could enable our database logging component and it may give you more info on what the cause is.
    Thank you
    Don

  • Mail in Mountain Lion "Incoming Mail Server" field cannot be empty

    I put my wife's email account which is in iCloud on mail with a couple of other iCloud accounts.  To identify who's iCloud account is who's, In the preferences on the account where you edit the description from the default "iCloud" to User's Name  iCloud and after you hit save I get an error saying The "Incoming Mail Server" field cannot be empty.  Yet is has p04--imap.mail.me.com in the field that is greyed out and I cannot edit the fields contents and therefore doesn't allow me to change the email account's description.  I've tried deleting the accounts, logging out of icloud, etc.  Nothing has fixed this yet.
    On a side note, one of my other email accounts from iCloud keeps popping up with it needing the password field to be entered.  No matter what I try, it doesn't take the password.  I can log into it just fine through safari. 
    So it seems like iCloud is having issues as well as Mail and contacting Apple twice and escalating to tier 2 both times has yeilded the person saying they didn't know and then hanging up on me.  Does anyone else know what I might try?

    Okay, I had this problem and solved it as follows:
    1. Deleted any non-functioning iCloud-IMAP accounts from Mail's Preferences. I had two that were working fine, so I left those in place. One of those was the primary iCloud account on my Mac, i.e., the account used for "Find My iPhone/Mac/iPad" and iCloud storage, etc.
    2. Then I quit Mail and restarted my computer.
    3. Went to my other devices and made sure the primary account was the same one there. [Note: It was not -- the primary iCloud account was different on my iPhone versus my Mac, I think this discrepancy might have been the source of the problem, but I don't know.]
    4. I also made sure my wife's Mac uses a different primary iCloud account, one that is not on my machines, although we share one secondary iCloud Mail account (which is not the primary on any device -- it is always a secondary account).
    5. Then, following MChannel's advice upthread, I went into System Preferences > Mail, Contacts & Calendars, and added the formerly problematic iCloud accout that way. I have everything turned on for my primary iCloud account. All of the secondary accounts only have Mail turned on (although I don't think that matters -- you can turn on the other features that are available there if you like).
    6. Opened Mail and voila! -- everything is working fine. Accounts are all set up properly without me even opening Mail's Preferences.

  • F400917: The current configuration is not valid for this feature. This feature cannot be used until you correct the configuration.

    Hello,
    We recently changed to TFS as our bug tracking system and trying to understand how to change the existing states of Bug\Add new states. We installed TFS 2013 Update 4 and followed below process to change state values. For example, I would like to change
    Bug State value of "Done" to "Closed",
    1. witadmin exportwitd /collection:"http://MyServer:8080/tfs/DefaultCollection" /p:MyProject /n:Bug /f:C:\TFS\bug.xml       
    2. Replace all values of "Done" to Closed
    3. witadmin importwitd /collection:"http://MyServer:8080/tfs/DefaultCollection" /p:MyProject /f:C:\TFS\bug.xml
    Then we see below error in Work -> Backlog
    TF400917: The current configuration is not valid for this feature. This feature cannot be used until you correct the configuration.
    Learn about how to correct your configuration            
    Details about the validation error appear below:
    The following element contains an error: RequirementBacklog/States. TF401098: This element defines the states for work items that appear on your backlog. The state configuration is incorrect. Each work item on this backlog must have one state with the type
    'Complete'. The following work item type does not have any state with the type 'Complete': Bug.
    The following element contains an error: BugWorkItems/BugWorkItems. TF400506: This element defines the states for work items that represent Bugs or Defects. Each state must exist in at least one of the work item types that are defined in: BugWorkItems.
    The following states do not exist in any of the work item types: Done.
    Tried export, made changes to ProcessConfig file for Bug states and imported. Still same issue.
    Please suggest on how to proceed with customization of Bug states\values in TFS 2013 Update 4
    Thanks,
    Aswini

    Hi Aswini,  
    Thanks for your reply.
    I tested in on my Scrum 2013.4 team project, and found we need edit two places in processconfiguration.xml file, please try below:
      <BugWorkItems category="Microsoft.BugCategory" pluralName="Bugs" singularName="Bug">
        <States>
          <State type="Proposed" value="New" />
          <State type="Proposed" value="Approved" />
          <State type="InProgress" value="Committed" />
          <State type="Complete" value="Closed" />
        </States>
      </BugWorkItems>
      <RequirementBacklog category="Microsoft.RequirementCategory" parent="Microsoft.FeatureCategory" pluralName="Backlog items" singularName="Backlog item">
        <AddPanel>
          <Fields>
    <Field refname="System.Title" />
          </Fields>
        </AddPanel>
        <Columns>
          <Column width="100" refname="System.WorkItemType" />
          <Column width="400" refname="System.Title" />
          <Column width="100" refname="System.State" />
          <Column width="50" refname="Microsoft.VSTS.Scheduling.Effort" />
          <Column width="200" refname="System.IterationPath" />
          <Column width="200" refname="System.Tags" />
        </Columns>
        <States>
          <State type="Proposed" value="New" />
          <State type="Proposed" value="Approved" />
          <State type="InProgress" value="Committed" />
          <State type="Complete" value="Closed" />
          <State type="Complete" value="Done" />
        </States>
      </RequirementBacklog>
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • This document cannot be opened because it is corrupted or damaged.

    Hi There
    I have recently created a pdf document in "Expert PDF 7" from "Avanquest". I have inserted certain fields which needs to be completed by the reader for example name, surname etc.
    On my desktop, using Windows 7 and Adobe Reader X it works perfectly but, when using my iPad 3 and Adobe Reader it stalls. I can enter the first field but, as soon as I move to the next field the following error appears; "This document cannot be opened because it is corrupted or damaged."
    Can someone please assist?
    Regards,
    Marinus

    Unfortunately, the file cannot be recovered. Also, it would be difficult to ascertain the reason that led to this issue. There was an issue with the previous versions of Adobe Reader that led to some Acrobat.com documents to be corrupted which is fixed in the latest version. Request you to update Adobe Reader to the latest version(11.7.0) available on the Play Store where you won't encounter the issue again.
    Thanks,
    Adobe Reader Team

  • I get a message stating that this iphone cannot be used because Apple Mobile Service is not started

    I get a message stating that this iphone cannot be used because Apple Mobile Service is not started

    Windows XP
    Close iTunes and disconnect the iPhone, iPad, or iPod touch.
    Choose Start > Control Panel.
    Inside the Control Panel, open Administrative Tools.
    Open Services.
    Select Apple Mobile Device and click Stop the service as shown below:
    After the service has stopped, click Start the service.
    After the Apple Mobile Device service has started again, open iTunes and connect the device.
    Windows Vista or Windows 7
    Close iTunes and disconnect the iPhone, iPad, or iPod touch.
    Click the Windows Start button .
    In the Start Search field type Services.
    In the Programs section of the search results, Click "Services".
    Select Apple Mobile Device and click Stop the service as shown below:
    After the service has stopped, click Start the service.
    After the Apple Mobile Device service has started again, open iTunes and connect the device.

Maybe you are looking for

  • Apple, please help.

    I have read about 50 threads about iPod Touch owners not being able to connect to iTunes on Windows. The steps on the support page doesn't fix this issue. I am quite annoyed because my iPod is completely unusable. This is terrible and obviously a pro

  • Exporting an iPhoto slideshow

    I have about 500 images that I want to put into a slideshow.  However, an MUST-HAVE is that the show randomizes or shuffles the photos. It would appear that the only way to turn on shuffle is when viewing the photos in an album.. the option does not

  • Shipping conditions 10Loading group4900Plant 2900Stloc not defined.

    Hi, While we are running batch job for billing system is throwing below error. Order related billing for third party. Third party order.. Shipping conditions 10Loading group4900Plant 2900Stloc not defined.

  • My Macbook Pro will not sleep

    2011 Macbook pro on snow leapord wont go to sleep through the energy saver options. Even when I set it to sleep in 1 minute it still wont. The display will sleep but the computer itself will not. I tried closing all apps and it still doesnt sleep as

  • Wireless printing with Brother - Time capsule

    I try to get my printer Brother DCP-J715W up and running, but I can't connect to the router, Time Capsule. Any suggestions? Is it a problem with WPS or AOSS, don't know exactly what it is, but that's what the error report says ... Tx, Aldert