Summing up the report fields

Post Author: jehanzeb
CA Forum: Formula
Afternoon all,
Just wondering how can you summarise a report field. I have the total number of jobs field which displays the total number of jobs any person has done at any one time. Now in the report I want to add up all the jobs which has been done by all users.
Example:
Name - Total Jobs
James- 10
Andrew-11
Total = 21
The above example shows the total number of jobs both (James and Andrew) performed.
How can I achieve this?
*I  have tried the formula field - however, it says "This field cannot be summarised".
Formula used " DistinctCount ({#Total Jobs}) "
Please help!
Many thanks
Regards
Jehanzeb

Post Author: jehanzeb
CA Forum: Formula
Not to worry I have resolved the issue.
I had to create the summary (E) type icon and choose the fields to summarise the report field. Sometimes you miss obvious things!! :-D
anyhow it has been fixed so closing this thread.
Regards
Jehanzeb

Similar Messages

  • Dynamically summing up the numeric fields in ALV output

    Dear all,
    I had report which contains of the stock overview for a particular date based on materials. I am having the fields as
    Plant Storage location Quantity
    HC01 H14f   12       
    Hc01 H1w   13       
    Whenever the layout is selected as
    Plant and Quantity  . i have to get the output as
    HC01 25  
    But if the option is based on storeage location
    H14F  12
    H1W  13
    One thing the layout will be selected in the output of alv only the user will not run the report again.
    Is there any option to this

    Hi Shreehari,
    As per i understand your question u want  sum based on a particular field.
    For that you first select the numeric filed for which you want sum and click on sum tab on screen .
    After that select the field based on which you want subtotal.
    Now beside Total tab there will be sub-total , just click on that and you will get the ouput in your desired form.
    Hope it will help you.
    Regards,
    Ashish T.

  • Problem with summing up the currency fields

    The below is my code through which I cannot display hthe sum at the end for all the below fields please advice on the soln. Also srched in SDN the answers are bit ambigious/also tried.
    gw_fieldcat-fieldname  = 'WTGXXX'.
      gw_fieldcat-datatype   = 'CURR'.
    *  gw_fieldcat-cfieldname = 'WAERS'.
      gw_fieldcat-tabname    = 'gt_output'.
      gw_fieldcat-seltext_l  = 'Material(Transaction currency)'.
      gw_fieldcat-no_zero    = 'X'.
      gw_fieldcat-do_sum     = 'X'.
      APPEND gw_fieldcat TO gt_fieldcat.
      CLEAR gw_fieldcat.
      gw_fieldcat-fieldname  = 'WOGXXX'.
      gw_fieldcat-datatype   = 'CURR'.
    *  gw_fieldcat-cfieldname = 'WAERS'.
      gw_fieldcat-tabname    = 'gt_output'.
      gw_fieldcat-seltext_l  = 'Material(Object currency)'.
      gw_fieldcat-no_zero    = 'X'.
      gw_fieldcat-do_sum     = 'X'.
      APPEND gw_fieldcat TO gt_fieldcat.
      CLEAR gw_fieldcat.
      gw_fieldcat-fieldname  = 'WKGXXX'.
      gw_fieldcat-datatype   = 'CURR'.
    *  gw_fieldcat-cfieldname = 'WAERS'.
      gw_fieldcat-tabname    = 'gt_output'.
      gw_fieldcat-seltext_l  = 'Material(Controlling area currency)'.
      gw_fieldcat-no_zero    = 'X'.
      gw_fieldcat-do_sum     = 'X'.
      APPEND gw_fieldcat TO gt_fieldcat.
      CLEAR gw_fieldcat.
      gw_fieldcat-fieldname  = 'WTGXXX1'.
      gw_fieldcat-datatype   = 'CURR'.
    *  gw_fieldcat-cfieldname = 'WAERS'.
      gw_fieldcat-tabname    = 'gt_output'.
      gw_fieldcat-seltext_l  = 'Labour(Transaction currency)'.
      gw_fieldcat-no_zero    = 'X'.
      gw_fieldcat-do_sum     = 'X'.
      APPEND gw_fieldcat TO gt_fieldcat.
      CLEAR gw_fieldcat.
      gw_fieldcat-fieldname  = 'WOGXXX1'.
      gw_fieldcat-datatype   = 'CURR'.
    *  gw_fieldcat-cfieldname = 'WAERS'.
      gw_fieldcat-tabname    = 'gt_output'.
      gw_fieldcat-seltext_l  = 'Labour(Object currency)'.
      gw_fieldcat-no_zero    = 'X'.
      gw_fieldcat-do_sum     = 'X'.
      APPEND gw_fieldcat TO gt_fieldcat.
      CLEAR gw_fieldcat.
      gw_fieldcat-fieldname  = 'WKGXXX1'.
      gw_fieldcat-datatype   = 'CURR'.
    *  gw_fieldcat-cfieldname = 'WAERS'.
      gw_fieldcat-tabname    = 'gt_output'.
      gw_fieldcat-seltext_l  = 'Labour(Controlling area currency)'.
      gw_fieldcat-no_zero    = 'X'.
      gw_fieldcat-do_sum     = 'X'.
      APPEND gw_fieldcat TO gt_fieldcat.
      CLEAR gw_fieldcat.
      gw_fieldcat-fieldname  = 'TOTAL1'.
      gw_fieldcat-datatype   = 'CURR'.
    *  gw_fieldcat-cfieldname = 'WAERS'.
      gw_fieldcat-tabname    = 'gt_output'.
      gw_fieldcat-seltext_l  = 'Total(Transaction currency)'.
      gw_fieldcat-no_zero    = 'X'.
      gw_fieldcat-do_sum     = 'X'.
      APPEND gw_fieldcat TO gt_fieldcat.
      CLEAR gw_fieldcat.
      gw_fieldcat-fieldname  = 'TOTAL2'.
      gw_fieldcat-datatype   = 'CURR'.
    *  gw_fieldcat-cfieldname = 'WAERS'.
      gw_fieldcat-tabname    = 'gt_output'.
      gw_fieldcat-seltext_l  = 'Total(Object currency) '.
      gw_fieldcat-no_zero    = 'X'.
      gw_fieldcat-do_sum     = 'X'.
      APPEND gw_fieldcat TO gt_fieldcat.
      CLEAR gw_fieldcat.
      gw_fieldcat-fieldname  = 'TOTAL3'.
      gw_fieldcat-datatype   = 'CURR'.
    *  gw_fieldcat-cfieldname = 'WAERS'.
      gw_fieldcat-tabname    = 'gt_output'.
      gw_fieldcat-seltext_l  = 'Total(Controlling area currency)'.
      gw_fieldcat-no_zero    = 'X'.
      gw_fieldcat-do_sum     = 'X'.
      APPEND gw_fieldcat TO gt_fieldcat.
      CLEAR gw_fieldcat.
    thanks in advance.

    Try passing datatype = 'DEC'.

  • How Make the Report Fields Read only

    Hi I have drop down selection in a Report field.After selecting a particular value and submiting it the field should become readonly.

    Hi SanjayBala!
    Create a conditional branch that will be executed if your select list submits (the branch must be conditional. The conditiontype is request = e1 and e1 is the name of your select list). This Branch ought to have a request (lets say select_list_ro). Create a read only condition for your select list (request = e1) that comes to use if the current request is select_list_ro.
    Hope that helps!
    yours sincerely
    Edited by: Florian W. on 03.02.2009 14:04

  • Summing up the average field

    Post Author: jehanzeb
    CA Forum: Formula
    Dear all,
    how can we achive the following:
    I have two fields which are created using formula. My question is how can I get the grand total of those two fields. I have tried using the formula
    whileprintingrecords;numbervar myaverage;
    but this doesnt work.
    any ideas how to sum up the formula created fields?
    many thanks
    Regards

    Post Author: tsamara
    CA Forum: Formula
    Hi,
    First, are you able to sum up your fields individually at the grand total level?
    Then, if I understand your issue correctly, first do Sums of both fields and at the 'Grand Total' level and create a new Average formula.
    Good luck,
    Tony

  • Using Presenation Variables in the Report fields

    Hi,
    I have a report and the report format is column a (01/01/2012-01/31/2012), Column B (02/01/2012-02/29/2012), Column c (amount),Column d (amount),Column e (dimnesion)
    these are my report columns.column a and column b are dateranges.one is lastmonth and the other one is current month.we put this report in the dashboard.I have 4 presentation variables 2 for last month begin and end dates and 2 for current month begin and end dates.so whenever i change thses variables column a and column b values also should changes according to the dates in the dashboard prompt..Is this possible??

    Hi,
    I am sorry, If I could not get you correct, but I think you would like the starting date in the reports to be between "startdate beginning" and "start date ending" variables. In this case, you can always put a filter on the column in the report to be between these two variables.
    Hope this is what you are looking for.
    Thank you,
    Dhar

  • Output in alv -- sum on the particular field

    Dear Freinds,
                     I have developed a report using a ALV grid . The output i having the fields
    as
    orgunit        orgdesc  count    name    salary      total salary.
    1234          test1                    raja       100          1200
                                         2     rama      200         2400
                                                             300         3600  -> i want count 2 in this line
    1235          test 2             1    rana       500         6000
                                                             500          6000 -> i want count 1 in this line
    Can i give the Count 1  and 2   in the same row where the   Totals --- 500 and 6000
    and 300 and 3600  are being displayed int he above row ?
    the user says he want to have the count in the down along witht he total's lline
    the count is not a now a currency field i tried to sum it is not summing because it is
    NUM data type.
    As per the above data(sample data) we can see that Orgunit(1234) is having two employees  hence the count was two .  For the Orgunit(1235) we have only one employee the count was only one . Nowe my question is can i give the  counts 2 in the first row and the count 1 in the second rown can give along with the total.........line ...
    if so what i can do the change in the field cat.
    When iam using in my field cat  for  getting the output as above
    CLEAR ls_fieldcat.
      ls_fieldcat-col_pos      = 0.
      ls_fieldcat-fieldname    = 'ORGUNIT'.
      ls_fieldcat-seltext_l    =  text-015.  "'Orgunit'.
      ls_fieldcat-key          = 'X'.
      ls_fieldcat-key_sel      = 'X'.
    ls_fieldcat-no_out       = 'X'.
      APPEND ls_fieldcat TO fp_i_fieldcat.
      CLEAR ls_fieldcat.
      ls_fieldcat-col_pos      = 1.
      ls_fieldcat-fieldname    = 'ORGTEXT'.
      ls_fieldcat-seltext_l    = text-016.   "'Orgdesc'.
    ls_fieldcat-no_out       = 'X'.
      APPEND ls_fieldcat TO fp_i_fieldcat.
      CLEAR ls_fieldcat.
      ls_fieldcat-col_pos      = 2.
      ls_fieldcat-fieldname    = 'COUNT'.     ---This is data type Numc
      ls_fieldcat-seltext_l    = 'H.Count'.
      ls_fieldcat-outputlen    = 4.
      ls_fieldcat-do_sum       = 'X'.   -
    > it is not getting summed up
    ls_fieldcat-datatype    = 'NUMC'.
      APPEND ls_fieldcat TO fp_i_fieldcat.
      CLEAR ls_fieldcat.
      ls_fieldcat-col_pos      = 3.
      ls_fieldcat-fieldname    = 'STAFFNAME'.
    ls_fieldcat-no_out      = 'X'.
      ls_fieldcat-seltext_l    = 'Name'.
      APPEND ls_fieldcat TO fp_i_fieldcat.
      CLEAR ls_fieldcat.
      ls_fieldcat-fieldname   = 'SALARY'.
      ls_fieldcat-seltext_m   = 'Salary'.
      ls_fieldcat-col_pos     = 4.
      ls_fieldcat-outputlen   = 17.
      ls_fieldcat-do_sum      = 'X'.
      ls_fieldcat-datatype    = 'CURR'.
      APPEND ls_fieldcat TO fp_i_fieldcat.
      CLEAR  ls_fieldcat.
      ls_fieldcat-fieldname    = 'TOTAL'.
      ls_fieldcat-seltext_m    = 'Total Salary'.
      ls_fieldcat-col_pos      = 5.
      ls_fieldcat-outputlen    = 17.
      ls_fieldcat-do_sum       = 'X'.
      ls_fieldcat-datatype     = 'CURR'.
      APPEND ls_fieldcat TO fp_i_fieldcat.

    Dear Kiran,
    iam seding the alv output which i got can you please correct my code
    where i can give .........since my basic question was the Count which iam
    getting in the below  is 2 (data type NUM4) how can i do sum on this 2 or subtotal??
    i want  the count 2  to come in the total....line  only ..can you please let me know what is the parameter i have to use ........i couldnt find the
    Aggregation in my tool bar...
    orgunit orgdesc count name salary total salary.
    12345    test             raja 100
    space   space      2 rama 200 
    300  -> i want count 2 in this line
    1235 test 2 1 rana 500 
    500 6000 -> i want count 1 in this line
    Can i give the Count 1 and 2 in the same row where the Totals --- 500 and 6000
    and 300 and 3600 are being displayed int he above row ?
    the user says he want to have the count in the down along witht he total's lline
    the count is not a now a currency field i tried to sum it is not summing because it is
    NUM data type.
    As per the above data(sample data) we can see that Orgunit(1234) is having two employees hence the count was two . For the Orgunit(1235) we have only one employee the count was only one . Nowe my question is can i give the counts 2 in the first row and the count 1 in the second rown can give along with the total.........line ...
    if so what i can do the change in the field cat.
    When iam using in my field cat for getting the output as above
    CLEAR ls_fieldcat.
    ls_fieldcat-col_pos = 0.
    ls_fieldcat-fieldname = 'ORGUNIT'.
    ls_fieldcat-seltext_l = text-015. "'Orgunit'.
    ls_fieldcat-key = 'X'.
    ls_fieldcat-key_sel = 'X'.
    ls_fieldcat-no_out = 'X'.
    APPEND ls_fieldcat TO fp_i_fieldcat.
    CLEAR ls_fieldcat.
    ls_fieldcat-col_pos = 1.
    ls_fieldcat-fieldname = 'ORGTEXT'.
    ls_fieldcat-seltext_l = text-016. "'Orgdesc'.
    ls_fieldcat-no_out = 'X'.
    APPEND ls_fieldcat TO fp_i_fieldcat.
    CLEAR ls_fieldcat.
    ls_fieldcat-col_pos = 2.
    ls_fieldcat-fieldname = 'COUNT'. ---This is data type Numc
    ls_fieldcat-seltext_l = 'H.Count'.
    ls_fieldcat-outputlen = 4.
    ls_fieldcat-do_sum = 'X'. -
    > it is not getting summed up
    ls_fieldcat-datatype = 'NUMC'.
    APPEND ls_fieldcat TO fp_i_fieldcat.
    CLEAR ls_fieldcat.
    ls_fieldcat-col_pos = 3.
    ls_fieldcat-fieldname = 'STAFFNAME'.
    ls_fieldcat-no_out = 'X'.
    ls_fieldcat-seltext_l = 'Name'.
    APPEND ls_fieldcat TO fp_i_fieldcat.
    CLEAR ls_fieldcat.
    ls_fieldcat-fieldname = 'SALARY'.
    ls_fieldcat-seltext_m = 'Salary'.
    ls_fieldcat-col_pos = 4.
    ls_fieldcat-outputlen = 17.
    ls_fieldcat-do_sum = 'X'.
    ls_fieldcat-datatype = 'CURR'.
    APPEND ls_fieldcat TO fp_i_fieldcat.
    CLEAR ls_fieldcat.
    ls_fieldcat-fieldname = 'TOTAL'.
    ls_fieldcat-seltext_m = 'Total Salary'.
    ls_fieldcat-col_pos = 5.
    ls_fieldcat-outputlen = 17.
    ls_fieldcat-do_sum = 'X'.
    ls_fieldcat-datatype = 'CURR'.
    APPEND ls_fieldcat TO fp_i_fieldcat.

  • How can I calculate the sum of the text fields?

    I'm trying to use a Flash form that has 40 text fields where
    the user will enter numeric values. I want to add one field that
    will show the total of all those values as the user enters them in.
    I have tried the following, but as soon as I add Val(Trim(...))
    around the current amount to make it numeric, it doesn't update as
    I type anymore. If I take that out, I get an error that it can't be
    converted to a numeric value. Any suggestions?
    Thanks,

    If you want to do your calculations as the data is being
    entered, you'll have to write some actionscript to do it on the
    client. cfcode runs on the server.

  • 2 sums on the same field??

    hi
    I need a special request to do that:
    source :
    date price type
    01/01/05 1000 credit
    02/01/05 500 credit
    02/01/05 200 debit
    01/01/05 2000 debit
    01/01/05 3000 debit
    01/01/05 12 credit
    02/01/05 12 credit
    result wanted:
    date credit debit
    01/01/05 1012 5000
    02/01/05 512 200
    i can't find this request.
    I need a request in SQL without function like decode of Oracle
    Thx for help

    create table t(d date, n number, t varchar2(40));
    alter session set nls_date_format='DD.MM.RR';
    insert into t values (to_date('01/01/05'),1000,'credit');
    insert into t values (to_date('02/01/05'),500,'credit');
    insert into t values (to_date('02/01/05'),200,'debit');
    insert into t values (to_date('01/01/05'),2000,'debit');
    insert into t values (to_date('01/01/05'),3000,'debit');
    insert into t values (to_date('01/01/05'),12,'credit');
    insert into t values (to_date('02/01/05'),12,'credit');
    select d,
        sum(n*instr(t,'debit')) debit,
        sum(n*instr(t,'credit')) credit
    from t
    group by d;
    D             DEBIT     CREDIT
    01.01.05       5000       1012
    02.01.05        200        512

  • Crystal Report Bursting based on a field in the report

    Hi,
    I have a crystal report with  Invoice Number as a field in it.  I need to burst the report with following as the output.
    1. Destination: FTP server
    2.  Format : PDF : One PDF for every invoice.
    I was trying to use Publication through Infoview.  I would like to know how to achieve this.
    I do not have any parameters in the report or any group of users/recipients.  Hence, I have not created any Profiles.
    Thanks in advance.
    Girish

    Add your CR report as source document and then choose to have Dynamic recipients for your publication. Use there as source for the recipients' list the same report you want to burst. As Recipient identifier select the field that contains the invoice ID.
    In the personalization panel go to the Filters area and select in the Report field drop down your invoice field from the report. In the Dynamic recipients mapping drop down select again the field containing the invoice ID.
    Select the appropriate settings in the destination and format panels and let at least on BO user subscribe to the publication .
    After that you can run the publication.
    Regards,
    Stratos

  • Show sum column item Report in another item TEXT ?

    I have a report region to the query "select * from emp" and would like to display the sum of the salt field in another item using the TEXT APEX_APPLICATION.G_F01 rather than run the querie again without using a submit button, or whenever to have a page refresh the data are updated. This has to do?
    Ps: My apologies for my English because I used google translate.

    you need to use lookup column .
    Try this 
    http://blogs.sharepoint911.com/blogs/jennifer/Lists/Posts/Post.aspx?ID=53

  • SAP Cloud SDK : How to create the Note Field with Char 1000 length

    Hi Experts,
    I have a requirement to create Note type fields in the standard business object. and that note field should be 1000 char length.
    Also I need to check whether that Note field we can add under the standard report or not with report enhancement?
    1) How to make a Note type field using SDK with length 1000 char? Is it possible? If yes How ?
    2) If using SDK Note type field possible then how to display that field in report ?
    Many Thanks,
    Mithun

    Hi Frank and Horst,
    I have followed the steps you have mentioned in the post.
    1) Create Business Object Extension.
    2) Add the Custom Field with Type " LANGUAGEINDEPENDENT_EXTENDED_Text".
    3) Enhance the Screen and Add into the Header section of the COD_TI screen.
    I have successfully entered the unrestricted character into that field.
    But I want to add that custom field into the Standard Data Source or Standard Report.
    1) Is it possible to add custom field under the Standard Data Source or Report Using SDK?
    2) Is it Possible to display the 1000 character length on the Report field?
    3) Is it possible to display the created extension field under the report / data source using SDK?
    Many Thanks,
    Mithun

  • Cannot insert a picture (image - BLOB) directly into a report field?

    Hello
    I am new to APEX and I am trying to create a table with an image together with an input form and an output report but I am having difficulty in displaying the image in the report field.
    My work so far:
    1 I am using APEX to generate a table with a BLOB, Filename and Last_Update_Date fields.
    2 I have followed the article on the http://www.oracle.com/technology/obe/apex/apex31nf/apex31blob.htm.
    3 The title is: 'Defining and Viewing BLOB Data in Oracle Application Express 3.1'
    4 I have generated the table, form and report.
    5 I have downloaded the image as an attachment and inline on the form Ok.
    6 I have successfully downloaded an image on the report with the words image as a link in the report field. Note the http path is: http://glkas0892v.greenlnk.net:7777/pls/htmldbDEV/apex_util.get_blob_file?a=475&s=7094501042405784&p=3&d=1360784770040764381&i=1360783771822764369&p_pk1=123&p_pk2=&p_ck=2F17C4FBDE22B25A02026F67AB59D4F0&p_content_disposition=inline
    7 I have unsuccessfully tried to insert the image directly into a report field itself. The report displays the picture as a symbol with a cross.
    Note the http path is: http://glkas0892v.greenlnk.net:7777/pls/htmldbDEV/apex_util.get_blob?s=7094501042405784&a=475&c=1360779972416764351&p=2&k1=&k2=&ck=4BFA878ADD2028D2E9B127BB03F78B8D&rt=CR
    7a I have reduced the size of the images to 20 by 30 pixels but no joy.
    Conclusion
    The only difference I can see is that in 6 the command in the path is apex_util.get_blob_file? But in 7, unsuccessful, the command in the path is apex_util.get_blob?
    Please help me as there must be some one out there who has experienced the same situation.
    Thanks
    Brian

    My colleague has found the answer. A known fault exists within APEX 3.1 in that the Blob declaration must be after the Last update declaration and then the image displays correctly on the report.

  • ALV SUM for non numeric fields.

    Hello Gurus,
    I have a requirement where i have a alv output and i have a check field of char 1 length...and it displays X as the output. Now i need to have X at the sum line at the end.is there is any possibility with the fieldcatalogue.

    Hi
    U can not do sum for char type fields,it will only possible for numaric fields.
    This u can do by program,after populating the output data,do the sums for the required fields in program and append that to output table as last record.Display the last row with differant color.
    Regards,
    Raghu/

  • PM Reports: Need to find the sum of a particular field in the output.

    Hello Experts,
                          I have an issue. I have developed the report to calculate the power per ton. It is PM module.
    Input is : DATE & Measuring Point.
    Output required is : For a particular date , What is the power consumed per ton.
    Its is calculated by the formula Power consumed per day /  Production.
    I have multiple entries for production ( because different material are used )  per date and a single entery for power (because power is taken as total power consumed per day)
    Hence im getting the output as
    For example:
    date                power            production         power/ton
    01.03.2011      5000                    100                  50.00
    01.03.2011      5000                      50                 100.00
    01.03.2011      5000                      25                 200.00
    01.03.2011      5000                      75                  66.66
    The desired result is
    date                power            production         power/ton
    01.03.2011      5000                    250                  20.00
    I need to sum the production field.
    How can I achieve this ?
    Please help.

    Hello
    Rotate the loop and use event so on change just clear the variable based date condition .
    take 2  temp variable for summation
    clearing the total and moving value on permanent variable means modifying the itab.
    loop at .
    *Clear
    on change <datefield>.
    modify itab from wa  transporting <field name> .
    clear <total field>.
    endon.
    *Total
    t_prd  = t_prd + production..
    t_power = t_power + power .
    endloop.

Maybe you are looking for