Sum Total in Reports

hi guyz,
i did this before but today i forget it how i did :)
i have master detail report, have the below field
Master
Invoice#
Name
Description
Details
Inv#
Item
QTY
Unit Price
Total
Sum_total
i place a formula on total is
RETURN NVL(:QTY, 0) * NVL(:UNIT_PRICE, 0);it give me the correct total in total field but i didnt get the sum_amount, anyone give tell me how can i get the sum_total from total? any formula or any other thing?
any help appreicate.
im using reports 6i.
Regards
Edited by: Moazam Shareef on Dec 12, 2009 12:42 AM

hi
try something like this.
Example:
PROCEDURE get_gap IS
Cursor C_k1(P_Week pls_integer) is
SELECT sum(reload_amount) theSum,
count(reload_amount) theCount
FROM trap_ra_k2_ain_balance
WHERE week_no = p_week;
R_K1 C_K1%Rowtype;
Cursor C_k2(P_Week pls_integer) is
SELECT sum(reload_amount) theSum,
count(reload_amount) theCount
FROM trap_ra_k1_ppb_balance
WHERE week_no = p_week;
R_K2 C_K2%Rowtype;
v_reload_amount_ain number(12);
v_reload_amount_ppb number(12);
v_number_reload_ain number(12);
v_number_reload_ppb number(12);
BEGIN
----> totally unnecessary: if no value given in declarartion, a number will default to zero
v_reload_amount_ain := 0;
v_reload_amount_ppb := 0;
v_number_reload_ain := 0;
v_number_reload_ppb := 0;
:CP_1 := 0;
:CP_2 := 0;
:CP_3 := 0; -- 'A'
:CP_4 := 0; -- 'B'
open C_k1( :P-Week)
fetch C_k1 into r_k1;
close c_k1;
v_reload_amount_ain := nvl(R_k1.theSum,0);
v_number_reload_ain := nvl(R_k1.theCount,0);
open C_k2( :P-Week)
fetch C_k2 into r_k1;
close c_k2;
v_reload_amount_ppb := nvl( r_k2.theSum);
v_number_reload_ppb := nvl( r_k2.theCount);
:CP_1 := v_reload_amount_ain - v_reload_amount_ppb;
:CP_2 := v_number_reload_ain - v_number_reload_ppb;
-- checking for 0 divisor
if (v_reload_amount_ppb) > 0 then------------------------------------------------> this cannot be <0 ?
:CP_3 := abs(ROUND(:CP_1/(v_reload_amount_ain + v_reload_amount_ppb) *100,2));
----> Not nec: you allready did this in 'A'
else
:CP_3 := 0;
end if;
-- checking for 0 divisor
if (v_number_reload_ppb) > 0 then------------------------------------------------> this cannot be <0 ?
:CP_4 := abs(ROUND(:CP_2/(v_number_reload_ain + v_number_reload_ppb) *100,2));
----> Not nec: you allready did this in 'B'
else
:CP_4 := 0;
end if;
END;sarah

Similar Messages

  • SUM in ALV REPORT

    hi all
    i want a sum in alv report. but i have two company seling amount and both in one row. so if i want to sepret this both field means i want to leave one or two line between this two party. and want sum of this two party in same line.
    please help me out as soon as possible
    thanks

    Hi,
    I believe u shkd be having two company number on the out put of ALV list...
    U can use that feild & do a subtotal for AMOUNT grouping by company fields.
    U will be having a Sub-total button on ALV Grid output...
    Regards.
    Bhargava

  • RUNNING TOTAL IN REPORTS

    Hi,
    Can any one tell me how to create a running total in Oracle reports. I have two fields pulled in the SQL called CR and DR. I want to do the running total at report level. Here what I want
    CR------DR-------RTOTAL
    20-----10---------10 ( here the RTOTAL Field is (20 - 10) )
    30-----15---------25 ( here the RTOTAL Field is (30 - 15) + 10)
    50-----25---------50 ( here the RTOTAL Field is (50 - 25) + 25)
    75-----35---------90 ( here the RTOTAL Field is (75 - 35) + 50)
    Thanks
    -Feroz

    Hello,
    You can use the following SQL query :
    select cr,dr,cr-dr cr_minus_dr from <table> ...
    and create a Summary Column in the Reports :
    Source : the field cr_minus_dr
    Function : Sum
    Regards

  • Sum the Sum total values above

    Post Author: John Patterson
    CA Forum: Formula
    I have created a report that contains a list of values (in a group) that come from a formlar that has Sum {} totals in it.  All I want to do is sum that list into one value below, just like Excel would do!
    Crystal won't allow me to sum the results of group sum totals higher up the report.   I have been told that I need to create a conditional running total or a set a variable to store the values required.
    Any ideas?
    Many thanks
    John

    Post Author: fusion
    CA Forum: Formula
    Definitely Jami,I found out that Running Total is an answer. I still  need to find out how to get a percentage of the total using a running total. When you use a summary option then there is a option that allows you to have the filed as a % of the total of that filed. How can you do the same using running total. I am trying to work with formulas but no any luck so far.Your help is highly appreciated

  • Sum total of categories

    I am trying to take the sum total of each category in my checking account and create a chart of percentages.
    Is there an easy way to this. I am trying to do what they did on the checking account template in numbers.
    Thanks

    Hi Jonathan,
    While Yvan is correct in what he says, he, and Badunit in the post linked by Yvan, are talking about using the sums reported in a Category row in further calculations or as drivers for a chart/graph.
    Obviously, it is possible to create a pie chart from sums of each category in a checking register, as the supplied template does exactly that.
    Clicking on the chart in that template will show the cells supplying the data to the pie chart.
    Clicking on the cell supplying the total for the Home category will show (in the Formula bar) the formula that calculates the category total:
    =SUMIF(Transactions :: $D,A2,Transactions :: E)
    SUMIF is the key here. It reads the category of each transaction from column D of the Transaction table, and it that matches the category is A2 of its own table, it includes the amount in column E in the total for that category.
    You can find out more about SUMIF (and about the other functions used in the Checking Register and other templates) in the iWork Formulas and Functions User Guide. You can get the Guide, and the Numbers '09 User Guide, through the Help menu in Numbers.
    Regards,
    Barry

  • Stopping Sum Total completed activity popup

    1st time posting and new user of Adobe Captivate 5. Hoping to find some help.
    Here is my scenario.
    I have a Power Point presentation that I have brought into captivate 5.
    The steps I need to accomplish are
    1) Disable the SumTotal player (done through edit of Manifest.xml file.
    2 Have user page through all slides to end.
    3) Captivate send a completion to LMS
    Here is my problem.  As soon as user enters last slide Sum total pops up the "You have completed the activity. Click OK to close the player." button right in the middle of the slide forcing the user to move it to finish reading the slide and then they would need to click OK to close thus generating a completion status in the LMS.
    My publish settings are
    Quiz enabled
    LMS standard SCORM Template default (have also tried the Captivate 4 template i found)
    Manifest version 1.2
    Mastery Score 100
    Reporting Status Complete/Incomplete
    Report to LMS Percent
    Chose Report Data Slide Views Only Slide Completion 100
    Reporting Level Report Score
    LMS Customerization Settings
    Never Send Resume Data checked.
    I really just need the Sum Total box to appear after the last slide or at least set it so that I can control a set time that it appears.
    Thanks

    Whenever I hear someone having issues getting an LMS to work with Complete/Incomplete, suggest they try using Pass/Fail instead.  Call me cynical, but I've seen so many people have problems with getting it to work reliably that I've grown to be very distrustful of Complete/Incomplete as a solution for LMS tracking.
    Also, try testing what happens if you add a scored button on that last slide which the user must click to indicate they've completed the module.  See if adding such an interactive object to the last slide will delay the appearance of that nuisance Sum Total dialog.
    I wish I could get hold of a trial or developer setup for Sum Total and run it on my development machine.  Too many people report issues with getting Captivate to work reliably in Sum Total, yet Captivate content seems to work fine for most other LMSs.  I find this intriguing.

  • Publish Captivate 4 module for Sum total

    Hello everyone. I have two training modules that are not scored. They are demonstrations, not simulations. I need to publish them so that they can be added to a customers Sum Total LMS.  What settings should I use when publishing to LMS?  And any tips or tricks I should know?  I do not have access to the LMS.   For our training, we host our own internal web pages.
    Thanks

    Hi,
    Thanks for the tips.  I read some of the suggested resources, and created a click box on the last slide with click box settings as:
    On Success --> Execute Javascript --> javascript:window.close()
    ... and Reporting settings as:
    Include in Quiz (checked)
    Report answers (unchecked)
    Points = 1
    Add to Total (checked)
    The LMS system accurately flags the course complete, but the click action does not close / exit the module.  This is a SCORM 1.2 module.
    Any ideas?  Is it possible to test this in HTML outside the LMS system, or am I forced to test this in the LMS system?
    Thanks,
    Henry

  • Zero totals in report

    Hello ,
    I have written some SQL to create a report that will change the colour of the font to Red if the value of another field is "Credit' and Green' for the else.
    Even though I select "SUM" in the 'Report Attributes' section I still get a zero total, why is that ?.
    I belive it has something to do with my SQL converting a number field to CHAR, but the SQL will not work unless I convert to Char.
    How can I successfully have the the values below converted back to a number value ?
    If a just tag the TO_NUMBER to the start I get an error
    Here is the SQL
    select "BILL_DATA"."CREDITDEBIT" as "CREDITDEBIT",
         CASE WHEN (CREDITDEBIT) = 'Credit' then
              '<span style="color:Red;">'
              || TO_CHAR (0 - "ADJUSTMENT_INCL_GST", 'FML999G999G999G999G990D00')|| '</span>'
                             else
              '<span style="color:Green;">'
              || TO_CHAR ( "ADJUSTMENT_INCL_GST", 'FML999G999G999G999G990D00')|| '</span>'
                             end "Adj (incl GST)"
    from     "BILL_DATA" "BILL_DATA"
    where "BILL_DATA"."CLOSE_DATE" is null
    -----------------------------------------------------------------------------------

    Try using a report template. That will allow you to keep the column as a number and conditionally display the color you desire.
    chet

  • Profit center accounting totals records report 2KEE:

    Hi,
    When I am executing Profit center accounting totals records report 2KEE for a specific selection as below,
    Record type: 0
    Version: 0
    Controlling area:
    Company code:
    Posting period :1
    Fiscal year:2007
    Profit center: 1000dummy
    Account:
    After report is generated and if drill down further, line items total is not matching with the report page, breakup gives different values but not the report value.
    I tried report even after implementing OSS 892779 and 952263 but the result is same.  I am using 4.7
    Request your help in this.
    Regards,
    Lakshmana Rao

    Dear Eugene,
    What do you mean? What is the report?

  • Adding Sum Totals from Multiple Tables in A single Document

    Hello All,
    I'm having trouble adding sum totals from multiple tables I've created in a Pages 09 doc. I putting together a spreadsheet for cost projections for a house remodel. I created tables for each room of the house. At the bottom of the document I'd like to have another table that takes the totals from each individual room and adds them up. Problem appears to be that each table has the same x/y axis labels so row and column numbers/letters are repeated so the final table can't quantify thing correctly.
    Any easy solutions? I can't find anything that's helped in my search efforts.
    Thanks,
    Josefis

    Jerry,
    Thanks for the feedback. I thought that might be the case. And you were correct to assume I was more comfortable in Pages. I'm halfway through converting everything to numbers. In the end it will work great too. Just some different formatting/design choices to be made as numbers doesn't appear to be as versatile in the same way pages is with design. So far it looks pretty good though.
    Thanks again,
    Josefis

  • Need a formula to calulate multiple cells and add the sum total to a cell in a other table

    Im a chef and my monthly inventory is a time consuming task. I get invoices from multiple suppliers on each day of the week. I enter them into a spread sheet and then need to add the sum total for all the invoices for say MONDAY. That total needs to be entered into a cell in another table  called "daily spend". Is there a formula to automatically add say all the invoices from monday and input the daily spend cell on that table. Here is an example
    I created a column B-to give each day a number(sometimes multiple invoices come from the same supplier for each day)<GREEN>..If there was a way to do this differently...Im happy to change the layout of the spreadsheet.  I want to add the total $ (column F)  for each day together(all the blue fields) and then insert the total into another cell seen in the next  table .  So in this example its F4+F16+F17=?, ? inserted into N2 of the next table
    Thanks so much

    "I ve finally has a play with the advice you gave me but I have realized that the formula you gave me is for a week....and like I mentioned in my reply to you, one table is weekly the other is monthly....is there a way to overcome this? (my answer to you explains it)"
    Hi Gavin,
    Unfortunately, the scale of your illustrations in that reply made them difficult (or impossible) to read, even on the Retina screen.
    The first formula, used to fill column B, extracts the Weekday number for each date. Since these numbers should be equivalent to the day of the month, You'll need to replace this with a formula that returns the Day value of each date:
    Old:
    B2: =WEEKDAY(A,2)
    New:
    B2: =DAY(A)
    Fill down to end of column.
    Because of the arrangeent of your Data table, you will need to repeat this formula in column H (with references to column G), etc. for each set of dates in the table.
    The SUMIF formula in column F is fine as is, except that it assumes all condition data will be in column B of Data, and all data to be summed will be in column F of Data. Since this is obviously not the case for your Data table, you will need a separate iteration of the formula for each week in the table, with the four SUMIF statements enclosed in a SUM statement:
    E2: =SUM(SUMIF(Data :: $B,A2,Data :: $F),SUMIF(Data :: $H,A2,Data :: $L),SUMIF(Data :: $N,A2,Data :: $R),SUMIF(Data :: $T,A2,Data :: $X))
    Fill down for as many rows as there are days in the month being summarized.
    Column references in the formula assume that six columns are used for each week, and that there is no gap in the table between weeks.
    Note that the formula does not distinguish between transactions on July 7 and those on June 7 or August 7. Because of this, the Data table must be limited to transactions in a single calendar month.
    Regards,
    Barry

  • Copying sum total in sapscript

    Hi Experts,
    we have a customer invoice print in sapscript. In this we calculate the sum total in the end of the script .
    My question is how to copy the same sum total to be displayed in the first page of the script.
    Thanks in advance..

    Hii
    put the summation filed in the first page of script
    regards
    Jaipal

  • Uploading Linked Captivate 2 Projects into Sum Total LMS

    I've been trying to upload a series of media-rich linked
    projects to our Sum Total LMS. Although there are several projects,
    they are linked to play seamlessly to the end user. The problem is
    when each project is published, it creates its own zip file. In
    order to upload the files to the LMS they must be in one zip file
    or they will upload as separate, independent learning modules. I've
    encountered numerous challenges in attempting the upload.
    Does anyone have any experience/suggestions about:
    - Publishing each project into the same zip file
    - Uploading linked Captivate 2 projects to an LMS, especially
    the Sum Total LMS
    - Uploading a project with flash videos to an LMS
    I greatly appreciate any feedback you can provide.
    Thanks!

    I always link between Captivate files to ensure that my files
    are not too big. I have done this many times; however, I have not
    tried it when there is a quiz involved. What I do is link them
    inside Captivate, publish the files (non-zipped, which you can do
    if there isn't a quiz involved) and then zip them up together with
    Winzip. When you load it into the LMS, you need to choose either
    "Knowledge Document" or "General Document" and there, you can
    choose the launch file (whatever file you want to load
    first.)

  • Total Score in Sum Total not correct

    We are using Captivate 4 and the Sum Total LMS.  Our course consists of 2 lessons which are not scored and an assessment which is scored.  The settings for the lessons are Slide Views Only so the lessons have the Topic Status Complete or Incomplete on the Sum Total LMS Learning Activity Progress Detail page, with the Score % blank.  The assessment also has Topic Status Complete or Incomplete, and also a Score % (80% required to pass).  The Topic Status and Score % values are correct for the lessons and the assessment, however the Total Score is not correct.  When the user completes the 2 lessons and the assessment with a score of 100%, the Total Score shows as only 33%.  So it seems that Sum Total is including the lessons in the Total Score, and calculating the Total Score by (100+0=0)/3 = 33%, i.e. assigning 0% to the lessons even though the Score % is blank for the lessons.
    Is there a way to have the Total Score be just for the assessment?  If the user scores 100% on the assessment we would like the Total Score to be 100%. 

    Hi,
          Can you make your question more clear, it is not clear what is you requirement exactly.
    '.Total stock not issued from gate in stock.' : Yuou mean to say GR made with 103 but 105 not done for that
    or  Total stock in store but not issued yet )  : there is no GI with any movemen type ??
    regards,
    zafar

  • Sum total bug

    I have a bug in 4.1.41 with Sum Total at the right...
    Each cell in my display is a simple calc like SUM(Hits). This is then Sum totaled as a Grand total at
    the right. Everything works fine in this case.
    Now if I replace my simple calc with a more complex calc into the same calculation: DECODE(SIGN(NVL(SUM(Hits),0)-NVL(SUM(DECODE(Category,'Audio',Hits,'TV and Music',Hits,0)),0)+NVL(SUM(DECODE(Page,'Digital Music',Hits,'Listen to Music',Hits,0)),0)),1,0,1)...the Grand total at the right works fine the first time...until I save the sheet and exit...and then get back into Discoverer.
    When I get back into Discoverer...my Grand total at the right displays as all blanks. It simply refuses to display like it did the first time when I defined it. In order to get around this bug, I have to makeup a new simple calc, and then redefine it by putting my more complex definition into it.
    This gets old and is tedious. Anybody know what is going on?

    I have a bug in 4.1.41 with Sum Total at the right...
    Each cell in my display is a simple calc like SUM(Hits). This is then Sum totaled as a Grand total at
    the right. Everything works fine in this case.
    Now if I replace my simple calc with a more complex calc into the same calculation: DECODE(SIGN(NVL(SUM(Hits),0)-NVL(SUM(DECODE(Category,'Audio',Hits,'TV and Music',Hits,0)),0)+NVL(SUM(DECODE(Page,'Digital Music',Hits,'Listen to Music',Hits,0)),0)),1,0,1)...the Grand total at the right works fine the first time...until I save the sheet and exit...and then get back into Discoverer.
    When I get back into Discoverer...my Grand total at the right displays as all blanks. It simply refuses to display like it did the first time when I defined it. In order to get around this bug, I have to makeup a new simple calc, and then redefine it by putting my more complex definition into it.
    This gets old and is tedious. Anybody know what is going on?

Maybe you are looking for

  • Recovering data from Temp file following transfer failure

    Hey everyone, I'm wondering if anyone knows anything about recovering Lightroom data from temp files. Last month I made a serious, serious error while transferring my files in Lightroom. I was off-loading a month's worth of material off of one hard d

  • Nesting EL expressions in core tags

    Hi all, I have a situation where I require to use dymanic textboxes based on the certain criteria. To make this work I used strut's LazyValidatorActionForm. It works like a charm but when I want to write out certain form property using EL, it doesn't

  • List of Employees working in same shift

    Hi All, I would like to see the list of employees who are working in the same shift. i.e., I have employees who are working in three different shifts (Mrng, Aftn & Nigt). Now I would like to see the list of employees who are working in the night shif

  • Sorting compilation albums

    I've downloaded several compilation CDs into the music library on my computer (I have not loaded the library to my ipod yet). They sort fine when I sort them by album, but when I sort them by genre, the compilation albums "break apart." The single ar

  • Customer Conversion

    Hi, When iam trying to load customers using HZ API,the data is successfuly getting loaded in the hz base tables ,but iam not able to query the customer in customer screen.Example i loaded a party of type organization and i was able to query the party