FORMULA COLUMN ISSUE

Does anyone know how to get a formula column. i.e., a date, to display on a report when the first query does not return any data (where the formula column resides) and the 2nd query does?
When the first query returns data, the date appears on the 1st page (1st query results) and 2nd page (2nd query results), yet when the 1st query does not return any data, the second query page is without a date displayed.

Hi,
you can put your formula column in the second query (the query that always return data), I think.
Bye
Raffy

Similar Messages

  • Formula Column in Report 9i Builder

    Hi,
    I use this configuration
    Report Builder 9.2.0.1.0
    Windows XP Service Pack 1
    NLS_LANG "BRAZILIAN PORTUGUESE_BRAZIL.WE8ISO8859P1"
    When I try to create a formula column that returns number, I have to choose datatype 'Nu'mero' (with accented u)as this is the only avaiable in the combo box. However when I write this PL/SQL code for the column:
    function CF_17Formula return Number is
    begin
    RETURN(1);
    end;
    Reports gives me the message:
    REP-0737: Deve ser uma funcao com retorno do tipo 'nu'mero'.
    In English this message could be
    REP-0737: Should be a function with return type 'nu'mero'.
    I don't have this problem with Character or Date formula columns (these datatypes are called Caracter and Data in Portuguese).
    It seems that Reports is having problems with u' (accented u) character. If I change NLS_LANG to AMERICAN_AMERICA.WE8ISO8859P1 everything works fine because I can choose Number in the Formula Column Datatype in the Property Inspector.
    The problem is in the function declaration not in the Return statement.
    Could anyone help me? Tks.
    Edmar

    Edmar,
    You are right. I could reproduce this issue.
    I have filed a bug to fix it from the development in next patch
    Thanks
    The Oracle Reports Team

  • URL defined in formula column not converting as proper HTML tags

    We are migrating a report to 10Gr2 (10.1.2.0.2) from reports 9i (9.0.2.03); This report has to route to a different web page. For this we have a formula column with meta tag call to refresh;its Contains HTM property set to Yes. But when run, the view source of HTML shows as if the tag is truncated and put in <tt> tag around it.
    Any help on this is very much appreciated.

    Hi svee,
    Thanks for the reply.
    For an example i tried with the bold option in the edit formula inorder to portray the html tags problem while exporting it to the pdf inspite of using the default bold option within the column properites like u said.
    Suppose if i used html tags like
    <br>, </br>
    in the edit formula section or if i used any other html tags which is not present as a default option in bi like bold. At that time while exporting the report to pdf i can face the issue.
    And also i need ur suggestion regarding with the values disappearing for the numeric column if a tooltip is used in it while exporting it to the pdf.
    Regards,
    Saro

  • Can text be displayed in a formula column using mathematical functions?

    I am working with Financial Reports version 11.1.1.3 and I'm trying to accomplish the following scenario:
    Column D is a data column
    Column E is a text column containing the value "TEXT"
    Column F is a formula column with the following formula: IfThen([D]=0,[E],[D])
    What I want to see happen is if the value in column D is 0 then I want the value "TEXT" to appear in column F, otherwise; I want to show the data value that is in column D. Is it possible to display text in a formula column and if so, what is the syntax for that? Or does anyone have another way to accomplish this? Any help would be appreciated.
    Thanks!

    Short answer: No.
    For your particular issue, I would suggest putting your TEXT value in the #zero and #missing overrides in Report Studio.
    In general, Hyeprion Reporting does not do any real text validations or functions like you could use in Excel.

  • Formula column in BI

    Hi all and Raineer
    i have written a formula column in the below Data template and it is not giving any result for the id element when i view the xml output
    <dataTemplate name="data_template" description="Template_description" dataSourceRef="TFUAT">
         <parameters>
              <parameter name="org_id" dataType="number" defaultValue="121"/>
         </parameters>
         <dataQuery>
              <sqlStatement name="Q1">
                   <![CDATA[SELECT party_name FROM
    apps.hz_parties where rownum<10
    ]]>
              </sqlStatement>
         </dataQuery>
         <dataStructure>
              <group name="G_temp" source="Q1">
                   <element name="ite_use_id" value="party_name"/>
                   <element name="id" dataType="character" value="FormulaProfitMargin"/>
              </group>
         </dataStructure>
         <programUnits>
              <function name="FormulaProfitMargin">
                   <![CDATA[
          FUNCTION FormulaProfitMargin RETURN number IS
          BEGIN
            return (10);
          END;
        ]]>
              </function>
         </programUnits>
    </dataTemplate>
    thank you
    Boo

    If I use the suggested way in SQL query, I will have performace issue. My query selects 20 columns 4 among them are with aggregate functions. It is forcing me to do the group by with remaining 16 columns.
    Please provide me the sample code which has alternate way to extract formula.
    Thanks in advance.
    Regards
    Boopathi

  • Suppress Missing Data not work in web form with formula column inside

    Dear All,
    I've a planning web form with formula column inside to calculate the variance and % variance. But missing cell can't be suppressed, although I've checked the 'Suppress Missing Blocks' and 'Suppress Missing Data' options.
    Anyone have face the same problem..?? and how to fixed it..??
    thanks.
    Regards,
    VieN

    There is a known issue that sounds like the problem you are experiencing
    10358200 - If a formula column exists in a data form, selecting the Suppress missing option does not hide rows that do not contain data.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Discoverer Formula Column

    Hi
    Hoping you can help with a formula column I need to create.
    The situation is this:
    It's for a HR head count report which is split by Employment category.
    The issue is for multiple assignments, where in this report - I only want to count each person once, but not necessarily their Primary Assignment.
    If we assume we have 3 employees, one of which has 2 assignments in different Employment Categories - each assignment has a head count of 1:
    Employee A - Assignmnent AA - Employment Category A
    Employee B - Assignment BB - Employment Category B
    Employee C - Assignment CC - Employment Category A
    Employee C - Assignment CD - Employment Category B.
    As normal, the summed report of headcount would show
    Employment Category A - 2
    Employment Category B - 2
    However, the way I need it to work is that the report will prioritise each employment category so that if an employee already has a record in Employment Category A, it won't count the record in Employment Category B. If the employee only has a record in Employment Category B, it will show though.
    So the result I want is:
    Employment Category A - 2
    Employment Category B - 1
    Is there a way for a formula to work out this priority and so only sum for Employment Category B where there doesn't exist an Employment Category A record for the same employee?
    I hope I have explained this ok.
    Many thanks
    Martin

    Hi
    Thanks for that - I now have it working.
    I am however having issues with Totals.
    They are fine in Discoverer Plus but I need to run this report in Desktop.
    In Desktop, I have totals for rows and totals for columns for both HeadCount and FTE.
    Initially, none were showing.
    After changing the aggregation option from 'Default aggregation behaviour' to 'Show the sum of the values', I now get everything except the grand total for HeadCount.
    Example below
    ______________Head Count____________________________FTE
    ________Asg Cat 1______Asg Cat 2____Total______Asg Cat 1____Asg Cat 2______Total
    Org1________2____________3__________5__________2____________3___________5
    Org2________1____________2__________3__________1____________2___________3
    Total________3____________5_____________________3____________5___________8
    As you can see, I'm getting every total except the total of '8' for HeadCount but I am getting it for FTE.
    I know this is often due to folder joins, but FTE and HeadCount are coming from the same folder, yet FTE is working and HeadCount isn't.
    Any ideas?
    Many thanks
    Martin
    Edited by: christm31 on May 4, 2012 10:27 AM

  • Can we use formula column in lexical parameter in sql query ...

    hi
    can we use formula column in lexical parameter in sql query ...
    as example
    i want to give
    select * from & c_table
    forumula
    function c_table
    if :p_sort = 1 then
    return 'dept'
    else
    return 'emp'
    end;
    c_table formula column
    is this possible ...
    i have such example in oracle apps reports
    if i try in ordinary report usinf emp table it show error ..
    how we can give formula column...
    please help me in this regard...
    Edited by: 797525 on Feb 20, 2012 9:31 PM

    thanks sir,
    iam not exactly saying select * from &c_table but some thing that like columns in select stmt also will be populated in user_parameters ,there are lot of table select.......from     mtl_demand md,     mtl_system_items msi,     mtl_txn_source_types     mtst,     mtl_item_locations loc     &C_source_from &C_from_cat
    &c_source_from and &c_from_cat formula column and there are defined at report level only ......
    pl/sql code &c_source_from is
    function C_source_fromFormula return VARCHAR2 is
    begin
    if :P_source_type_id = 2 then return(',MTL_SALES_ORDERS mkts');
    else if :P_source_type_id = 3 then return(',GL_CODE_COMBINATIONS gl');
    else if :P_source_type_id = 6 then return(',MTL_GENERIC_DISPOSITIONS mdsp');
    else if :P_source_type_id = 5 then
         if :C_source_where is null then
              return NULL;
         else
              return(',WIP_ENTITIES wip');
         end if;
    else if :P_source_type_id = 8 then return(',MTL_SALES_ORDERS mkts');
    else if :P_source_type_id is null then
    return(',MTL_SALES_ORDERS      mkts,
    MTL_GENERIC_DISPOSITIONS mdsp,
    GL_CODE_COMBINATIONS gl ');
    else null;
    end if; end if; end if; end if; end if; end if;
    RETURN NULL; end;
    this is forumula column i hope that you understand what iam saying
    please help me in this regard....
    thanking you...

  • How to make an order on repeating frame using Formula Column?

    Hi All,
    I have a repeating frame dependent on some query, how to make an order on this repeating frame using a formula column defined in its group and dependet on values from the query?
    Note: I'm using Reports 6i

    Place your formula column at the top of the itm group and set the BREAK_ORDER to assc.. or desc...
    Hope this helps
    Hamid
    if problem solved, close the thread.

  • Formula Columns are not working in Reports 10g

    Hi,
    We converted the reports developed in Reports 6i to Reports 10g. When we run the report in Reports 10g Builder everything works fine. But when we deploy the same report in Oracle Application Server and invoking the report the formula columns are not working ie., the fields/ placeholder columns which are based on the formula column are not displaying any values in the report.
    Please, someone help us in this regard.
    Thanks & Rgds,
    M T

    What version of Reports do you use..???
    Greetings...

  • How to display a Sum field for a formula column?

    Hi,
    I need to display a sum for a formula column at the end of report. for example: my formu_col=col_1-col_2
    col_1 col_2 formu_col
    3 1 2
    6 5 1
    total:sum(col_1) sum(col_2) sum(formu_col)
    now i have sum(col_1) and sum(col_2), but i don't have sum(formu_col)
    thanks

    Hi
    You may add a summary column in the same data group that you have sum(col_1) and sum(col_2). In that properties of the new column point the source as formu_col.
    Hope this helps.
    Fouwaaz

  • Using PL/SQL in a formula column in Oracle Reports Builder.

    Hi,
    I need to SUM two record from the result of an SQL interrogation.
    Here's what it looks like
    function CF_1Formula return Number is
    nTot1 NUMBER :=0;
    nTot2 NUMBER :=0;
    begin
         select sum(:TOT1) into nTot1 from table(Q1) ;
         select sum(:TOT2) into nTot2 from table(Q1) ;
         return (nTot1 + nTot2);
    end;I'm kind of new to formula column programming any link of interest would be appreciated.
    The from table(Q1) part Q1 represents my SQL interrogation name and the group below it is G_MAIN.

    Hi Hong Kong King Kong,
    From looking at that function name (and the group name): Is this an Oracle Reports generated function?
    If so, there's also a dedicated Reports forum: Reports
    By the way, I like your synonym for 'query'.
    I'm sure I'll confuse some of my collegues tomorrow when I will mention 'database interrogation' instead of 'query'. ;)
    edit
    Doh...I should not underestimate the information that is posted in thread subjects.
    Edited by: hoek on May 5, 2010 9:24 PM

  • How to add a formula column in a report

    Hi
    I have made a report based on a query.
    There are 3 columns in the query and all the 3 are displayed.
    Now I want to add a new column (fomula column) to the report.
    I want to write a query inside the formula column. To execute the query col1, col2 and col3 values are required in the formula column.
    Could you please tell me how to add a formula column in the report and how to pass database column value to inside the formula column
    regards

    Here is how you would create a formula column:
    Open data model of the report.
    Formula column button is on the left side of the tool palette.
    Click on that button.
    Now click in the query group where you want to place the formula column.
    You would see a new field something like CF_1. That is the formula column.
    Double click on the field CF_1. It will open property inspector.
    You would see, Datatype of the formula column is Number. Change this as per your requirement.
    Double click on PL/SQL Formula property. It would open up a editor. Here you can write the code.
    And now to access the data model column here, you can use : and column name. i.e. :col1 or :col2, etc
    And remember you have to return the value back to the formula column. Like this: RETURN(some value).
    You can also take a help from here:
    http://download.oracle.com/docs/html/B13895_01/orbr_howto.htm#sthref1309
    Hope this helps.

  • Formula Column help please - URGENT

    I'm trying to create a formula column as follows:
    function NO_REPLIESFormula return Number is
    NOREPLY number;
    begin
    SELECT COUNT(reply) INTO NOREPLY
    FROM letters
    WHERE reply = 'N'
    GROUP BY ltrtype, batch;
    RETURN (NOREPLY);
    end;
    This PL/SQL compiles fine, but when I run the report, I get the following messages:
    REP-1401 no_repliesformula FATAL PL/SQL error occured. ORA-01422 exact fetch returns more than requested number of rows.
    If I remove the GROUP BY ltrtype, batch, I don't get the error messages, but the result I get is the total no_replies instead of the total no_replies for each ltrtype/batch grouping.
    Could someone please help me with this?
    Thank you.

    Hi irish,
    I think i am not sure about what you are trying to say, but let me guess, You want the values to be return on the bases of "ltrtype, batch". Which mea that you want more then one values, i mean there can be more then one Groups based on ltrtype and batch. and you want to display these values with repective record???
    If i am right, then there is a fault in your code, and that is , you are not specifing in your code that which value is to be diplayed with which record in this report. For that there must be ltrtype, batch colums displayed in the report, you must add those values in your Code in the query, i.e.
    function NO_REPLIESFormula return Number is
    NOREPLY number;
    begin
    SELECT COUNT(reply) INTO NOREPLY
    FROM letters
    WHERE reply = 'N' and ltrtype= :V_ltrtype and batch=:v_batch;
    RETURN (NOREPLY);
    end;
    Where :V_ltrtype and :v_batch are the run time values of each records displayed in the report.
    Remember that if you don't sepecify this then your code will return as many records as many distich values of ltrtype, batch. and your variable NOREPLY can hold only one value at a time. I hope you understand both, Solution and the logic behind the error.
    Please correct me if i am wrong.
    Thanks.
    Mohib ur Rehman

  • Formula Columns are not appearing in pdf format

    hi all,
    i have a report that contains some formula columns, the report is running correctly in the report builder, but when running the report through the web as .pdf format all report field appear except those formula columns,
    is there anyone who can help me?
    M. Hammouri

    What version of Reports do you use..???
    Greetings...

Maybe you are looking for

  • XI Receiver Adapter: No receiver could be determined

    Hello guys, I'm at the moment connecting Contract Accounts Receivable and Payable 6.00 http://help.sap.com/erp2005_ehp_02/helpdata/en/9c/0d03d4beeb40848e15329b4e63976e/frameset.htm My scenario has a XI Receiver Adapter. I have set up the receiver agr

  • HDMI black screen [SOLVED]

    I have a samsung ativ book 7 which I connected to a Panasonic TV via HDMI cable. The TV is recognised in gnome display properties and xrandr but the only thing I can see is black screen with no audio. xrandr output: Screen 0: minimum 8 x 8, current 1

  • Loss of Window "Views"

    Upgraded an App and when I restarted, all of my Folder settings (Icon size, Text size) all changed and the files within the folders were all jumbled up. I went through all the folders (!!!!!), reset/re-organized everything (open/close folders and the

  • Options for old video in Premiere Pro CS6

    Hello, so I recently discovered a VHS tape from a long time ago that contained family videos that were professionally transferred from old actual film to this VHS tape.  I copied the VHS tape to a DVD so I could work with it in PP but with all the ef

  • IBook, OSX 10.4.10 won't load!

    I used to get a command line prompt about the master.passwd thing, so I ran what that article told me to do, rebooted, and it seemingly worked until I got to the loading OS X screen, with the blue lodaing bar. What happens to me now is I will get the