Formula colums

Hi ,
I have to create formula columns in my report . I have created group on ff_code
other fields are
lastname, firstname, ssn,
APPOINTMENT_DATE, ASSESSMENT_DATE,
INFORMATION_RECIEVED_DATE, START_DATE
formulas Columns
Asses to Staff -- not to display on report
Info to staff -- not to display on report
Timetaken -- Display on report
the formulas are
ASSESSMNET
(APPOINTMENT_DATE) - (ASSESSMENT_DATE)
I tried creating formula column for this
but when I run the report it gives REp-1517: "column names" incompatible frequency
SAFFING
(APPOINTMENT_DATE) - (INFORMATION_RECIEVED_DATE)
TimeTAKEN
if (@aSSESSMNET) > (@sTAFFING) then (@sTAFFING) else(@aSSESSMNET)
hOW DO I DO THIS PLEASE HELP
Thank in advance
KK

looks like you are trying to display your formula column value in a frame different from the one which is used by the basic values (i.e. apointment_date and assessment_date).
Anyway, I found it much easier to do these calculation already in the query part, so I don't have to bother much less with those formulas, placeholders, etc.
hope your shift key recovered.

Similar Messages

  • Creating Formula colums

    Hi All,
    I want to create formula column in apex as in Oracle Forms.
    I would like to know how (which properties to be set or processes or any thing else) to use the formula and where.
    For example:
    Suppose I have two Text Items: As soon as value is entered in either of the two columns its sum should be displayed in a third Display only text Item.
    Hoping for a quick response.
    Thanks in Advance.
    Arif Khadas

    Thanks for your replies andy.
    Run the page and do View, Source from the menu (View, Page Source in FireFox). Search for id="P264_SAL", then id="P264_COMM" and then id="P264_TOTAL". I have found all this in the source code. I am copying it and making it bold for your reference. Is there any problem with it.
    <td colspan="1" rowspan="1" align="left"><input type="hidden" name="p_arg_names" value="6233313766736725" /><input type="text" name="p_t11" size="30" maxlength="2000" value="" id="P264_SAL" onChange="javascript:calculateTotal();" /></td></tr><tr><td nowrap="nowrap" align="right"><label for="P264_COMM"><a class="t13OptionalLabelwithHelp" href="javascript:popupFieldHelp('6234124848739895','4050738722309497','')" tabindex="999">Comm</a></label></td>
    <td colspan="1" rowspan="1" align="left"><input type="hidden" name="p_arg_names" value="6234124848739895" /><input type="text" name="p_t12" size="30" maxlength="2000" value="" *id="P264_COMM"* onChange="javascript:calculateTotal();" /></td></tr><tr><td nowrap="nowrap" align="right"><label for="P264_TOTAL"><a class="t13OptionalLabelwithHelp" href="javascript:popupFieldHelp('6234901084742553','4050738722309497','')" tabindex="999">Total</a></label></td>
    <td colspan="1" rowspan="1" align="left"><input type="hidden" name="p_arg_names" value="6234901084742553" /><input type="text" name="p_t13" size="30" maxlength="2000" value="" *id="P264_TOTAL"* /></td></tr>
    Also following are the initial part of the source where there is error on Line 17 char 2.
    <html lang="en-us" xmlns="http://www.w3.org/1999/xhtml" xmlns:htmldb="http://htmldb.oracle.com">
    <head>
    <script src="/i/javascript/htmldb_html_elements.js" type="text/javascript"></script>
    <script src="/i/javascript/htmldb_get.js" type="text/javascript"></script>
    <script type="text/javascript">
    <!--
    /*Global JS Variables*/
    var htmldb_Img_Dir = "/i/";
    //-->
    </script>
    <link rel="stylesheet" href="/i/css/core_V22.css" type="text/css" />
    <!--[if IE]><link rel="stylesheet" href="/i/css/core_ie_V22.css" type="text/css" /><![endif]-->
    <script type="text/javascript">
    function calculateTotal()
    var v1 = $v('P264_SAL');
    var v2 = $v('P264_COMM');
    $x('P264_TOTAL').value = parseFloat('0' + v1) + parseFloat('0' + v2);
    </script>
    Thanks once again.

  • Formula column right or wrong

    hi frds
    i just want to know whether this formula colum in report builder is right or wrong
    function CF_1Formula return Number is
    X NUMBER;
    begin
    SELECT sum(ABS(nvl(TRAN.QUANTITY,0))) INTO X
    FROM RCV_TRANSACTIONS TRAN,RCV_SHIPMENT_HEADERS RCV,PO_LINES_ALL PL
    WHERE TRAN.TRANSACTION_TYPE ='RECEIVE' AND TRAN.PO_HEADER_ID = :PO_HEADER_ID
    AND TRAN.SHIPMENT_HEADER_ID = :SHIPMENT_HEADER_ID
    AND TRAN.SHIPMENT_HEADER_ID = RCV.SHIPMENT_HEADER_ID
    AND RCV.RECEIPT_NUM=:RECEIPT_NUM
    AND TRAN.ORGANIZATION_ID=:organization_id
    AND TRAN.PO_LINE_ID = PL.PO_LINE_ID
    and pl.item_id=:inventory_item_id;
    RETURN(X);
    end;

    right

  • Export Oracle report formula column to XMLP

    hi
    i am thinking about exporting an rdf report to xmlp and i am worried about keeping my formula columns in the xmlpublisher report.
    what is gonna happen to them ?
    thx
    Dan

    If you are using Oracle Reports XML output as the datasource, the formula column will be in the XML, recognizable by the tag name. If you are using a data template to produce the datasource, the formula colum can be defined in the template.

  • Regarding formula coulmn tool

    Hi,
    how to use formula colum tool.i have placed a formula column with my quey colums.and written plsql codefor it.in layout editor i placed field and source colum property to the formula colmn name.but when i run report it is not showing any value.
    Please suggest a good book to learn reports?
    Edited by: 901776 on Mar 30, 2012 5:14 AM

    901776 wrote:
    Hi,
    how to use formula colum tool.i have placed a formula column with my quey colums.and written plsql codefor it.in layout editor i placed field and source colum property to the formula colmn name.but when i run report it is not showing any value.Do you write return item ? Check the PL/SQL code individually. Does it return any value ?
    Please suggest a good book to learn reports?reports 6i
    http://www.exforsys.com/tutorials/oracle-apps/oracle-reports-6i.html
    Oracle Reports Tutorial...
    Here few link...
    1. http://docs.oracle.com/html/B14364_01/title.htm
    2. http://www.scribd.com/doc/3960412/Basic2-Oracle-Reports-10g-Tutorials
    Hope this helps

  • What is better Data Link or Formula Columns

    Hi everybody,
    in what case performance is better, to have lot of formula colums in the same query block or to have data linked queries for the same.
    appreciate any suggestions.
    Thanks
    Tariq.

    Hi Tariq,
    Look up the "Tuning Oracle Reports" guide:- go to
    http://otn.oracle.com/products/reports
    Select "Getting Started..", click Index, and search on "Scalability and Performance"
    Take a look at the following topic (page 17 of this guide)
    'To Link or Not To Link'
    Navneet.

  • Txt output problem,cannot order the output

    Hi,
    I'm working with forms and reports 6i, and I have a problem when generating the .txt output.
    My report consists in some columns (database-scalar) from the main query and in some columns(formula).
    What I'm trying to do is to mix the order of columns (database-scalar) and columns(formula),but
    I can't do it. The columns(formula) are always in the end of the output...
    I've put the right order in the report editor,but It only works to put the order of the columns (database-scalar) .
    Example
    query
    select a,b,c from..where...
    formula colum: desc_a,desc_b
    The desired output
    a desc_a b desc_b c
    The output I get
    a b c desc_a desc_b
    Thanks in advance

    Solved,reading anothers posts found the error.
    Just need to play with the "break order" and separating in groups the formula column and the database-scalar colum.

  • How can I get the date and time and display it on the report main page?

    Gurus,
    How can I get the date and time and display it on the report main page?
    Thanks!

    Hello,
    You can create a Formula Colum returning a date :
    function CF_1Formula return Date is
    begin
    RETURN(SYSDATE);
    end;
    Put a Field in the Layout having this formula column as source .
    Regards

  • Using a select or forumal column "urgent"

    hi, i am working on a huge system and i have two tables
    emp table , company table
    and i am searching the employees whom meet the search criteria(salary), and i want to display for every employee his company name and his company address.
    so what will be the best way to do so regarding the performance :
    1. to add a formula colum that retrive the company name for each employee who meet the search critiria .
    or
    2. or to match the two tables.
    please note that the emp table contain about 3 million record, and the company table about 250,000,000 record and the retrieved records that match the search critiria varies from ( 1 record to 50,000,000 record).
    so what is the best way to perform this ( method 1 or 2) or is there another way to do so.
    best regards

    Hello,
    Like Marilyn, I think that the option 2 is the best
    http://download-uk.oracle.com/docs/cd/B14099_17/bi.1012/b14048/pbr_tune.htm#sthref2219
    20.4.3 Calculations
    Within a report (either through summary or formula columns), ensure that most of the calculations are performed by the data source. In case of SQL queries, calculations are performed on the database rather than on the data retrieved by the report. User-defined functions and procedures stored by the database can also be included in the query select list of an Oracle Database or a JDBC query. This is more efficient than using a local function, since the calculated data is returned as part of the result set from the database.
    Regards

  • Adding Image in Reports 10g

    I have added one image in existing Report to customize it.While seeing the utput in Applications it does not display the image.The format for the image is .jpg.We are using Applications R12,Reports 10g.How to get it.

    Hi ,
    Firstly sorry for asking in the same thread . .
    I am also working in the same envronment.
    my destination type is PDF and its a bitmap report.
    so my senario is something like this.
    I need to print the signature of the agent based on the agent id on all pages of the report.
    and each page it has to check the agent id and print the same .. we can issue the report to generate the o/p for multiple orders/so multiple agents. . . so
    1st page -> jack -> so his singature . ..
    2nd page -> Jack . . same order continues -> same signatuer repeats.
    3rd page -> scott -> so another signature . .
    issues:
    we have to print this in the footer of the page . . so we used the edit margin section for the same.
    we are actually picking up the agent id for that page using a summary column and function set to last and reset at page level.
    ( both the summary column and the formula colum are not in any group in the data model)
    we created a formula column for picking the image file properties below
    type: character
    read from file: yes
    file_type: image
    it actually works but the problem is the image starts from the second page onwards. and for 3 pages it prints . . .
    1st page -> blank - Jack's signature is req.
    2nd page - > jack's signature appears . .
    3rd page -> jack's signature -> should be scott's signature
    in case the fourth page for scott or any other person is ther e
    scott's signature appears . . .
    please guide me . . .
    thanks and regards
    Jagan.

  • Replace one symbol to another...

    Hi ppl!
    In my report I have some field(datatype:char), which recives from database text like 'aADrR.Ww' or 'Ex.Aer.Ww' or '.WeP.5'...
    I need to replace all dots '.' with commas ','
    Can anybody advise how to do this?
    Thanx before,
    bdz

    Hi friend,
    Here is the solution for your question
    SQL> select REPLACE('SRIN.REAR.RERE.' , '.' , ',' ) FROM DUAL;
    REPLACE('SRIN.R
    SRIN,REAR,RERE,
    take the formula colume in the report and use the above logic in that.
    give the source as formula colume to your fields.
    bye

  • When uisng the convert to formula funciton in BEx it messes up other colums

    when I try to use this functionality I have formatting issues and some of the data in my columsn gets lost.  when I try to user the Filter button it gets even worse.  We are on the Support pack 15 so this is not the issue.  Any ideas why this isn't working?

    BExGetData formula doesn't play well with hierarchies and multiple levels for the results rows

  • Copying formula down a colum

    In short how do I bring the same formula down a column?You know;=sum(b1-a1). How do you arrange for that to continue as =sum(b2-a2),all the way down? I excel, I recall you drag it, but that didn't work for me in Appleworks.

    Enter the formula in the top cell. Select all the cells you want the formula in: hit command-D. The formula will be entered all the way down with the changes for the cells as you describe.

  • Issue with Formula on Brand Family Level

    Hi Friends,
    we are facing issue with the formula while showing the report output.
    Following is the scenario.
    BrandFamily(Char),Material(Char),Comp(Char), Kf1(Keyfig) ,Kf2(Keyfig)
    Data Records:
    1st Record  -
    >    B1, M1,  200, 100
    2nd Record -
    >    B1, M2,  500, 400
    3rd Record -
    >   B2, M3,  100,  300
    4th Record -
    >   B2, M4,  600, 200
    Formual --> If Kf1>Kf2 then Kf1 Elseif Kf1<Kf2 then Kf2
    1) Report displayed based on the BrandFamily and Material , then the report shows correctly as below
    Report Structure :- Brandfamily , Material are in Rows and the Colum has the Formula (that was mentioned above)
    Report Output :-
    B1 M1 200
    B1 M2 500
    B2 M3 300
    B2 M4 600
    On Summing , For B1 , Value is 700. For B2, Value is 900.
    2) 1) Report displayed based on the BrandFamily , then the report  shows wrongly for the formula value  as shown below
    Report Structure :- Brand Family is in Rows and the Colum has the Formula (that was mentioned above)
    Report Output:-
    B1 700
    B2 700
          Here For B1, Value is 700 which is matching with the earlier output
    Whereas For B2, Value is 700 which is not matching with the earlier output.
    The Value for B2 is wrong because the formula has not processed correctly the 3rd record .
    The report summed up the 3rd and 4th records and then applied the formula , because of which the issue.
    This is because the Values kf1 and Kf2 are based on the material and as the material is not part of the Rows .
    Thankyou in advance.
    LNV

    a more simpler solution.
    open the kf in edit mode which has the condition
    create two formula variables  as follows.
    BRANDFAMILY
    replacement path ,  reference characteristic brand famility
    got replacement path tab-> replacevaue with as ' infobject'  replace with as 'attribute value'  , attribute constant 1.
    MATERIAL
    replacement path ,  reference characteristic material.
    got replacement path tab-> replacevaue with as ' infobject'  replace with as 'attribute value'  , attribute constant 1.
    MODIFY the KF as
    BRANDFAMILY * MATERIAL *  condition.
    had exactly same  requirement

  • Issue - Formula Variable with Replacement Path

    Hi,
    Is it mandatory to include the base characteristics in the rows on which the formula variable(replacement path) is based on. As long as the base char is in the rows the variable works fine. The moment I take that off, the variable doesn't produce any result. I know the char can be put in the rows and can be hidden, but then in that case I don't get the desired aggregation level.
    Has anybody come across this probelm and managed to sort this out? Kindly suggest any solution.
    Thanks,
    Anurag.

    Hi,
    a formula variable with replacement path only works if the replacement object is in the query in either the rows or colums. The data can never be aggregated on a higher level then the infoObject in the replacement path. If you want a higher aggregation you can add a new key figure as an attribute to your infoObject and fill it with the value you want in the loading process. You can use that key figure in your queries every way you want.
    Kind regards,
    Alex

Maybe you are looking for

  • Transparency flattening compression quality

    Hi, In Acrobat 9, an important option was missing for transparency flattening: the compression quality setting. I found that it is now available in Acrobat XI. When I saw that, I thought that my problems with flattening were a thing of the past. Well

  • Apps Tab Download Error

    Why does my desktop Creative Cloud keeps loading with a Download Error?

  • Query Regarding OCP  certification

    Hi.. I am planning on giving the OCP (1z0-043) certificates in a couple of weeks time. I am also planning to give the 11i Apps DBA (1z0-033) right after that. I have already cleared the OCA certificates a year ago.. Now, what i would like to know is

  • Question on certification.

    Hi All, Iam new to SAP.I wanted appear for a certification in Basis. Can anyone please guide me which courses can I take for Basic(start up) on Basis and Netweaver for Basis?. There are two tadm10 and tadm12 and a few others too. But iam not sure if

  • How does one regenerate a Book using a previously generated *.bk log file?

    I could swear that I've done this before, but I can't remember the correct steps to take.  I'm using FrameMaker v10.  Thanks.