Column formula requirement

I'm new to OBIEE and I need to perform the following operations in the column change the formula:

CASE of SUBSTRING ('file'. "Column1" OF 1 TO 2)

WHEN 12 THEN VALUEOF (SUBSTRING ('file'. "Column1" FROM 1 to 6)) "

ANOTHER 'folder '. "' Column1 ' END

This obviously isn't a valid syntax for the CASE WHEN statement. But please advice as to how this functionality can be achieved.

Thank you

Srini.

You were close! Here it is a valid syntax:

CASE WHEN SUBSTRING ('file'. "Column1" FROM 1 FOR 2) = "12"

THEN SUBSTRING ('file'. "Column1" FROM 1 to 6)

ANOTHER 'folder '. "' Column1 ' END

Thank you

GEO

Tags: Business Intelligence

Similar Questions

  • Name attribute in the object entity column is required.


    Hi all

    I use jdev 11.1.1.7.0. I try to insert a row into a table that has six attributes. One of the default attributes to current_timestamp during creation of the table itself.

    Trying to insert a line after you set the values of five other attributes using vo.insertRow (row); and run the validation action I get name(default attribute) in entity object attribute column is required. I even checked refreshment after the condition of all the attributes of OT (ie., checked the update but also insert). Please help me find the error.

    Kind regards

    Matthew M.

    Hi all

    Turned off the option mandatory attribute selected by default in the object-Edit entity attribute. I am able to insert the line now.

    Thank you

    Mani.

  • How to add text to the column formula

    Hello

    I am trying to add text to column (quarter) in the column formula window.

    Try adding "Q1" text in the column as: "Q1" | (TIME. ("" CALENDAR QUARTER "). -In error.

    Also tried with CASTING... .but could not answer me.

    Please advice how add/concatenates the text in the column formula window.

    Kind regards

    CK

    I just tested the approach below, which works as expected.

    CONCAT ('ABC', cast ("Time". "" Tax Quarter "as char))"

    CONCAT ('ABC', 'Time'. ("' Fiscal quarter")

    Control the parameters of syntax in your formula.

    Mark it as relatively useful/correct, if it is.

    Best regards
    Kalyan Chukkapalli
    http://123obi.com

  • Look for the value null in the column formula

    I have a quiz report in OBIEE BI, and I only want to show quizzes to when the end date is not null.

    Is it possible to do in the column formulas?

    Thank you

    Select filter column is not null

  • Planning form, column formula adding does not correctly.

    Hi all
    I have a little problem with a form of planning. I have two columns
    Column1 - descendants of the units
    Formula, of the sum of col1 Column2 - column (total units)

    The digits are entered as percentages. I have a validation rule for column 2 as if the sum is not 1 (adding percentages is 1 and no 100) cell color should be red.

    Problem appears if I rentre.1 10 units, I get an error and for some reason, the value of the column 2 est.9999999999999 instead of 1.
    If I rentre.5 for two units, it is fine.
    If I rentre.5.3.1,.1, it is well
    If I rentre.3,.3,.3.1, it's well
    If I rentre.1,.1,.1,.1,.1,.1,.1,.1,.2,.1 the result is 1.1 which is correct.

    Don't know why this problem occurs.

    Screnshot: http://i44.tinypic.com/2nk5mz8.png

    Any input would be helpful.

    11.1.2.1 assistance, access to planning via the workspace.

    Published by: N13 on June 7, 2013 06:09

    Here is the bug to the same number:
    BUG: 8540616 -BAD FIGURE ILLUSTRATING PLANNING FORM

    For more information please do a SR with Oracle and work around, I have already provided.

    See you soon...
    Rahul S.

  • The column formula

    Hello

    I use 10g

    I have a column called table a. HIERARCHY_DATE_WID it appears as '20120331' in the report, but the user want to view it as March 31, 2012

    This table, this column data type is DOUBLE and I can't change the data type DATE/timestamp of it. effects some joins..!

    I'm changing to the level of response. However, I did write a SQL result as requested user but unable to keep this SQL in the answers... can you please help me on this...

    To_char (to_date (to_char (HIERARCHY_DATE_WID), 'YYYYMMDD'), 'DD-mon-YYYY')

    If I copy and beyond the preceding in the formula in the column... I'm getting syntax error :(

    Published by: KBabu on February 25, 2013 15:12

    Hi Bader,

    I tried on my local... It should work in the responses

    Evaluate ('TO_CHAR (%1, %2)' AS CHARACTER (30), evaluate ("(%1, %2) to_date', Evaluate ("TO_CHAR (%1)"like tank, 20090101), 'YYYYMMDD'), 'DD-MON-YYYY')

    Let me know if you have any questions.

    Thank you
    NK

  • AF:table columns are required for the entire table space.

    Hello

    I use a certain controls fast query table. Some tables have only one or two columns displaying data.
    It is necessary that in such a case, avoid any white space after the columns.

    I tried setting for each column width to 50%, but it gave no results required in firefox 4.0

    I use JDeveloper 11.1.1.4.0.

    The only option that seems to work is to specify the width of the column in pixels. It's the last thing I like to do.

    Is there a styleClass or any other better alternative?

    Concerning

    for the game of table the styleClass as "AFStretchWidth" - which would ensure that it occupies the entire width.
    and use columnStretching as required.

    Sample:


    fetchSize = "#{bindings." Departments.rangeSize}.
    emptyText = "#{bindings." Departments.Viewable? "{'No data to display.': 'Access Denied.'}".
    var = "row" value = "#{bindings." Departments.collectionModel}' rowBandingInterval = '0 '.
    selectionListener = "#{bindings." Departments.collectionModel.makeCurrent}" columnStretching ="last"
    'unique' = rowSelection styleClass = "AFStretchWidth" >

    Thank you
    Nini

  • Hyperion Planning 11.1.2 formula line and a column formula

    Why we use the row and column of formulas formula in Hyperion Planning 11.1.2?

    After you have entered the value we need to refresh the page so that the value changes in the formula of row/column.

    You use so you can create your own custom formulas.
    The form must be submitted if you change the data and you want the results of the formulas to update.

    See you soon

    John
    http://John-Goodwin.blogspot.com/

  • column formula logic repository obiee

    Hi all

    I am creating a logical column using below three physical columns

    I am providing the column values;

    total of accounts receivable (data type: double) = 21476.15

    tot_bill_M (data type: double) = 3276.03

    tot_bill_M_1 (data type: double) = 18200.12


    When case (ifnull (total receivables, 0)-ifnull (tot_bill_M, 0) -ifnull (tot_bill_M_1, 0)) < = 0, 0, another condition to achieve


    but here the first condition less than or equal to 0 should be has been reached and should publish as 0 in obiee reports.


    But here, it goes to the second step of calculation.


    is there anyway we can do this?


    Why not add a TOUR around your measurements to make sure do them the same "accuracy"? Do not round to a higher accuracy than you display or 1 more and you'll most likely get a match.

    And also look at the SQL generated physical because at least you are 100% of what you need to do to get the digits of your correspondents.

  • Column formulas in SQL?

    Hello world
    I have a table used in wages are all entered in ascending order.
    So emp 1001 gets salary lower than 100, Emp 1002 gets 250 and Emp 1003 300.

    I want to query this table to ensure I get a difference running in the amount of the wage.
    That means in addition to selecting the available columns in the table, I want to have a column of "saldiff" of wage difference in the query.

    For example, for Emp 1001 'saldiff' cannot be zero but 1002 Emp 'saldiff' should show a value of 150 and for emp 1003, "saldiff" should show a value of 50.

    How is that possible please notify.

    Thank you

    Use of analytical functions:

    SQL> select  ename,
      2          sal,
      3          sal - lag(sal) over(order by sal) sal_diff
      4    from  emp
      5    order by sal
      6  /
    
    ENAME             SAL   SAL_DIFF
    ---------- ---------- ----------
    SMITH             800
    JAMES             950        150
    ADAMS            1100        150
    WARD             1250        150
    MARTIN           1250          0
    MILLER           1300         50
    TURNER           1500        200
    ALLEN            1600        100
    CLARK            2450        850
    BLAKE            2850        400
    JONES            2975        125
    
    ENAME             SAL   SAL_DIFF
    ---------- ---------- ----------
    SCOTT            3000         25
    FORD             3000          0
    KING             5000       2000
    
    14 rows selected.
    
    SQL> 
    

    SY.

  • Make the required column in table advanced of the OPS

    Hi all

    I have an obligation to make the column as required in table advanced BWC (worker buyer Center).

    Navigation: Purchase of super user-> Work Center buyer-> orders-> create a Standard command-> click the tab lines

    Please find the screen shot for your reference below

    Purchase_Order_Screen.PNG

    Void tab lines, five lines created automatically in advanced table and I made the need-by / Start Date is required by using customizations.

    I saw the line and submit button launches the error message ' form Validation failures: a value must be entered for 'need a day'. "

    Purchase_Order_Screen1.PNG

    Requirements of companies is required the need - by / column Start Date and the user trying to enter the line instead of 5 lines and when click on submit/save button without having to throw the error. Please let me know how to make and share sample code.

    Page path: / oracle/apps/po/document/order/webui/OrderPG

    Kind regards

    Vincent

    {public processFormRequest (pageContext OAPageContext, OAWebBean webBean) Sub

    pageContext.writeDiagnostics (this, "XxBEFOrderCO PFR start:", 1);

    OAApplicationModule am = pageContext.getApplicationModule (webBean);

    DocumentAMImpl documentamimpl = (DocumentAMImpl) pageContext.getRootApplicationModule ();

    String submitButton = pageContext.getParameter ("SubmitButton");

    String SaveButton = pageContext.getParameter ("SaveButton");

    String strPoMode = pageContext.getParameter ("poMode");

    String strEventParam = pageContext.getParameter (OAWebBeanConstants.EVENT_PARAM);

    String strRowRef = pageContext.getParameter (OAWebBeanConstants.EVENT_SOURCE_ROW_REFERENCE);

    Dim description As String = null;

    Day needbydate = null;

    String str2 = (String) pageContext.getTransactionValue ("DOCUMENT_MODE");

    PoLinesMergeVOImpl PoLinesMergeVO = documentamimpl.getPoLinesMergeVO ();

    Line PoLinesMergeVORowImpl = null;

    If (SaveButton! = null | submitButton! = null) {}

    pageContext.writeDiagnostics (this, "inside the if condition in the PFR:", 1);

    int pcLineRowCount = PoLinesMergeVO.getRowCount ();

    RowSetIterator rowSetIterator = null;

    try {}

    rowSetIterator = PoLinesMergeVO.createRowSetIterator ("PcLineIterator");

    If (pcLineRowCount > 0) {}

    rowSetIterator.setRangeStart (0);

    rowSetIterator.setRangeSize (pcLineRowCount);

    for (int i = 0; i)< pclinerowcount;="" i++)="">

    pageContext.writeDiagnostics (this, "inside the LOOP:", 1);

    line = (PoLinesMergeVORowImpl) rowSetIterator.getRowAtRangeIndex (i);

    Description = row.getItemDescription ();

    needbydate = row.getNeedByDate ();

    If (description! = null & needbydate == null) {}

    throw new OAException ("Please enter the Needby/Startdate", OAException.ERROR);

    }

    }

    rowSetIterator.closeRowSetIterator ();

    }

    rowSetIterator.closeRowSetIterator ();

    {/ *} catch (Exception exception) {}

    exception.printStackTrace ();

    }*/

    }

    super.processFormRequest (pageContext, webBean);

    }

    The above code is correct. This code can useful to others on the OrderPG in 12.2.4 version.

  • column of formulas based on a sql statement

    Hi all

    I have a select statement:

    (select sum(t.CR_AMOUNT-t.DR_AMOUNT)
            from HOSPITAL_TRANSACTIONS_VIEW t
            where t.TRX_TYPE in ( 'CR','DR')
            and   t.CUSTOMER_NO = :account_no        -- where (:account_no) is a char column in a non-database block 
            and   t.trx_date between '01-03-2014' and '31-03-2014') ;
    
    

    and I want to create a column of formulas based on that, but I do not know how?

    Thanks in advance

    I don't see why you need a column of formulas to do this, as one element of forms is involved. But if you want to use a column formula:

    1. create a function local on your form name so maybe FK_FORMULA, col of the: account_no as IN-variable to this function. Inside your sql function and return the result as the result of the function.

    2. in the formula field, simply call the function as FK_FORMULA (: account_no)

  • Union of the not compatible between the column in obiee formula error

    Hi Experts,

    Error: Union of the incompatible types

    I used the Case function in my column formula and got above error as well.

    The formula for the column goes below:

    IFNULL (CASE WHEN EDM_TRD_IR_LEG. LEG_ID = 1 THEN (EDM_TRD_IR_LEG. (END PAY_RECV_IND) OTHERWISE 0, 0)


    LEGID is of type number. PAY_RECV_IND is of type varchar.

    Please let me know how to fix this error.

    Thanks in advance.


    -Looks
    Mayuri

    898221 wrote:
    Hi Experts,

    Error: Union of the incompatible types

    I used the Case function in my column formula and got above error as well.

    The formula for the column goes below:

    IFNULL (CASE WHEN EDM_TRD_IR_LEG. LEG_ID = 1 THEN (EDM_TRD_IR_LEG. (END PAY_RECV_IND) OTHERWISE 0, 0)

    LEGID is of type number. PAY_RECV_IND is of type varchar.

    Please let me know how to fix this error.

    Thanks in advance.

    -Looks
    Mayuri

    @dpka, you have syntax errors in your solution. If you are casting as a varchar, then your syntax should read "1" instead of 1. Also at the end, he must be "0" instead of 0.

    Mayuri,

    To use your syntax, try this:

    IFNULL (CASE WHEN EDM_TRD_IR_LEG. LEG_ID = 1 THEN CAST (EDM_TRD_IR_LEG. (PAY_RECV_IND AS INTEGER) END ELSE 0, 0)

    .. . If you need the result as a digital for purposes of aggregation...

  • ALTER table - column required

    Hey guys, quick question. I have a table that is created and that you just want to make one of the columns is required. What is this done by following these steps:

    ALTER TABLE < my_table >
    ALTER COLUMN < my_column > MANDATORY

    If this isn't the case, could someone guide me on how to do it.

    Thank you.

    ALTER TABLE CHANGE NOT NULL;

  • Issue of formulas in columns

    Hello

    I have a simple question that subtracts 2 columns formulas. When I do (14.4 to 9.8) he gives instead of 4.6-4.7.
    What I said above is just an example, but it also happens for the other columns. I also tried to keep more than one decimal place, but still he showed the same question. Can anyone suggest pls how to solve

    Thank you
    Jacomet.

    check the second decimal value of the 14.4 and 9.8. It can be like 14.49 and 9.81

Maybe you are looking for

  • My system doesn't let me drag the icon from firefox to the applications. I get a note that I have insufficint privileges.

    Mac OS X 10.5.8Admin userWhen I drag the Firefox 9.0.1 icon for my folder of the application, the system wonder if I want to replace the old version. When I toggle "Yes", I get a warning that I don't have sufficient privileges to complete the operati

  • HP Deskjet 3525 problem with ink 364 - misleading information

    I bought a 364 original ink. 364 ink because after the installation of the printer in my operating system, I have 'HP Deskjet 3520 series' printer and printer software is identify him as 3520 series printer.Keeping in mind, I bought 364 ink for print

  • Removal of the read-only attribute

    I am trying to edit the Windows\system32\drivers\etc\hosts file.  When I try to save the file it tells me that the file is read-only.  I hi-lite the file, click Properties and uncheck the read-only, and then click on apply and close the properties an

  • Windows 7 Activation real problem

    I recently bought a copy of Windows 7 via an online retailer and installed perfectly on my machine for some time. All of a sudden, he gets up as is not authentic. What should I do at this point, because I paid for it? The retailer, contacted, just te

  • List of access-700

    Hello I define an access list 700 like this: access-list 700 allow 000e.3543.2c81 to allow only a single computer at a port. conf t int Fa0/1 Bridge-Group 1 entry - list address 700 I want to apply on a port Fa0/1 so I can't find the way because the