Calcualting the total formula column.

Hi all

I am very new to bi Publisher... I have a requirement where I need to find the total amount of the formula column... How can I achieve this?
and also I need to find the total of the balance per month group... Here is an example of output that I need. Please help its urgent

Date amount CalcAmount Balance
June 1, 2010 100 150 200
June 3, 2010 50 50 300
August 5, 2010 100 50 200
August 6, 2010 300 60 400
_____________________________________
310

Jun:500 Aug:600

How to get to this... where calcamount field does not come from any input file... what I did manually in rtf model...


Please help urgent

Thanks in advance
Bharat

You can try using this code.
.. /AMT]) - xdoxslt:sum(AMT[.)<.. pplied])?="">

Tags: Business Intelligence

Similar Questions

  • How to get the total of column in javascript for an inputText.

    Hi Experts,

    Jdev 12.1.3.0

    How can I make a total of a column in javascript. Scope is backingbeanscope.

    column contains inputText and column footer is an outputText.

    Thank you

    Roy

    Hi Roy, you have inputText, average, you add the line, then you want to calculate the total? If that's true, then you should try the JS code below

    function doSum (evt) {var inputTxt = evt.getSource ();}           var num = 0;           var colId = inputTxt.getProperty ("colId");           outId var = inputTxt.getProperty ('outId');           var table = inputTxt.findComponent('::t1');           var nbRows = parseInt (table.getRows ());           var tableAbsLocator = table.getAbsoluteLocator ();           While (nbRows)-{var rowCol = AdfPage.PAGE.findComponentByAbsoluteLocator (tableAbsLocator + "[" + nbRows + "]:" + colId);}               NUM = num + rowCol.getValue ();           } var outputText = inputTxt.findComponent (outId);           outputText.setValue (num);           } For more information, see this https://community.oracle.com/thread/3512479

    : Nitesh

  • Hide a column, if the total of column is 0 (zero)

    Hello

    I'm trying to hide the entire column if the column total is 0.

    Model example:

    NUM

    IF Amt1 end if

    Amt2

    IF Amt3 end if

    F NUM

    IF $0.00 end if

    $0.00

    IF $0.00 end if E

    Totals

    IF $0.00 end if

    $0.00

    IF $0.00 end if

    Sample data:

    NUM

    Amt1

    Amt2

    Amt3

    10 P

    108.25

    28,00

    0.00

    0020445.000.00003100.12472.000.00004145.00872.000.000054:30 pm25.320.00

    I use the below expressions that does not work.

    <? If@column:sum (amt1)! = 0 ? > <? amt1? > <? end if? >

    <? If@column:sum (amt3)! = 0 ? > <? amt3? > <? end if? >

    I want to hide the entire cloumn Amt3 and leave the '0' at such amt1 what. Any help would be appreciated.

    You can try as

    before the table do the sum (amt3) column using the variable and store that value in a variable, then use this variable as u stored the value of the sum (amt3) column.

    F cal variable to get the sum of column E of amt3

    NUM

    Amt1 end IF

    Amt2

    Amt3 end IF

    F NUM

    If $0.00 end if

    $0.00

    If $0.00 end if E

    Totals

    If $0.00 end if

    $0.00

    If $0.00 end if

    Then use

    If it doesn't work for you send me xml and the model to my email, I can try on my side and send model u updated.

    my email: [email protected]

  • Percentage of the Total of column

    Hello

    I'm trying to calculate the percentage of the total of the column for each month. I am using the syntax below by counting (Num) where PRP = 'Y' and the GROUP = 'No' and divide that number by the total number for the month:

    <? County (current-group () [NAME = xdoxslt:get_variable($_XDOCTX,_'vName') and PRP = 'Y'])
    (and GROUP = 'No'] / NUM) div count (current - group () [PRP = 'Y'])? >

    Can anyone help understand where the problem lies?

    Thank you

    You get an error when you use the code you listed?

    Try this:

    Thank you
    Bipuser

  • Tab crossed with the total group columns is not printing zero if no data exists

    Hi all

    Please help me question.

    I have obligation to prepare a report in xml editor
    -----------------------------------
    Operator:
    BRAATEN, DON
    NAME all Standard distributions
    Before 7 0 0 0
    07:00 08:00 0 0 0
    08:00 09:00 0 0 0
    09:00 10:00 1 0 1
    10:00 11:00 0 0 0
    11:00 12:00 0 0 0
    12:00 13:00 0 0 0
    13:00 14:00 0 0 0
    14:00 15:00 0 0 0
    After 15:00 0 0 0
    1 0 1 totals

    ---------------------------------------------
    If no data exists for the operator to a particular name, we print zeros.
    now the problem is with the total of the columns. If no data exists that is simply not printing total column as zero.

    our production is illustrated below...

    -----------------------------------------------------------
    Operator:
    BRAATEN, DON
    NAME all Standard distributions
    Before 7 0 0 0
    07:00 08:00 0 0 0
    08:00 09:00 0 0 0
    09:00 10:00 1 0 1
    10:00 11:00 0 0 0
    11:00 12:00 0 0 0
    12:00 13:00 0 0 0
    13:00 14:00 0 0 0
    14:00 15:00 0 0 0
    After 15:00 0 0 0
    1 1 totals
    ---------------------------------------------------

    Please, any body help me on this issue...

    My xml file
    ----------------
    < CCSDRPRCR >
    < LIST_G_TIME >
    < G_TIME >
    < RESOURCE_NAME > BRAATEN, DON < / RESOURCE_NAME >
    < NAME > do all repair < / NAME >
    < TIME_SEQ > 00001 < / TIME_SEQ >
    < TIME > 7 < / TIME >
    < TIMECOUNT > 0 < / TIMECOUNT >
    < / G_TIME >
    < G_TIME >
    < RESOURCE_NAME > BRAATEN, DON < / RESOURCE_NAME >
    < NAME > do all repair < / NAME >
    < TIME_SEQ > 00002 < / TIME_SEQ >
    < TIME > 07:00 08:00 < / TIME >
    < TIMECOUNT > 0 < / TIMECOUNT >
    < / G_TIME >
    < G_TIME >
    < RESOURCE_NAME > BRAATEN, DON < / RESOURCE_NAME >
    < NAME > do all repair < / NAME >
    < TIME_SEQ > 00003 < / TIME_SEQ >
    < TIME > 08:00 09:00 < / TIME >
    < TIMECOUNT > 0 < / TIMECOUNT >
    < / G_TIME >
    < G_TIME >
    < RESOURCE_NAME > BRAATEN, DON < / RESOURCE_NAME >
    < NAME > do all repair < / NAME >
    < TIME_SEQ > 00004 < / TIME_SEQ >
    < TIME > 09:00 10:00 < / TIME >
    < TIMECOUNT > 1 < / TIMECOUNT >
    < / G_TIME >
    < G_TIME >
    < RESOURCE_NAME > BRAATEN, DON < / RESOURCE_NAME >
    < NAME > do all repair < / NAME >
    < TIME_SEQ > 00005 < / TIME_SEQ >
    < TIME > 10:00 11:00 < / TIME >
    < TIMECOUNT > 0 < / TIMECOUNT >
    < / G_TIME >
    < G_TIME >
    < RESOURCE_NAME > BRAATEN, DON < / RESOURCE_NAME >
    < NAME > do all repair < / NAME >
    < TIME_SEQ > 00006 < / TIME_SEQ >
    < TIME > 11:00 12:00 < / TIME >
    < TIMECOUNT > 0 < / TIMECOUNT >
    < / G_TIME >
    < G_TIME >
    < RESOURCE_NAME > BRAATEN, DON < / RESOURCE_NAME >
    < NAME > do all repair < / NAME >
    < TIME_SEQ > 00007 < / TIME_SEQ >
    < TIME > 12:00 13:00 < / TIME >
    < TIMECOUNT > 0 < / TIMECOUNT >
    < / G_TIME >
    < G_TIME >
    < RESOURCE_NAME > BRAATEN, DON < / RESOURCE_NAME >
    < NAME > do all repair < / NAME >
    < TIME_SEQ > 00008 < / TIME_SEQ >
    < TIME > 13:00 14:00 < / TIME >
    < TIMECOUNT > 0 < / TIMECOUNT >
    < / G_TIME >
    < G_TIME >
    < RESOURCE_NAME > BRAATEN, DON < / RESOURCE_NAME >
    < NAME > do all repair < / NAME >
    < TIME_SEQ > 00009 < / TIME_SEQ >
    < TIME > 14:00 15:00 < / TIME >
    < TIMECOUNT > 0 < / TIMECOUNT >
    < / G_TIME >
    < G_TIME >
    < RESOURCE_NAME > BRAATEN, DON < / RESOURCE_NAME >
    < NAME > do all repair < / NAME >
    < TIME_SEQ > 00010 < / TIME_SEQ >
    TIME < after 15:00 > < / TIME >
    < TIMECOUNT > 0 < / TIMECOUNT >
    < / G_TIME >
    < G_TIME >
    < RESOURCE_NAME > BRAATEN, DON < / RESOURCE_NAME >
    Repair Standard < NAME > < / NAME >
    < TIME_SEQ > 00001 < / TIME_SEQ >
    < TIME > 7 < / TIME >
    < TIMECOUNT > 0 < / TIMECOUNT >
    < / G_TIME >
    < G_TIME >
    < RESOURCE_NAME > BRAATEN, DON < / RESOURCE_NAME >
    Repair Standard < NAME > < / NAME >
    < TIME_SEQ > 00002 < / TIME_SEQ >
    < TIME > 07:00 08:00 < / TIME >
    < TIMECOUNT > 0 < / TIMECOUNT >
    < / G_TIME >
    < G_TIME >
    < RESOURCE_NAME > BRAATEN, DON < / RESOURCE_NAME >
    Repair Standard < NAME > < / NAME >
    < TIME_SEQ > 00003 < / TIME_SEQ >
    < TIME > 08:00 09:00 < / TIME >
    < TIMECOUNT > 0 < / TIMECOUNT >
    < / G_TIME >
    < G_TIME >
    < RESOURCE_NAME > BRAATEN, DON < / RESOURCE_NAME >
    Repair Standard < NAME > < / NAME >
    < TIME_SEQ > 00004 < / TIME_SEQ >
    < TIME > 09:00 10:00 < / TIME >
    < TIMECOUNT > 0 < / TIMECOUNT >
    < / G_TIME >
    < G_TIME >
    < RESOURCE_NAME > BRAATEN, DON < / RESOURCE_NAME >
    Repair Standard < NAME > < / NAME >
    < TIME_SEQ > 00005 < / TIME_SEQ >
    < TIME > 10:00 11:00 < / TIME >
    < TIMECOUNT > 0 < / TIMECOUNT >
    < / G_TIME >
    < G_TIME >
    < RESOURCE_NAME > BRAATEN, DON < / RESOURCE_NAME >
    Repair Standard < NAME > < / NAME >
    < TIME_SEQ > 00006 < / TIME_SEQ >
    < TIME > 11:00 12:00 < / TIME >
    < TIMECOUNT > 0 < / TIMECOUNT >
    < / G_TIME >
    < G_TIME >
    < RESOURCE_NAME > BRAATEN, DON < / RESOURCE_NAME >
    Repair Standard < NAME > < / NAME >
    < TIME_SEQ > 00007 < / TIME_SEQ >
    < TIME > 12:00 13:00 < / TIME >
    < TIMECOUNT > 0 < / TIMECOUNT >
    < / G_TIME >
    < G_TIME >
    < RESOURCE_NAME > BRAATEN, DON < / RESOURCE_NAME >
    Repair Standard < NAME > < / NAME >
    < TIME_SEQ > 00008 < / TIME_SEQ >
    < TIME > 13:00 14:00 < / TIME >
    < TIMECOUNT > 1 < / TIMECOUNT >
    < / G_TIME >
    < G_TIME >
    < RESOURCE_NAME > BRAATEN, DON < / RESOURCE_NAME >
    Repair Standard < NAME > < / NAME >
    < TIME_SEQ > 00009 < / TIME_SEQ >
    < TIME > 14:00 15:00 < / TIME >
    < TIMECOUNT > 0 < / TIMECOUNT >
    < / G_TIME >
    < G_TIME >
    < RESOURCE_NAME > BRAATEN, DON < / RESOURCE_NAME >
    Repair Standard < NAME > < / NAME >
    < TIME_SEQ > 00010 < / TIME_SEQ >
    TIME < after 15:00 > < / TIME >
    < TIMECOUNT > 0 < / TIMECOUNT >
    < / G_TIME >
    < G_TIME >
    < RESOURCE_NAME > Baran, Rick < / RESOURCE_NAME >
    < NAME > do all repair < / NAME >
    < TIME_SEQ > 00001 < / TIME_SEQ >
    < TIME > 7 < / TIME >
    < TIMECOUNT > 0 < / TIMECOUNT >
    < / G_TIME >
    < G_TIME >
    < RESOURCE_NAME > Baran, Rick < / RESOURCE_NAME >
    < NAME > do all repair < / NAME >
    < TIME_SEQ > 00002 < / TIME_SEQ >
    < TIME > 07:00 08:00 < / TIME >
    < TIMECOUNT > 0 < / TIMECOUNT >
    < / G_TIME >
    < G_TIME >
    < RESOURCE_NAME > Baran, Rick < / RESOURCE_NAME >
    < NAME > do all repair < / NAME >
    < TIME_SEQ > 00003 < / TIME_SEQ >
    < TIME > 08:00 09:00 < / TIME >
    < TIMECOUNT > 0 < / TIMECOUNT >
    < / G_TIME >
    < G_TIME >
    < RESOURCE_NAME > Baran, Rick < / RESOURCE_NAME >
    < NAME > do all repair < / NAME >
    < TIME_SEQ > 00004 < / TIME_SEQ >
    < TIME > 09:00 10:00 < / TIME >
    < TIMECOUNT > 0 < / TIMECOUNT >
    < / G_TIME >
    < G_TIME >
    < RESOURCE_NAME > Baran, Rick < / RESOURCE_NAME >
    < NAME > do all repair < / NAME >
    < TIME_SEQ > 00005 < / TIME_SEQ >
    < TIME > 10:00 11:00 < / TIME >
    < TIMECOUNT > 0 < / TIMECOUNT >
    < / G_TIME >
    < G_TIME >
    < RESOURCE_NAME > Baran, Rick < / RESOURCE_NAME >
    < NAME > do all repair < / NAME >
    < TIME_SEQ > 00006 < / TIME_SEQ >
    < TIME > 11:00 12:00 < / TIME >
    < TIMECOUNT > 2 < / TIMECOUNT >
    < / G_TIME >
    < G_TIME >
    < RESOURCE_NAME > Baran, Rick < / RESOURCE_NAME >
    < NAME > do all repair < / NAME >
    < TIME_SEQ > 00007 < / TIME_SEQ >
    < TIME > 12:00 13:00 < / TIME >
    < TIMECOUNT > 0 < / TIMECOUNT >
    < / G_TIME >
    < G_TIME >
    < RESOURCE_NAME > Baran, Rick < / RESOURCE_NAME >
    < NAME > do all repair < / NAME >
    < TIME_SEQ > 00008 < / TIME_SEQ >
    < TIME > 13:00 14:00 < / TIME >
    < TIMECOUNT > 0 < / TIMECOUNT >
    < / G_TIME >
    < G_TIME >
    < RESOURCE_NAME > Baran, Rick < / RESOURCE_NAME >
    < NAME > do all repair < / NAME >
    < TIME_SEQ > 00009 < / TIME_SEQ >
    < TIME > 14:00 15:00 < / TIME >
    < TIMECOUNT > 0 < / TIMECOUNT >
    < / G_TIME >
    < G_TIME >
    < RESOURCE_NAME > Baran, Rick < / RESOURCE_NAME >
    < NAME > do all repair < / NAME >
    < TIME_SEQ > 00010 < / TIME_SEQ >
    TIME < after 15:00 > < / TIME >
    < TIMECOUNT > 0 < / TIMECOUNT >
    < / G_TIME >
    < / LIST_G_TIME >
    < / CCSDRPRCR >


    Thanks in advance.
    NGO

    http://winrichman.blogspot.com/2009/11/bi-Publisher-crosstabtotal.html

    http://winrichman.blogspot.com/search/label/cross%20tab

  • How to query the total number of columns and lines filled with data?

    How to get the number of rows and columns in Exel file data using Excel report?

    Since you have posted this question in the forum of LabWindows/CVI, I guess you want to know how to do with CVI.

    You need to know how to open and activate the Excel data file.

    Depending on the function returns the total number of columns and lines col_count row_count, respectively.

    -----------------------------------------------------------------------------------------------------------------------------------------

    int CountColumnsAndRows (void)
    {
    Error HRESULT = 0;
    CAObjHandle rangeCurrentRegionHandle = 0;
    CAObjHandle rangeColumnsHandle = 0;
    CAObjHandle rangeRowsHandle = 0;
      
    unsigned long col_count = 0, row_count = 0;
      
    Must use the 'A1' property and CruuentRegion count the total of columns and lines, including the drafts!
      
    error = CA_VariantSetCString (& MyCellRangeV, 'A1');
      
    error = Excel_WorksheetRange (ExcelWorksheetHandle, NULL, MyCellRangeV, CA_DEFAULT_VAL, & ExcelRangeHandle);
    If (error<0) goto="">
      
    error = Excel_GetProperty (ExcelRangeHandle, & ErrorInfo, Excel_RangeCurrentRegion, CAVT_OBJHANDLE, & rangeCurrentRegionHandle);
    If (error<0)  goto="" error="">
      
    error = Excel_GetProperty (rangeCurrentRegionHandle, & ErrorInfo, Excel_RangeColumns, CAVT_OBJHANDLE, & rangeColumnsHandle);
    If (error<0)  goto="" error="">
      
    error = Excel_GetProperty (rangeColumnsHandle, & ErrorInfo, Excel_RangeCount, CAVT_LONG, & col_count);
    If (error<0) goto="">
      
    error = Excel_GetProperty (rangeCurrentRegionHandle, & ErrorInfo, Excel_RangeRows, CAVT_OBJHANDLE, & rangeRowsHandle);
    If (error<0)  goto="" error="">
      
    error = Excel_GetProperty (rangeRowsHandle, & ErrorInfo, Excel_RangeCount, CAVT_LONG, & row_count);
    If (error<0) goto="">

    Error:

    CA_VariantClear (& MyCellRangeV);
    CA_VariantClear (& MyVariant);
    ClearObjHandle (& ExcelRangeHandle);
    ClearObjHandle (& rangeCurrentRegionHandle);
    ClearObjHandle (& rangeColumnsHandle);
    ClearObjHandle (& rangeRowsHandle);
      
     
    If (error<>
    ReportAppAutomationError (error);
      
    error return;
    }

  • Tables: Must have text Message box appears if the totals do not agree

    I have a table that has six columns of figures. Each column is reached. I would get a text box ("these totals must agree") to appear IF (column mouse + column Rats) is NOT equal to (column B column C + column D + column E.)

    I didn't need calculate the sum of the totals of columns, that is to say, no need to know the total of mice and rats, etc.. I just have to make sure that the number of rats and mice is equal the number of category B, C, D and E pets. And to let the form user know.

    I hope that makes sense!

    Thank you!

    There are two ways to handle this.  Normally validation of this type is made when the user has finished the form and is ready to submit.  This is because in this case, validation is based on several columns and rows, so if you wanted a pop-up for the error message box, they would get a message popping up every time a number is entered until all columns are added correctly.

    It looks not to form any kind of function submit, so I got stabbed another angle.  I've added a message that is a note and a warning below the list of categories.  This is normally visible and is hidden when the columns add up correctly.  I added the validation code in the event of page layout: ready for JustifyE since it was already used another script and it fires when you need it.

    Update form is attached.

  • Hi, I recently bought numbers in order to create a commercial newspaper. I'm the pen and paper. I need help to create a formula. A purchase column determines if the entry price column is subtracted from the price of output column or output subtracted

    Hi, I recently bought numbers in order to create a commercial newspaper. I'm the pen and paper. I need help to create a formula. A purchase column; Determines if the entry price column is subtracted from the price of output column (buy) or subtracted from (Sell) entry exit. Thank you for your help

    Hi B',.

    Buying and selling in column B

    Price of entry in column c.

    Exit in column D price

    Formula (and outcome) in column E

    If the column will B always contained 'Buy' or 'Sell', it works. It is default to a calculation of 'sell' if sale or has been specified.

    E2: = IF (B = "Buy", D - C, C - D)

    If you want to delay the calculation until the amounts entered in C and D, use this version:

    E2: = IF (OR (LEN (C) < 1, LEN (D) < 1,"", IF (B = "Buy", D - C, C - D) ")

    If you want to delay the calculation until all three ducks are on a line (B contains buy or sell, C and D contain both data), use this version:

    E2: = IF (OR (LEN (C) < 1, LEN (D) < 1,"", IF (B = "Buy", D - C, IF(B="Sell",C-D,) "" ")))

    Third version used in this table.

    Kind regards

    Barry

  • Show only the total values for column?

    I have a pivot table where, for one of the columns I want to not show that total values without showing the values of the detail for each line

    In the example below (where each parent totals are shown in first - above), for the last 4 columns, I only want to show values in the total row.

    Setting conditional formatting will help you.

    For these columns measures go to the columns of no matter what you do not have a group of conditional as format below.

    Main area is not null "define 0 as the font size.

    Thank you

    AJ

  • How to avoid the total general of the classic report when the column break is installed in the Apex

    Hi all

    I develop application using Oracle Apex 4.2.0.

    I created the classic report Page.

    That I have summarized a column by selecting the check box check sum for the column.

    His shows the Grand Total.

    Then I chose the columns to break to the first column.

    His show the total groupwise and total as well as great as image below.

    dc.jpg

    My requirement is

    Need to hide total(Total:)) GroupWise or total general. I need to show any a total, not both.

    How to do this?

    Thank you

    Su.GI

    Su.GI wrote:

    Hi, thanks for your response.

    I use theme - productivity Application - issue 26

    -Standard model

    Report - report of Standart for classic report model.

    The above CSS code where I want to use in the page or report or model region.

    Specify a static region ID for the report area and put the following CSS rule in the CSS Inline property page:

    #static-region-id .uReportStandard tr:last-child td {
      display: none;
    }
    

    where static-region-id is the ID specified for the region.

  • Calculate the sum of the 2 columns in the total column.

    Hello everyone.

    I have a question I hope you can help us

    I use the form of oracle 10 g , I made the table student FYI There are 5 columns ( HomeWorks, project, Midterm1, Midterm2,FinalExam), , I need to calculate these brands and put it in ( Total ) column using the form of the oracle. How to? .

    Another thing is it possible for me to restrict the user so that he can not enter more than 10 points for homework and not more than 15 points for project, etc.?

    I hope you can answer me I am really really really really grateful that I searched online, but no real solution especially for the second part of the question. will I change the varchar2 to the numbers?

    Thank you

    Yes... What you have to do is, you create when validating the element trigger on assignment, then put under code of the project

    IF (: blockname.itemname) > 20 THEN

    MESSAGE ("you must enter only less than 20 brands '");

    RAISE FORM_TRIGGER_FAILURE;

    END IF;

    Make the total, rank as a display element. Create a button contained within this block and put the code below in this WHEN the BUTTOM PRESSED trigger

    DECLARE

    v_total NUMBER;

    BEGIN

    v_total: =: Blockname. Mid1 +: Blockname. MID2 +: blockname.assignment +: Blockname. Final +: Blockname. Project;

    : blockname.total: = v_total;

    : blockname.grade: = CASE WHEN v_total<60   then ="">

    WHEN v_total<65   then ="">

    WHEN v_total<70   then ="">

    WHEN v_total<75   then ="">

    WHEN v_total<80   then ="">

    WHEN v_total<85   then ="">

    WHEN v_total<90   then ="">

    WHEN v_total<95   then ="">

    WHEN v_total<=100 then="">

    END;

    END;

  • Sort to create the total columns to XLS/XLSX exported reports?

    I have a script which extracts VM information for several different clients and exports separate worksheets for each client to a single worksheet. The columns include CPU, memory, DiskGB, etc.. I'm trying to figure out if there is a way to add a line as the total of the values of specific columns in the report. I did a lot of research and did not have much luck. Any suggestions?

    Thank you

    Trevor

    Something like that?

    $report = @)

    Get - VM | %{

    $row = "| Select Name, NumCpu, memory

    $row. Name = $_. Name

    $row. NumCpu = $_. NumCpu

    $row. Memory = $_. MemoryMB

    $report += $row

    }

    $total = "| Select Name, NumCpu, memory

    $total. Name = "totals".

    $total. NumCpu = $report | Measure-object-property NumCpu-sum | Select sum - ExpandProperty

    $total. Memory = $report | Measure-object-property-memory-amount | Select sum - ExpandProperty

    $report += $total

    $report

  • How to get the total of a column in php

    I have a php MySQL database that stores the bills paid, I need to show all of the column that stores the individual payments

    what I have so far

    $colname_rsProperty = "-1";

    If (isset($_GET['recordID'])) {}

    $colname_rsProperty = $_GET ["recordID"];

    }

    @mysql_select_db ($database_hostprop, $hostprop);

    $query_rsProperty = sprintf ("" SELECT * FROM host_editprop, host_editpropUtil, host_editpropUtilComp WHERE host_editprop.prop_id = AND host_editpropUtil.prop_id = host_editprop.prop_id AND host_editpropUtilComp.utilID = host_editpropUtil.UtilPropNameID %s ", GetSQLValueString ($colname_rsProperty,"text")");

    $query_limit_rsProperty = sprintf ("%s LIMIT %d, %d", $query_rsProperty, $startRow_rsProperty, $maxRows_rsProperty);

    $rsProperty = mysql_query ($query_limit_rsProperty, $hostprop) or die (mysql_error ());

    $total = 0;

    $total += $row_rsProperty ["utilityAmount"];

    the host_editpropUtil column is called utilityAmount

    and the individual amounts are the echoes of

    <? PHP echo DoFormatCurrency ($row_rsProperty ['utilityAmount'], 2, ','.', ' £');? >

    and I want to put the total at the end of these

    and just an echo of the total need

    <? PHP echo $total? >

    This is just to show the first value in the table

    Thanks in advance

    got it to work

    $colname_rsProperty = "-1";

    If (isset($_GET['recordID'])) {}

    $colname_rsProperty = $_GET ["recordID"];

    }

    @mysql_select_db ($database_hostprop, $hostprop);

    $query_rsProperty = sprintf ("" SELECT * FROM host_editprop, host_editpropUtil, host_editpropUtilComp WHERE host_editprop.prop_id = AND host_editpropUtil.prop_id = host_editprop.prop_id AND host_editpropUtilComp.utilID = host_editpropUtil.UtilPropNameID %s ", GetSQLValueString ($colname_rsProperty,"text")");

    $rsProperty = mysql_query ($query_rsProperty, $hostprop) or die (mysql_error ());

    $row_rsProperty = mysql_fetch_assoc ($rsProperty);

    $totalRows_rsProperty = mysql_num_rows ($rsProperty);

    @mysql_select_db ($database_hostprop, $hostprop);

    $query_rsSum = sprintf ("SELECT host_editpropUtil.utilityAmount, host_editprop.prop_id, host_editprop, host_editpropUtil.prop_id FROM host_editpropUtil WHERE host_editpropUtil.prop_id = host_editprop.prop_id AND host_editprop.prop_id = %s", GetSQLValueString ($colname_rsProperty, "text") ");

    $rsSum = mysql_query ($query_rsSum, $hostprop) or die (mysql_error ());

    $totalRows_rsSum = mysql_num_rows ($rsSum);

    $grandTotal = 0;

    Use a loop here

    {If ($row_rsSum = mysql_fetch_assoc ($rsSum))

    $grandTotal += $row_rsSum ["utilityAmount"];

    $row ['utilityAmount'] ;// and view the contents of the line

    $row ['SUM (utilityAmount)'; / / and display the contents of the line

    }

  • Is it possible to get the total value of column and set to another area

    Hello

    Is it possible to get the total value of a particular column, and assign this value to another discipline?

    How to do this?

    Thanks in advance,
    SAN

    Hi SAM,

    If your controller class throw this message it means that it works very well. Follow these steps, I hope this will solve your problem.

    1 check the following

    OAApplicationModule am = pageContext.getApplicationModule (webBean);
    OAViewObject ratvo = (OAViewObject) am.findViewObject("*CompetenceElementsVO*"); It should be the name of the instance instead of the name Physics vo vo.
    OAViewObject valuevo = (OAViewObject) am.findViewObject("*PerRatingLevelsVO*");

    2. extend this controller class that is associated with this region.

    I hope it will work now.

    Haroon.

  • How to display the total of the group by avoiding totals deleted column cntrbn

    Hi friends
    Am with a column as GroupName masking certain groups for ex: FSVB
    I gave as
    <? for-each-group: current-group () [GroupName! = 'FAVS']; / GroupName? >
    It works very well
    but the totals when I try this
    <? sum (current - group () [.. / GroupName! = 'FAVS'] / as TOTAL_COST? >)
    me slappin' her with an error...
    can you suggest the correct code for this
    Thank you for your time and help

    You can store the variable group with filter applied on it and use it instead of the actual group. This neednt filter on each calculation so you have

Maybe you are looking for