Calculating Total

Hi
I have a 3 fields
Quantity | Price | Total Price=Quantity*Price
2 | 3 | 6
3 | 4 | 12
I have another field A where i need the total of the 'Total Price'.....i.e 6+12=18
Quantity , Price and Total Price fields are in the child entity ......whereas the field 'A' is in the parent entity
I have gone through the Post Default and workflows but it didn't worked
How can we achieve this?
Edited by: RohitGarg on Sep 14, 2009 10:49 PM

Rohit,
You either need to use webservices to do this function or you could write a report that does this calculation then pass it as a related item onto the page, this will give you the total figure you need visible fromt he page but not on it.
cheers
Alex

Similar Messages

  • I am using a PC with window 7 and adobe photoshop 12. I have followed Photoshop Elements Help and I still have the same problem. When I try to backup Photoshop 12 it has stop on7% when calculating Total Media size. What can I do?

    I am using a PC with window 7 and adobe photoshop 12. I have followed Photoshop Elements Help and I still have the same problem. When I try to backup Photoshop 12 it has stop on7% when calculating Total Media size. What can I do?

    Hi Prabhuram and falez,
    This issue appears where there are any inconsistencies in your catalog (generally for video files). This issue may be due to offline files, missing files, video scenes. The recommendation here would be to fix these inconsistencies and try again. If that doesn't solve the issue, please follow steps mentioned in email by me.
    ~Surendra

  • Calculating total memory in oracle RAC environment

    I have to calculate total memry in RAC environment.
    For shared and buffer pool I execute show sga.
    For UGA and PGA I execute statement that have two different values.
    This is my two different methot for calculating total memory in oracle RAC environment.
    Why I have very different value in this 2 statements on pga values?
    first stat
    with vs as
    select 'PGA: ' pid
    ,iid
    ,session_pga_memory + session_uga_memory bytes
    from (select inst_id iid
    ,(select ss.value
    from gv$sesstat ss
    where ss.sid = s.sid
    and ss.inst_id = s.inst_id
    and ss.statistic# = 20) session_pga_memory
    ,(select ss.value
    from gv$sesstat ss
    where ss.sid = s.sid
    and ss.inst_id = s.inst_id
    and ss.statistic# = 15) session_uga_memory
    from gv$session s)
    union all
    select 'SGA: ' || name pid
    ,s.inst_id iid
    ,value bytes
    from gv$sga s
    select distinct iid, pid, sum(bytes) over (partition by iid, pid) bytes from vs
    IID PID BYTES
    1 PGA: 196764792 <=====
    1 SGA: Database Buffers 318767104
    1 SGA: Fixed Size 733688
    1 SGA: Redo Buffers 811008
    1 SGA: Variable Size 335544320
    2 PGA: 77159560 <=====
    2 SGA: Database Buffers 318767104
    2 SGA: Fixed Size 733688
    2 SGA: Redo Buffers 811008
    2 SGA: Variable Size 335544320
    second stat
    with vs as
    select 'PGA: ' pid
    ,p.inst_id iid
    ,p.pga_alloc_mem bytes
    from gv$session s
    ,gv$sesstat pcur
    ,gv$process p
    where pcur.statistic# in ( 20 -- = session pga memory
    ,15 -- = session uga memory
    and s.paddr = p.addr
    and pcur.sid = s.sid
    and pcur.INST_ID = s.INST_ID
    and pcur.INST_ID = p.INST_ID
    union all
    select 'SGA: ' || name pid
    ,s.inst_id iid
    ,value bytes
    from gv$sga s
    select distinct iid, pid, sum(bytes) over (partition by iid, pid) bytes from vs
    IID PID BYTES
    1 PGA: 342558636 <=====
    1 SGA: Database Buffers 318767104
    1 SGA: Fixed Size 733688
    1 SGA: Redo Buffers 811008
    1 SGA: Variable Size 335544320
    2 PGA: 186091416 <=====
    2 SGA: Database Buffers 318767104
    2 SGA: Fixed Size 733688
    2 SGA: Redo Buffers 811008
    2 SGA: Variable Size 335544320

    I'm sorry but it is not clear to me.
    - From v$session (1th stmt) I have
    nearly 196MB of PGA mem on instance 1
    and
    nearly 77MB of PGA mem on instance 2
    - From v$process (2th stmt) I have
    nearly 342MB of PGA mem on instance 1
    and
    nearly 186MB of PGA mem on instance 2
    then...
    342+186 - 196+77 = nearly 255MB of memory allocated by oracle processes but free?
    if I want calculate the total thing of the amount of the allocated memory from Oracle...It is more correct 2th statement that query v$process...it is true?

  • Calculating Total Ending Inventory

    Hello BW Gurus,
    I have a reporting question for you. Please reply back as soon as possible as I am nearing the deadline.
    The scenario is as below:
    I need to calculate the Total Ending Inventory and the formula is as below:
    Total Ending Inventory = ‘A’ – ‘B’ – ‘C’ + ‘D’ + Last Period ‘Total Ending Inventory’
    How would I calculate the Last Period ‘Total Ending Inventory’? Total Ending Inventory is just a Calculation and is stored no where in BW.  Since I am running the report for the first time this month, Last period 'Total Ending Inventory' would be Zero for the current month. But current month's Total Ending Inventory would become next month's Last Period Total Ending Inventory. To acheive this, I need to store the Calculated Total Ending Inventory somewhere in BW so that I can pull this information when I am calculating next month's Total Ending Inventory.
    Please let me know the solution and the steps involved as soon as possible.
    Thank you very much in advance.
    Best Regards,
    Rajiv.

    Hi Anil,
    Thanks for your reply. The problem here is Total Ending Inventory is not a KF that is stored in a Cube. It is a calculated Key Figure. When I am calculating Total Ending Inventory I need to add last period's Total Ending Inventory to the calculation. Any idea on how to achieve this?
    Thanks in advance.
    Best REgards,
    Rajiv.

  • Calculating Totals for a column in ALV Grid Display

    Hi All,
      I frustrated with the problem of simple calculating total for a column. I wrote the following code:
      LW_CATALOG-TABNAME   = P_GV_STRUCT.
      LW_CATALOG-FIELDNAME = 'ZSUMMS'.
      LW_CATALOG-DO_SUM    = GC_X.
      APPEND LW_CATALOG TO G_FIELDCAT_TAB.
      CLEAR LW_CATALOG.
    It is not working. Could you please suggest the solution?
    It would be great help to me.
    Advanced Thanks,
    Phani Kumar

    Phani,
    Did u try playing around with any of these layout fields ?
    no_sumchoice(1),       " no choice for summing up
    no_totalline(1),       " no total line
    no_subchoice(1),       " no choice for subtotals
    no_subtotals(1),       " no subtotals possible
    no_unit_splitting  " no sep. tot.lines by inh.units
    totals_before_items,   " diplay totals before the items
    totals_only(1),        " show only totals
    totals_text(60) ,      " text for 1st col. in total line
    subtotals_text(60) ,    " text for 1st col. in subtotals
    b. Addtionally... not a solution.. but u know...
    just try the same code iwth reuse_alv_list_display and see if the total gets displayed properly ?

  • Organizer 12 backup stops while calculating Total Media Size

    I have not successfully completed a backup with PS Organizer 12.  It stalls at 16 or 17 % calculating Total Media Size.  My Photo folders are about 180 GB.  I have 287GB free on my data drive.  My Apps drive is a 100GB SSD  with 36GB free.  When Backing up I am given the choice for full backup of the partial.  I chose full.  It does not ask for a folder.  Do not know why.  I transferred my photo folders from my previous PC, then transferred my USER PSE files and all worked fine, all attributes were transferred.  In addition I have optimized my catalog; cleaned the thumbnail CACHE by changing the .dat files to .old and restarting; set my Registry for maximum file size in Organizer to 1.5GB, my largest file size is 1.2GB;
    deleted files from the Catalog larger than 50MB and all files and imported them back in.  The Adobe help has help topics of either Back up your catalog to an external hard drive or Back up your catalog to a CD or DVD (Windows Only).  They do not mention a thing about backing up onto your PC, they do not say you cannot.  Well, oh, I have 8GB RAM and an Intel Core i7.  Suggestions appreciated.

    I identified the problem as to why PSE 12 Organizer was freezing during backup procedures.  The problem of freezing during backup calculation of the file size is caused by the existence of *.MOV file types.  Both my Nikon camera and my Kodak digital cameras save video recordings in *.MOV file formats.  This is likely a rare case, as only users who have Kodak or Nikon Cameras would be affected.
    I had to select, filter, all files with *.MOV formats and delete them from my catalog.  After the catalog was backed up successfully on my hard drive, same drive, different folder, I had to drag and drop the videos to get them back into the catalog.  All tags and locations and people were lost.  I could not search them and import from folder.  So the catalog is backed up successfully.  This is likely a rare case, as only users who have Kodak or Nikon Cameras would be affected.
    Case Solved.
    Elements 12 backup failPhotoshop ElementsProblem with backing up catalog in Elements Organizer 12 - help please@

  • When I try to backup my catlaog the program locks up at "Calculating Total Media Size" 33%?

    When I try to backup my catlaog the program locks up during the "Calculating Total Media Size" process at 33%?

    I have seen this before and it is probably a bad video. There is no great solution. To determine if this is the cause I would remove all your videos from PSE and try to do a backup, if the backup works, one of the videos is bad. It is trial and error to determine which video. When you remove your videos from PSE make a note as to where you have put them so you can reload them..

  • When I try to backup my files from photoshop elements 12 the "calculating total media size" box will only get as far as 46% and then freeze, how can I make it go to 100%

    When I try to backup my files from photoshop elements 12 the "calculating total media size" box will only get as far as 46% and then freeze, how can I make it go to 100%

    hi barbara
    thank you for your response, i appreciate it.  there's definitely nothing wrong with the mouse or trackpad, both work fine in every other application....i can also easily change size dimensions in other programs on my computer so it doesn't seem to be that either.  it seems like there is something weird going on in the way that pse and my mac are interacting with each other, just wish i knew what it was.    thank you again, wish me luck!

  • Redisplay calculated total

    Hi,
    I need some help.
    I have a simple 'query/single selection result' page. You select a row and go to a 2nd page where you can make changes to the details.
    One of the changes you can make is a quantity attribute which is part of an EO/VO. If quantity changes, the total amount is re-calculated and updated on a different VO. Total amount is a transient field of a VO without EO.
    The problem is I can't seem to redisplay this new calculated total when the 'apply' button is pressed even though I've updated the VO with the new value. It still shows the old value and I have to go back to the query page and redisplay to see the new value.
    I've tried the following but nothing is working:
    pageContext.setForwardURLToCurrentPage (playing with retain AM)
    ClearCache
    pageContext.putParameter(totalAmount)
    Any help or ideas is greatly appreciated.

    pageContext.putParameter(name,value) worked. I just had the wrong name.
    Thanks for your time.

  • My calculation "Total" box adds sum of all text fields whether they are visible or not, do I change

    I have check boxes that show and hide text fields. (Thanks to Gilads Java script). In options I have a default value for each text field.
    My "Total" Field field adds all fields even if they are not checked and visible. Need to have it only include them if they are checked and visible.

    You can't attach forms by email, or any other means, so it didn't come through.
    Since your fields have default values and aren't calculated based on the state of the corresponding check box, you will have to use a custom calculation script for the Total field that can check to see if any of the fields are hidden, and if so, don't include their values in the sum. For example:
    // Custom calculation script
    (function () {
        // Set up an array of field names to include in the total
        var aFields = ["text1", "text2", "text3", text4"];
        // Initialize variables
        var i, f, sum = 0;
        // Loop through the fields an calculate the sum
        for (i = 0; i < aFields.length; i += 1) {
            // Get the current field
            f = getField(aFields[i]);
            // Add the value of the current field to the sum if the field is visible
            if (f.display == display.visible) {
                sum += +f.value;
        // Set this field value to the sum
        event.value = sum;
    You can send me a PM if you want help offline.

  • Calculating Total Hours

    Has anyone had any experience calculating hours for a work schedule in numbers? I would like to figure out how to calculate total hours worked for a week on a work schedule. I am struggling to find the best way to do so. I would like to not have to use military time. What is the best way to add up the total time worked when I'm inputting the time as 7a to 5p (star time and end time in different columns). I need to have the columns formatted for time and date so it can be viewed with ease as well, does anyone know a formula to add up the hours worked each day.

    Hello
    This question was responded so much times that I don't wish to search in the old threads for you.
    Click the "more options" button,
    select the forum dedicated to Numbers
    enter a keyword like "total hours" or Duration which is a word often used in my responses about this question.
    Yvan KOENIG (from FRANCE jeudi 24 janvier 2008 21:39:08)

  • Running calculation totals when adding pages

    http://www.funkylogic.co.uk/equity.pdf
    In a nutshell what I want to achieve is this: a cleint may own several properties, and have different percentage holding on each. Each property has a separate page of questions (the PDF above is that page). The first part of the equation is to calculate up the total equity in the property (TotEquity), and then based on the percentage holding (TotInterest), work out the individuals equity share for that property (TotalB). The form has the option to tell us about another property (addInstance), and we then have a second page with its own calculations and a new TotalB. This TotalB then becomes a running total for all pages added. Please can anyone help??

    Hi,
    Here is a version of the form: https://acrobat.com/#d=b*01ko6g2gn8Jqns9D1Hhg
    It shows how to loop through the instances of Page1. It does not appear to be working correctly (by my eye anyway). I am not convinced of multiplying the two values in the script.
    Hopefully it will give you a direction.
    A couple of things: I would not be inclined to name pages with a capital 'P' (Master pages are 'Page1'), I tend to name design pages as 'page1'. The font you are using is adding to the file size. Something like Myriad Pro is much smaller.
    Niall

  • Calculating total time.

    I'm somewhat new to using spreadsheets. Basically I just want to keep track of the time I spend doing a particular job. So I'm tracking my start time, end time, and then I want to calculate the total time spent. Thanks.

    Yes, I thought about that. But if you start at say
    9pm and end at 2am you would get the incorrect result
    of 7 hours. I think I have to convert the time to
    something else before the math takes place. But I'm
    not sure how that would work.
    I'm not sure how you managed to subtract 9pm from 2pm and get 7 hours. When I try 2am - 9pm, I get #VALUE!, as AppleWorks reads both 'times' as text, and cannot use Text values in a formula that requires numbers. AppleWorks is a bit fussy on what it considers to be a number.
    Using the default alignment, you can recognize what AppleWorks thinks is a number—it will be aligned to the right of the cell—and what AW considers to be Text—it will be aligned to the left of the cell. In the case of Time, you're better off using the 24 hour clock, and entering one minute betore 2pm as 13:59.
    The Mac clock's unit of time is the (24 hour) Day, and all times entered are regarded as the portion of one day that has elapsed up to that time. When you do the subtraction, the result is also a time of day. For start and end times within the same calendar day, simply doing the subtraction will give a result that can be read as the (correct) elapsed time. For the example times you gave, the 'correct' result is also visible:
    02:00 - 21:00 = 05:00
    But the actual numbers behind that 05:00 result and the two times used to get it are the portion of the current day that has passed up to each of the times entered, and the difference obtained when you do the subtraction:
    0.0833 - 0.8750 = -0.7917
    If you only want the (readable) result for a single day, that's not a problem. But if you want to add the results to get a total time for a week, you need to (make AppleWorks) do some additional math. In simplest terms, you need to add 1 to the end time if the end time is on the calendar day after the start time. There's an explanation of this below, which you should read for a better understanding of Time and the Mac, but which isn't necessary to use the formula.
    The formula assumes your start time is in column B, your end time in column C, your formula reporting time worked is in column D, and that you will enter times in rows 2..6, and calculate the week's sum in D7
    Enter in D2, and fill down to D6: =IF(C2,C2-B2+(C2<B2),"")
    Format these cells to display as Time.
    Enter in D7: =24(SUM(D2..D6)) —to report the result in hours (eg. 25.678)
    Format the cell to display as Number, General.
    or
    Enter in D7: =INT(24(SUM(D2..D6))&":"MINUTE(SUM(D2..D6)) —to report the result as hours and minutes
    Note that the second option for D7 produces a text string which will not be useable in further calculations.
    This is Text, so no Number formatting is necessary.
    Regards,
    Barry
    Time and the Mac
    The Mac clock tracks time in Days and Fractions of a Day, starting at midnight, January 1, 1904.
    Nine PM today, May 8, 2006, represented as a decimal number, is 37383.875. Two AM tomorrow, May 9, 2006, is 37384.0833333333.
    An AppleWorks spreadsheet cell (or database field) formatted to display as Time will ignore the whole number part of those numbers, and interpret the decimal fraction part as Time of Day, and display the result in the Time format you have chosen for the cell.
    A cell (or field) formatted to display as a Date will ignore the fractional part of the number, and display the whole number part in the Date format you have chosen.
    When you enter a time, the result is the time of day on January 1, 1904. When calculating elapsed times where start and end times cross the midnight boundary, you need to add 1 (day) to the result to compensate for the change in day and get a result that can be used in further calculations. That's what the "+(C2<B2)" part of the first formula above does—adds 1 if "(C2<B2)" is TRUE or adds 0 it it's false.
    If you add times, the result is 'correct', but if the total reaches 24 hours, the displayed result will appear incorrect as a Time formatted cell ignores the whole number part of the actual result (eg. 27 hours, or 1.25 days), will display as 03:00, the same as 3 hours, or 0.25 days. You can convert the result to hours and fractions of hours by simply multiplying the result by 24, and displaying it as a Number rather than as Time.
    B

  • Calculating total in checkboxes

    I am trying to create a pdf form which can calculate the checked boxes predefined values in to a TOTAL field. I tryed to upload the pdf file sample but forum not allowing it. Please refer the screenshot.
    Kind regards

    Hi,
    Assuming the airconditioning checkbox is called AirConditioning and the number of hours called AirConditioningHours and the project system checkbox is called ProjectionSystem.
    Try this JavaScript code in the calculation event of the total field;
    var total = 0;
    if (AirConditioning.rawValue == 1)
        total += AirConditioningHours.rawValue * 4;
    if (ProjectionSystem.rawValue == 1)
        total += 15;
    this.rawValue = total;
    Regards
    Bruce

  • Creating a  calculated total field in BIP

    Hi,
    Hope this isn't a stupid question. I have have a SQL data model in BIP (BI Publisher) which displays a percentage of the number of withdrawn students at our university against the total number of students.
    The report is broken down by department...so each row has a percentage calculation against it to show how many students have withdrawn for that year (which is parameterised).
    The person requesting the report wants a headline percentage...so essentially a calculated field doing (number withdrawn students/total number of students) * 100. I can't use the the default total settings as I don't want an AVERAGE of the column. We have 7 different departments with very different numbers of students/level of withdrawals so none of these are accurate.
    Tool for doing calculated fields seems a bit difficult (in that it seemingly only allows one mathematical operation -  a division OR a subtraction etc.) and doesn't allow you to put in a straightforward formula??
    Any suggestions??
    Thankyou,
    Alex

    FormsCentral was originaly created to create online form. Attachments are supposed with online form.
    We added the ability to save your form as a PDF but unfortunately the way that Acrobat and Reader submit attachments is not compatible with the FormsCentral service.
    If you want to manage your data collection yourself you can create a PDF using FormsCentral (without a submit button) and then add attachment fields to the PDF in Acrobat. You will also need to add a Submit button to your form in Acrobat. You can set it up to submit the PDF to your email address including attachments. For help with Acrobat Forms you can look at the Acrobat form forum
    http://forums.adobe.com/community/acrobat/forms
    To edit a PDF, created in FormsCentral, in Acrobat you might want to look at this post :
    http://forums.adobe.com/docs/DOC-3661
    Gen

Maybe you are looking for