Summarizing a formula field

Newby question..
I have a formula field labeled hours and consist of
{CSC_SES3_WOI_WII_Work_Order_Join.csc_dec_estimated_hours}  *  DistinctCount ({CSC_SES3_WOI_WII_Work_Order_Join.csc_dec_estimated_hours}, {CSC_SES3_WOI_WII_Work_Order_Join.Summary})
This is in the Group Footer 2 field.
I now need to get a total of the hours for all the groups and put into group footer 2 field.   I can not seem to be able to add all the group footer 2 entries for hours.
I know this should be simple, any help is appreciated
Crystal reports 2008
Thanks again,
brandi

Amr,
Thank you for your quick response however I did add another group then added the formulated field to that section.  It is only calculating the last entry from group footer 1
So i have a formula field (@hours) in Group Footer 2
I created Group Footer 1 and put the same formula field (@hours) in that section. 
My report has about 4 records in it and is like this
Group Header 1  = Group 1
Group Header 2 = Information of a group of tickets including a field estimated hours
Details = details multiple entries
Group Footer 2 = a Distinct Count field and the formula field (@hours)
Group Footer 1 = (@hours) field
In Group Footer 2 I have only 2 group 2 entries.
example.
150
170
In Group Footer 1 it is calculating just
170.  Instead of adding the 2 entries together

Similar Messages

  • Summarizing Formula Fields--Percentages

    I have been losing my sanity trying to solve or find a work-around for a problem summarizing data in a cross tab report.
    I have a report that consists of multiple crosstabs grouped by agency.  I have it worked out so that each agency has a one-page set of crosstabs that summarize three years of data from patient demographics to financial information...and it works beautifully.  Included in these crosstabs are summarized fields that are formulas to calculate percentages (for instance, the percentage of all patients who are uninsured). Since there is only one entry for each agency, by year, the "average" option works here and correctly displays the percentage.
    However, in the report header of that same report, I am trying to reproduce the same one-page set of crosstabs FOR ALL AGENCIES.  Sort of a "Status of the Program."  The crosstabs work great for summarizing the basic fields and giving totals (sums) of all information.  The percentage forumulas, on the other hand, are a nightmare.  If I choose the "average" option in the summarized field, then I do get an average of all the programs percentages.  However, that average is NOT the average calculated if you take the total sums and divide them.  (For instance, taking the summary fields for total uninsured patients divided by the total patients DOES NOT give you the "average" calculated here).
    Is there a solution for having both the summarized totals AND the actual percentages for the entire program displayed here on the report header.
    Also, keep in mind that this needs to be easily updatable for each year once new data is available.
    Suggestions?  Have I completely missed something here?

    Okay, I tried that.  But now I get the same answer for all 3 years.
    Also, the percentage is still not correct...not even close.
    An example:
    This is what I had (in part...totals include partial 2008 data)
                                                               2006         2007          Total
    Total Uninsured                                   26,319      34,108        61,861
    Total All                                              70,844      79,951       155,468
    Average Percentage Uninsured              37.8%      39.8%          38.1%
    (sumamrized percent formula)
    This is what this fix gave me:
                                                               2006         2007          Total
    Total Uninsured                                   26,319      34,108        61,861
    Total All                                              70,844      79,951       155,468
    Average Percentage Uninsured              71.9%      71.9%          38.1%
    (sumamrized percent formula)

  • Chart Expert - Why are some formula fields not available?

    I have a report where I had to do Running Totals with formulas.  Following what I learned long ago from the documentation, I laid in my formulas, and then setup some "Display" formulas to print out the results at the end of my report.
    Now I am adding a chart to show a sort of 'summarized' version of the report - its a simple Pie chart...
    But when I go into the Chart Expert and want to select those Display formula fields (there are 4 of them) - they do not appear in the list?
    FYI - These four Display formulas are in the Report Footer of the report, and my chart is in the Report Header. 
    Why do some of my formula fields appear in the Chart Expert "select field" list - while others do not?
    I checked the documentation on this, but it is very "lite" and does not indicate why this might be...
    Any help is most appreciated!

    Read again -  "Problem has been circumvented" NOT "worked around".  In other words, when you pay a fortune for a poorly documented piece of software and you are dependent on answers from a Forum, where at times no one answers your question(s) and your boss is shouting at you as to how you selected such a lousy piece of software with such "lite" documentation and is hardly going to pay any more money for a support call to answer a simple question that should have been covered (and then some) in the documentation, (let alone support of the problem) - you CIRCUMVENT, i.e. give up and find some other way to do what you were trying to do.
    Hence, problem circumvented, NOT worked around.
    Thanks for asking - here's 10 points for your efforts.

  • Group Sort on formula field

    I am using CR Professional 11.5 on Windows XP/Progress platform.
    I have a formula field that calculates the GM% on the Employee Group Footer level and want to sort the employees in descending order by GM%.  I have gone in circles trying to calculate this field differently in order to be able to perform a Group Sort but this GM% cannot be summarized, which would allow me to use the Group Sort Expert.
    The fact that GM% is used in businesses world-wide each and every day makes this unbelievable that it should prove to be this difficult.  Is there something that I am missing as a newbie to CR design? 
    Any help provided is greatly appreciated!
    Marlene Human

    That's so awesome!  If only I knew how to use sql commands!  Everytime I try to create one it has errors that I dont' understand.  Do you know of a site for sql syntax that might help me to do this?  I have looked and can't find what I need to make this happen.
    So what I need to do is to use 'Formula Workshop' and create a new SQL Expression Field?  Using the formula above, how would this look in SQL?
    Thank you so much for your help...I am so grateful!!!  I have been working on this for months and keep hitting this snag.  I first started out using a cross-table and got confused because you can't summarize the GM% so I then changed the summary to 'weighted average of GM% with Tech/Rev' so that helped, but the Total per Employee has been keeping me stumped. 
    Thanks again.

  • Why do I only have the option to summarise some of my formula fields?

    Hi.
    I'm trying to create a running total but when I look for the formula filed that I want to summarise, it's not there. There are some other formula fields that it tells me that I can summarise but not the one that I want. Any ideas?
    Thanks in advance.
    Graham

    There are are certain functions that can only be executed during the "WhilePrintingRecords" pass of the report execution. Any formula that uses one of these functions cannot be summarized.
    Also any formula that is is based on aggregated values cannot be summarized.
    HTH,
    Jason

  • Formula Field Sorting

    Frield 1 is group on Date (Group1)
    Field 2 is group on workstation (Group 2)
    Field 3 is a formula field Sum(Amt).
    The Report will look like below when displaying the Group Footer #2 (workstation) line.
    Date           Workstation    Amount
    11/01/2010        A             2,550
    11/01/2010        B            55,000
    11/03/2010        D            78,200
    11/04/2010        C              5,500
    I would like to report to be sorted in decending order on the Amount field which is a formula field.
    Date           Workstation    Amount
    11/03/2010        D             78,200
    11/01/2010        B            55,000
    11/04/2010        C              5,500
    11/01/2010        A              2,550
    The Group Expert does not list the formula field as a field that can be grouped on. How can this be done?

    Hi
    I have a similar issue....
    I have a report that's looking for Turnbacks,Total Trips and Turnback Percent of total trips grouped by Vendor.
    Report Layout
    Date (Group1)
    Vendor (Group2)
    Under group Vendor I have summarized fields...
    Date 20101119
    Vendor Id         Sum of Turnbacks         T otal Trips                      Turnback Percent of total Trips
    123                   50                                  100                                       50%
    456                  10                                  100                                       10%
    789                  100                                100                                       100%
    Date 20101120 
    Vendor Id         Sum of Turnbacks         Total Trips                          Turnback Percent of total Trips
    123                   60                                  100                                         60%
    456                   20                                  100                                         20%
    789                  100                                100                                         100%
    I would like to sort the  Turnback Percent of total Trips field in descending order. But it does not appear in neither(Group or Record) sort option.
    Any help will be greatly appreciated.
    Thanks!

  • Categorizing with formula field

    Hi,
    I need to build a crystal report that is proving to be a little complicated for my level of expertise and I need help !!
    The 3 key fields in the report are job code, pay code, and hours paid. I need to categorize Job code and pay codes into different "TYPES" as per customer's needs. A simple sample below.
    Job Types
    Job_codes (0612, 0613, 0614, etc ) - "RNs"
    Job_codes (0512, 0513, 0514, etc) - "Nurse Asst"
    Job_codes (0212, 0213, 0214, etc) - "Mgrs"
    Pay Type
    Pay_codes (REG, OT, VAC) - "Paid hours"
    Pay_codes (REG, OT) - "Worked Hrs"
    Pay_code (VAC) - "Non-worked hours"
    Then I need to summarize the total hours paid by the job type for each of the pay types - that looks like a cross-tab.
    Here's what I have done so far - I created a formula field for the job type. I used 'if-then-else' to categorize into different types and used the formula field in the cross-tab ROWS. Summarized the hours. So far so good.
    But the problem arised with the pay types. I could not use the same logic for the pay type because the pay codes overlap between the types and if-then-else proves inaccurate in this case. Some pay codes may fall under multiple categories.
    Do anybody else have any other ideas to handle this? Please help..

    You could assign multiple actions to an event:
    NumberVar paid;
    NumberVar worked;
    NumberVar non-worked;
    IF paycode = "VAC" THEN (paid := 1; worked := 0; non-worked := 1;) ELSE
    IF paycode = "REG" THEN (paid := 1; worked := 1; non-worked := 0;) ELSE
    IF paycode = "OT" THEN (paid := 1; worked := 0; non-worked := 1;) ELSE
    (paid := 0; worked := 0; non-worked := 0;)
    Now, you can summarize on paid, worked and non-worked for each job type.

  • How to appear a formula field for once at a fom-like report?

    Hi All,
    I have created a formula field and then set the property "Maximum Records per page" to the value 12 for the repeating frame containing this field and all other fields.
    Now I want to make an exception for that formula field
    I want it to be appeared only for one time not 12 times!
    how to do this Plz?

    Hi,
    I assume that your formula column is at a higher level than your repeating frame (in other case it's not clear which value you want to display). Bring the filed representing the formula column behind the repeating frame, then it's diplayed only once.
    Regards
    Rainer

  • Error when embedding a formula field in a text box in a subreport

    I am rewriting an application that merges data from a .net application into a Crystal Report template and displays it in the application.  In VS2003, I have had no problems with the reports as they are written.  In VS2010, I get an unusual error on some reports with subreports. 
    In one report I have multiple subreports.  In those subreports, I have formula fields.  If I take one of those formula fields and embed it into a Text Box and attempt to generate the report through the application, I get the following error:
    This field name is not known.
    Details: errorKind
    Error in File Confirm {20564DCB-5CA4-4832-8931-DF1CC6C54784}.rpt:
    Error in formula  optionStrike:
    '{Command.OPTIONSTRIKETIME}'
    This field name is not known.
    Details: errorKind
    If I take the very same field out of the text box and put it directly on the report, the report will generate without error.
    In the case above, OPTIONSTRIKETIME is a string field.  This rules out any conversion errors from a date/number/etc to string for the text box.
    Has anyone else encountered this error?  If so, what can be done to avoid it?

    Hello,
    Thank you for the info.
    Which driver are you using for the dataset?
    If you are using ADO.Plus add this to your App.Config file:
    <startup useLegacyV2RuntimeActivationPolicy="true">
    <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/>
    </startup>
    Thank you
    Don

  • Not able to clear out a formula field value when variables are equal to 0

    I am trying to calculate the difference between a formula field from a main report and a formula field from a subreport. When i run the report i get a correct difference calculation only when both formula fields have a value different than 0. When both values are 0 then the difference calculation shows the last item quantity from the formula field in the subreport that had different values than 0.  It looks like the difference calculation is not being clear out before jumping to the next value calculation.

    try to clear the variable values once done with calculation like
    whileprintingrecords;
    shared numbervar i:=0;
    regards,
    Raghavendra

  • How to use the distinct key in formula field in SAP Crystal Reports

    I want to use the distinct key in formula field in SAP Crystal reports.
    When i'm using it shows an error.
    Please suggest me....

    Hi,
    Use DistinctCount keyword directly for your calculation instead of count(distinct(....
    Alternatively, if you want to avoid duplicate records, under "File" > "Report Options" make the 'Select Distinct Records' as True.
    Thanks,
    Raghavendra

  • How can we pass a formula field of Main report to SubRepor's Parameter. in CryastlReport 11

    Post Author: Nikhil
    CA Forum: General
    Hi
    Crystal Report version : 11.0.0.1282 Standard
    There is MainReport1. Other is Subreport1
    Scenario : 
    MainReport1 having paramater PdateMain1 as dateTime.
    SubReport1 having parameter dateSub1 ,dateSub2.
    datesub1 is used for One datasource1 (DataSource- XML -from webApplication)  , dateSub2 is used for datasource2 (DataSource-SQl Procedure ) ( This is requirement as i need to used two datasource )
    Value of datesub1 and datesub1 is same (it is created automatical as it is part of SQLProcedure and XML Query ) but get prompted twice for the same valuewhich  is not desirable. so for that i have created main report and calling this subreport in main report.
    Now i want's to pass PdataMain1 to Parameter datesub1  and datesub2. I am able to pass  PdataMain1 to datesub1.  through Change Sub report link ( Option on right click of report).and it is working fine,
    Problem : 
    But Subreport link Menu does not allow to bind PdateMain1 to datesub2 as it is allready bind with datasub2.
    to overcome this i created one Formula field in main report as fMaindate1 which copy date from Parameter PdateMain1.and bind ( link) the  fMaindate1 to datesub2.  when i link this , subreport does not display any thing at all. It it a limitation of crystal report or i am missing some thing , Is it like that we can pass formula of ,main report to subreport Paramater in Crystal 11 Standard , if we can anyone please Provide help on this.
    This can be easily achieve through application programming but my need to get this done in Report itself.Thanks
    Nikhil Patel

    Post Author: Jagan
    CA Forum: Crystal Reports
    Shared variables. Looked in the help at variables - shared

  • Working with 3 Reports -- How to Display Summary/Formula field in Each Repo

    I have 3 Report that represent three Company.
    Each Company/Report has their report Details and field totals at the bottom.
    Now what I am trying to accomplish is that I need to add all three companies grand total and sum it up and display at the bottom of each reports.
    FYI, I have created matrix report and i pass user parameter where user can choose which company's report him/her would like to run so for example: if user run Company_1 then at the bottom i want to display all the companies Grand Total.Each reports have 6 columns and all the columns are same in each report except the data change by company. and with the same thing with Company_2, and Company_3
    Now, I tried to use create a separate query and tried to use DATA LINK but it didn't work due to very awkward report design.
    Is there a way where i can create a formula field and write PL/SQL and display at the bottom of my report.
    Please let me know if its possible I will very appreciated.
    Thank You

    Thanks for your reply,
    Actually, I would done that before taking Company's parameter off but i have to send out this report to all three companies thats resoan why I put companies paramters.
    Also, I have solved that problem by creating new query that will give me total off each company so in my Data Model. I have Q_1 (main query), Q_2 (Company 1 query which give me total for each field), Q_3 (Company 2 query....), Q_4
    and call those all fields and RESET AT REPORT level.
    so, no mather which company i choose in my parameter field it will give me final total at the bottom of my report for all the departments.
    Thank You,

  • Crystal Reports XI - How  to create a new field using a formula field

    I'm quite new to CR, but have been learning quickly!
    I would like to know how to automatically create a new record/field based on another field in that row...
    I have a report showing the following data:
    Run Code     Start KM    Stop KM    Status 
    H2                 100            150           Partial
    H2                 150             155          Partial
    H2                 155             160          Partial
    S3                 120             150       Completed
    The status is generated by comparing the 'Start KM' and 'Stop KM' against fields in another table called 'Start Odo' and 'Stop Odo'
    In this example...
    H2 has 'Start Odo' and 'Stop Odo' values of 90 to 160, therefore there is still 90-100 to check.  The 'Start KM' and 'Stop KM'  is equal to the 'start Odo' and 'stop Odo' for S3, therefore it shows completed.
    My question is how do you create a formula field, which will add an entire row...displaying the values 90-100.
    I've been trying to use a conditional check in the 'Start KM' column, that sees if status is equal to partial than if start km is greater than start odo (Which is the reference km) then display the value of start odo in the new row. I'm stuck at how to create a new row.
    I want the final result to look like this...
    Run Code     Start KM    Stop KM    Status 
    H2                  90              100         Partial
    H2                 100             150          Partial
    H2                 150             155          Partial
    H2                 155             160          Partial
    S3                 120             150       Completed
    Any suggestions would be more than appreciated

    Hi Adi
    Looking at your examples it seems that you want to add a row to the existing recordset (rows fetched from the database).
    If it is the case (even if based on a formula) then you can not do it within crystal. Crystal is designed to display data and ideally it should not generate the new data.
    However, as per your requirement you can try to add this logic at database end. May be a command object within Crystal Reports can help you.
    Let me know if you do not understand anything.
    Regards
    Nikhil

  • How to apply formula field for a chart object in crystal report XI

    Hi
    how to add formula field for a chartobject, i tried the following code but returns invalid condition field.
    i want to show  different chart in same crystal report viewer with different coursestatus values.
    please suggest where ia m wrong.
                   FormulaField oFormulaField;
                   oFormulaField = new FormulaField();
                   oFormulaField.Name = "Status1";
                   oFormulaField.Text = "{CSP_PROCESS_REPORT.Coursestatus} = 'Mastered'";
                   oFormulaField.Syntax = CrFormulaSyntaxEnum.crFormulaSyntaxCrystal;
                   oFormulaField.Type = CrFieldValueTypeEnum.crFieldValueTypeStringField;
                    boChartObject.ChartDefinition.ConditionFields.Add(oFormulaField);
    regards,
    Padmanaban V

    i missed the following line in my code.
    rcDoc.DataDefController.FormulaFieldController.Add(oFormulaField);
    now it works......
    my next issue is that,
    chart returns True & False captions. but i want to show actual value. how its to be done
    regards,
    Padmanaban V

Maybe you are looking for

  • Report to see order status

    hello All, Is there any report or settings to see all orders and their status in CRM.We are using CRM 2007. Thanks and Regards shanto aloor

  • Can't get photos from iCloud onto iPad since updating

    HI guys, not very technical so please bear with me   Basically, I updated my iPad software yesterday and all my photos disappeared. So I shared them all again from my iPhone so they would then go back on to my iPad. This worked at first and then stop

  • Dual Display, 2 Monitors - Extended Desktop

    Hello Everyone: There isn't a clear cut answer or solution in connected a Macbook Air to 2 external monitors in an attempt to create an extended desktop. I have read older posts that it's either doable or not doable. My questions are the following: -

  • Linksys WRT54G Router for Mac

    Does anybody know if this router works on a Mac, or if it has to be a special variation of this (there are several)? We have two Mac's: 1) eMac: 700MHz PowerPC G4 running OSX 10.4.11 2) Mac mini: 2.0GHZ Intel Core 2 Duo running OSX 10.5 We use Firefo

  • J2EE:some java processes running

    HI! I have a general question regarding the SAP Solution Manager. We have succesfully installed SAP SOLMAN 4.0 (Windows, Oracle). Unfortunately when I start SAP system with MMC-Console, I see that the Java-instance is yellow. (disp+work.exe --> tells