Calculated columns?

Hi all

I am relatively new to this looking for some tips/advice.

Is it possible to include a calculated column in a financial statement?  For example, I have three columns A, B and C.  In column C, I want to show him the calculation of column A minus column B?  Is it still possible?

Would be grateful for any help on this.

Thank you very much

Dan...

Dan,

The tool itself contains tons of documentation, so maybe it's a good opportunity to start having a look...

TIMESTAMPDIFF (SQL_TSI_DAY, "The Dates of transmission". "" Real offer start date ', 'the Dates of transmission. " ("" Available Date ")

Of course, it won't work if your "Offer of actual start Date" and "Date available" are date or timestamp columns.

The user interface has doc for each of the functions, to explore the available functions and read the doc. Plan B start looking for a good book or training, there is no miracle solution to start with OBIEE...

Tags: Business Intelligence

Similar Questions

  • ask a calculated column

    In a report, I used the source area to create a query that uses / creates calculated columns.
    Query:

    SELECT id, name, amount, percentage,.
    amount * percentage AS CalCost
    store
    where id = 3;

    Now, I want to create a calculated column in the query using the column "CalCost" created, similar to:

    SELECT id, name, amount, percentage,.
    amount * percentage AS CalCost.
    amount - CalCost AS difference,

    However, I get the error ORA-0094 indicating that 'CalCost' is an invalid identifier.

    Is it possible to calculate this column without raising this error?

    963510 wrote:
    However, I get the error ORA-0094 indicating that 'CalCost' is an invalid identifier.

    Is it possible to calculate this column without raising this error?

    Yes - the alias is not available as of the SELECTION list. You will have to redo the calc, i.e.:

    SELECT id, name, amount, percentage,
           amount * percentage AS CalCost,
           amount - (amount * percentage) AS Difference
    FROM   store
    WHERE  id = 3;
    

    Alternatively, you can rewrite it as follows, where the alias expected to be available, but I see no reason to:

    SELECT id, name, amount, percentage, CalCost
           amount - CalCost AS Difference
    FROM   (SELECT id, name, amount, percentage,
                   amount * percentage AS CalCost,
                   amount - (amount * percentage) AS Difference,
            FROM   store
            WHERE  id = 3
           );
    
  • the minimum value of two calculated columns column

    Hi all

    Please, help me in the following scenario.

    I have to get the data in two tables, so whatever the columns I need to put it in the select statement, but I have to do the calculations for two columns, and assigned an alias to these two calculated columns name, lets say X & Y.

    I need to show the data in column Z, the rule for this column must have a minimum value of columns X and Y.

    I have to use only a select statement and retrieve the data. Camnt make changes or creating features on the database.

    Thnaks in advance.

    Use a view inline and function LESS.

    http://download.Oracle.com/docs/CD/E11882_01/server.112/e17118/queries007.htm#SQLRF52357

    http://download.Oracle.com/docs/CD/E11882_01/server.112/e17118/functions087.htm#SQLRF00657

  • Create a new calculated columns

    Hi all

    I want to create a calculated column with the following formula:

    Sales/Sum (Sales) * 100

    I got an error saying:
    ERRORS:
    [14041] error in the measure for the test of the column definition. Nested aggregate measure definitions are not currently supported.

    I can of course create in response but the user like a column or a shared measure (which may be reusable).

    Concerning

    In fact, you must create two columns in the business model.

    First, create a column of the measure based on the level for the denominator. It must be a measure of the year-level.

    Then, create the measure part as a separate column. Select 'Sales' in your business model, right click and select "Wizard of calculation" in the context menu. You can create an action that compares the year-level measurement.

  • Aggregation in IR works incorrectly when using calculated columns breaks

    I have a problem with the aggregation in IR when using stops on calculated columns.

    Please see the exact steps to reproduce the problem in my next post below

    Martin

    Published by: Martin Krepelka, October 22, 2008 11:18

    Martin,

    I filed a bug about the problem you are having. The problem is when you control break on a calculated column with defined format mask and aggregates, the aggregate information is not displayed correctly. When I run the interactive report in debug mode, I see that analytical for aggregated information function partitions incorrectly. Using your example:

    IR runs this query to get the counts for each month of posting:

    count("AMOUNT") over (partition by "POSTING_DATE")
    

    Instead, it should run this query:

    count("AMOUNT") over (partition by to_char("POSTING_DATE",'RRRR/MM'))
    

    To work around the problem, you can change the calculation month without the format mask view and set to_char(F,'RRRR/MM'). Aggregates will display correctly.

    Christina

  • Totals on calculated columns does not work properly

    Hi all
    IM creating column calculation in MDB something like this, {CASE WHEN SUBSTRING (DEPT of 2 for 1) = 'Y' THEN END of ANOTHER SALARY 0}. And in response using the same column to display in the report, it does correctly. When I tried to put in the Grand Total I don't see the correct totals on the report.
    Can someone help me on this please.

    Thank you

    Hi user7417334,

    How did you define this measure? Did you do in the general tab (' logical use existing columns as source ")? If so, try to specify it instead on the Data Type tab.

    (1) uncheck "use logic existing columns...". »
    2) click the Data Type tab
    3) double-click your physical source
    (4) in the new box, make sure "Display unmapped columns" is checked
    5) click on the button next to your new column name
    (6) specify your formula here
    7) click OK until you return to the window of Data Type
    8) click the aggregation
    (9) set the SUM aggregation
    (10) save RPD and recheck your report.

    Best regards

    -Joe

  • How to create a calculated column in another dimension

    Hi all

    I use OBIEE 11.9 on oracle 12 c.

    I have the following two dimensions in Bussiness model,

    I want to create FEMALES TOTAL logical column in dimension F1 student Graduation which is based on the column between the sexes in the student D1 dimension. The gender column has two possible values 'F', have '. the column TOTAL WOMEN should have sex for F.

    How I do that?

    Thank you.

    Kind regards.

    Add the dimension as a join table in the LTS made-> general tab, and then in the formula in the column, use a case statement to evaluate the dimensional condition and return the column done or 0.

    KEY: Size is not an LTS on its own by the way (as your picture shows)

    Oracle BI applications example:

    For staff than for those who is marked as active employees.

    Then the column DISTRIBUTION is: CASE WHEN 'Oracle Data Warehouse'. "'"' Catalogue'."" """dbo"."" "" "Dim_W_EMPLOYMENT_D '." " W_ASG_ACTIVE_INACTIVE_CODE' = 'A' AND ' Oracle Data Warehouse. "'"' Catalogue'."" """dbo"."" "" "Dim_W_EMPLOYMENT_D '." " W_WORKER_TYPE_CODE' = 'Worker EMPLOYEE' THEN ' Oracle Data Warehouse. "'"' Catalogue'."" """dbo"."" "" "Fact_W_WRKFC_EVT_MONTH_F_Snapshot '." " END OF MEMBERSHIP"0 OTHERWISE

  • APEX 4.2.5: Calculated column, how to?

    Good afternoon

    I've followed columns in a table:

    first name

    last_name

    complete_name

    The complete_name column should be filled in as: last_name + "," + name »»

    Example:

    name = James

    last_Name = Bond

    complete_name = Bond, James


    The complete_name column is used as a unique key.

    What is the best practice to achieve this?

    Kind regards.

    Wilfried

    IMO with trigger;

    create table a_name
    (first_name varchar2(20),
    last_name varchar2(20),
    complete_name varchar2(40) unique);
    
  • calculated column

    Hi gurus,

    I wanted to create a logical column in fact table for 2 products-prod1 and prod2 = sum of values
    How do I do that

    Thanks in advance
    Collery

    The way you have created 'Prod1 sales value' create 'Prod2 sales value '.

    Now, create a derived column "Part of Prod1" and in the formula give

    fact_table. "Prod1 sales value '/(fact_table.) '. ("" Prod1 sales value "+ 'Prod2 sales value')

    And in the responses, create a tabular report with columns

    Calendar_Day, "Prod1 sales value", "Value of sales Prod2", "Prod1 share"

    And check the results...

    hope its helpful...

    Thank you
    Ashish

  • Calculated column in BI Publisher 10g

    Hello

    We generate reports through BI Publisher. Connect us to the database for genertate reports. I have create a datamodel (Type: SQL query) recover data through SQL query.

    My requirment is: I have two columns with numbers. I am able to create the report with the two columns by creating a datamodel. I need a column more than the sum of these two columns in my report. How can I do this through BI Publisher.

    Thank you.

    Hi reda,.

    Write the sql on your model of data query

    Select sum (col1), sum (col2), sum (col1 and col2) from tablename
    or
    Select (col1), (col2), sum (col1 and col2) from tablename
    Group of col1, col2

    UPDATE POST

    The functions that are related to SQL will work...

    See you soon,.
    Aravind

    Published by: Aravind fabrice on 18 May 2011 23:23

  • New calculated column MDB table indeed

    Hello

    I have a requirement to calculate the total cost. I have the quantity as a field and the actual cost as another field. Quantity * cost = total cost. How can I do this in the MDB.

    Thanks for your time and your help.

    Hi user,
    Done create a logical column in this table.
    layer of MDB-> made-> right click - Create a logical column (or table) duplicate a measure column in the table and rename it as Total cost.

    "Then name it as Total cost and mark physical sources using existing and click on the '... »
    Here, we see the logical tables and columns.give the formula using arrays of logiccal in functions that
    Quantity * cost

  • Case statement using column Date calculated in responses

    Hello

    I have a calculated column is column # 4, in the responses with the following code
    "CASE WHEN 'Handmade'." Date of the project"is set to NULL THEN TIMESTAMP ' 1900-01-01 12:00" ELSE "Handmade" "." " The project 'END' date, so now I filled all Null values in the field to date with ' 1900 - 01 - 01 12:00 '.

    I have another column with the following syntax, which only gives me an error, but the 'Undefined' values for the timestamp above is not met.
    "BOX WHEN" @4 ' = ' 1900 - 01 - 01 12:00 ' THEN 'Undefined' OTHERWISE "Main Dim". " "Project name" END ".

    Please let me know how to fix this. Thank you for your time and your help.

    Hello

    Try this

    case when cast (CASE WHEN Time. "Day Date" "IS NULL THEN TIMESTAMP ' 1900-01-01 12:00 ' time else. '" (Date of the day' END as char) = TIMESTAMP ' 1900 - 01 - 01 12:00 ' then 'undefined' other end Products.Product

    Replace your respective columns

    Thank you
    Saichand.v

  • report interactive apex 5, pivot action does not display columns in the application developed on 4.2.6

    I just installed apex 5.01 on apex 4.2.6.

    When I want to use the pivot of the action on an interactive report developed on 4.2.6 the names of the columns does not appear.

    If I add a new column, it seems

    calculated columns displayed

    Thank you

    Hello

    The pivot must be enabled for these columns.  To do this, you can upgrade the application developed in 4.2.6 as follows:

    -Click on the application

    -Click utilities

    -Click on the Application upgrade

    -Activate the IR Pivot should appear.  Click on the number of candidate object

    -You can select some or all of the IRs to upgrade

    Kind regards

    Christina

  • Columns of the rendered suddenly do not report in Prod.

    I have a report that worked fine until 1 week ago. The report has not changed in 2 years. Some columns do not have to return (appear hidden) that should appear and values appear in the wrong column (transposed). All other reports are worked as expected. What is particularly strange is that reports works perfectly in dev. I moved it back and forth between Dev and Prod several times to verify that it works in Dev but not in Prod. All other reports of work in both environments. I'm on 11.1.2.3 and recently had no change in my environment.

    Any ideas on how I could fix this, other than to rebuild the relationship?

    Thank you

    FA

    I discovered the problem. The column out of which all other calculated columns has been marked to always hide. However, a more thorough investigation, I learned that she was also conditional deletion. It's bad design in 2 ways, since it was already hidden had no reason to delete, but it value also suppressed = 0, which then caused the error. It was the first time, that all values equal zero if the error was not known until today.

  • APEX 4.2.5: How reference a column element in the previous line?

    Good afternoon

    I have the following problem:

    I have an IR on a table that contains the values of daily clock of energy (gas and electricity).

    Now, I want to set up a calculated column that contains the daily consumption.
    Power_actual_row - power_previous line.

    Is this possible and if yes how can I achieve this?

    Kind regards.

    Wilfried

    Baerenmarke wrote:

    I have the following problem:

    I have an IR on a table that contains the values of daily consumption of energy (gas & electricity) clock.

    Now, I want to set up a calculated column that contains the daily consumption.
    Power_actual_row - power_previous line.

    Is this possible and if yes how can I achieve this?

    Add a POWER_PREVIOUS column to your report query using the analytical function LAG to access the value of the POWER of the previous row. Use the ORDER byclause in the function to determine the order of the lines. The calculation of the IR then simply uses the POWER and POWER_PREVIOUS values for the same line.

Maybe you are looking for