Concatenate two columns in Obiee 11g

Hi,
I am trying to concatenate two columns from same table in OBIEE 11G , i tried all below syntax
cast("Period"."Year" as Varchar)|| cast ("Period"." Month Name" as Varchar)
cast("Period"."Year" as char)|| cast ("Period"." Month Name" as char)
contact(cast("Period"."Year" as char), cast ("Period"." Month Namer" as char))
I am getting this error as - Invalid Alias Format : Table_name.Column_name require . Plz Help me Guys
Thanks
Edited by: Neha on Apr 16, 2012 3:41 PM

Column forumal example based on vanilla usage tracking RPD:
cast("Query Time"."Year" as varchar(4)) || "Query Time"."Month"BTW: "Month Name" implies a string already so I doubt you'll need to cast it as one...
C.

Similar Messages

  • Concatenating two columns in obiee 11g

    Hi,
    I am getting an syntax error when i concatenate two columns from the same table and i think syntax is correct.
    below is the column formula:
    (cast("Dim Stock Market"."Days High" as varchar))||'/'||(cast("Dim Stock Market"."Days Low" as varchar))
    error:
    Formula syntax is invalid.
    [nQSError: 10058] A general error has occurred. [nQSError: 43113] Message returned from OBIS. [nQSError: 27002] Near <)>: Syntax error [nQSError: 26012] . (HY000)
    SQL Issued: SELECT (cast("Dim Stock Market"."Days High" as varchar))||'/'||(cast("Dim Stock Market"."Days Low" as varchar)) FROM "Stock Model"

    got the answer.
    Edited by: Rohit_L on Jan 29, 2013 4:00 AM

  • Stop a dimensional drill for a particular value of a column in obiee 11g

    Hi,
    I have dimensional drill been setup for Supervisor Hierarchy Table.I need to stop the dimensional drill for a particular value of the column in obiee 11g.
    Example: I have two columns
    1.Supervisor Level 1 Name
    2.Supervisor Level 2 Name
    Supervisor Level 1 Name Columns have these values.(Ram,Higher,Sam)
    Supervisor Level 2 Name Columns have these values.(Ravi,Higher,Raghul).
    If we pull Supervisor Level 1 Name Column in report which has a dimensional drill(It will navigate to Supervisor Level 2 Name).It will show
    1.Ram
    2.Higher
    3.Sam
    I should not drill on Higher value but the rest of the values(Sam and Ram will drill to Supervisor Level 2 Name) should be drillable.The same should happen for Supervisor Level 2 Name.
    Please Suggest.
    Thanks,
    Azim

    Azim,
    Don't think you can actually get this working

  • How to add two columns in OBIEE report?

    Hi to All,
    Can anyone tell me how to add two columns in OBIEE report and get that result in a new column?
    Thanks in Advance,
    Thenmozhi

    Assume you already have two columns SalesAmt1 and SalesAmt2, and you want to derive 3rd column say SalesAmt3 which would be the sum of SalesAmt1 and SalesAmt2.
    For this, as I mentioned above pull SalesAmt1 and SalesAmt2 columns in Report. Now pull another column (say SalesAmt1) and open the fx. Clear the contents of fx. Now locate the columns button in the bottom of the fx. From Here, first select SalesAmt1 and + sign and the select SalesAmt2.
    Now in this new column, the fx should look like SalesAmt1 + SalesAmt2.
    Let me know if you are looking for something else.
    Thanks

  • Removing drag functionality of column in OBIEE 11g

    Hi all,
    Can any one say me how to remove the draging functionality for the columns in OBIEE 11g ? It is creating an issue for me when i hide the columns in pivot and has only rows over there. It is creating one more layer on the top of the measures.
    Thanks for your help.

    Fightclub,
    Edit the Pivot view and goto Row section -> Row Properties -> Option - Uncheck the Display Heading.
    But you'll loose your columns heading of rows.
    Thanks,
    Balaa...

  • Peoplesoft Trees as Hierarchial Columns in OBIEE 11g

    Sorry for a duplicate posting. Logged in as a normal user with random number. I know how much people hate it. Logged in as myself now.
    Hi,
    I have extensively searched using Google or 11g docs but could not find a proper solution to using Peoplesoft trees in form of hierarchial columns in obiee 11g. Can the rpd of obiee 11g be designed to view the Peoplesoft tree structure( as it is in Tree manager in Pplsoft) as hierachial columns in obiee 11g? I am sure hierarchial columns as a 11g feature are not just for visual representation in tree format but also can be viewed in Answers and queried against it,am I right?
    Anybody who has worked on trees and OBIEE 11g hierarchial columns? Ahsan/Navin??
    Thanks,
    Dan

    I have not used the 11g hierarchical columns for PSoft Trees but I can think of a glaring reason NOT to do this..PERFORMANCE. If I understand correctly, 11g issues a group by and Union as you traverse this type of structure and PeopleSoft trees have a number of tables to represent the actual TREE. I cannot possibly see how this can be effective especially with a large scale BI Apps DW? This is part of the reason the trees get flattened out via the OOTB ETL adaptors for PSoft.

  • Merging two rpds in OBIEE 11g

    Hi,
    To merge two RPDs in OBIEE 11g, do I need to have both RPDs online? What are the pre requecities? Do I need to modify ini file to mention those RPDs.? Please tell me the steps involved.
    Thanks and Regards
    Santosh

    Q1. If I create a merge RPD from two independent sources, then, how does the physical layer is built?
    A1.
    Q2. Does it creates separete schema in physcial layer for tables from first source and another schema for other source?
    A2.
    Q3. If two separate schemas are built then does those schema pull data from there respective sources independently in Answer?
    A3.
    Q4. If it create combined schema, then hw is data fetched in Answer? Is there any link created by default or developer need to create a common link between two schemas?
    Hw will it fetch data from two seperate data sources during runtime?
    A4.
    Please provide some conceptual understanding for above queries.
    As far as I understand with my knowledge in OBIE, separate connection pool is required for each source when you create merged RPD since tables are from two separate DB sources even if being in the single rpd after merge. If my conceptual understanding is wrong then, guys, please help me to understand.
    Thanks
    Santosh

  • How to Hide a column in OBIEE 11g

    Hi,
    I am trying to hide a column of presantation layer table in OBIEE 11g. But it is not working.
    I am doing the follwoing.
    Open the permission tab of the column.
    Given no access to Everyone.
    Given No access the user/Application Role.
    When i go to web, the column is getting displayed in the table list. But, when i select the column and press the result button, it is not giving the result.
    It means, by doing the above steps it is restricting the data but visibility of column is already there.
    Same way it works for OBIEE 10g. Could you please let me know this feature has been removed from 11g or if it is still there then how we can achieved that.
    Thanks in Advance
    Niraj

    Hi Niraj,
    It's a bug in OBIEE 11.1.1.5.
    Bug 12352010: RESTRICTED COLUMNS SHOULD NOT SHOW IN SUBJECT AREA
    It is fixed in the version 11.1.1.6.
    Regards,
    Sandeep
    Edited by: Sandeep Saini on Mar 28, 2012 12:16 AM

  • Using CASE WHEN for Essbase column in OBIEE 11g

    Hi all,
    I have a business model in OBIEE 11g, taking the source from Essbase 11. The measures of the Essbase cube in the physical layer is flattened, and the aggregations for the measures are set to SUM.
    The Product dimension has 5 generations. In Product logical table, I created a logical column called "Product Grouping" using a simple CASE WHEN formula:
    CASE
    WHEN "TEST"."Product"."Gen5,Product" IN ('100-10', '100-20', '200-10', '300-10') THEN 'Group 1'
    WHEN "TEST"."Product"."Gen5,Product" IN ('100-30', '200-20') THEN 'Group 2'
    ELSE 'Group 3'
    END
    Problems:
    1. If I don't place this "Product Grouping" in the logical level/hierarchy, I got error in the report when I simply show Product Grouping and a measure.
    2. If I place this "Product Grouping" in the logical level/hierarchy (on the 5th level), no more error in the report when I simply show "Product Grouping" and a measure. The measure value also shows the correct SUM (group by). However, when I add "Gen1,Product" the "Product Grouping" and the measure value suddenly becomes not grouped by.
    Has anyone ever tried and encountered something like this? Any thoughts?
    Thank you very much!

    Hi Deepak, thansk for the suggestion.
    However, I can't use calculated item for this report because:
    1. incorrect result will be shown when my measures involve a formula to derive a percentage value.
    2. calculated item is not available if we do "combine requests" (or union) in 11g.
    Any thoughts anyone on how to solve this? Is this just me, or it's a bug?
    Thank you very much.

  • Concatenate two Columns in OAF

    Dear Friends ,
    I have a OAF Page developed with advanced table , i would like to concatenate first two
    columns . is there any way that i can achieve this ?
    Note : I am using a sear without entity Object ( VO based Search )
    Please share your thoughts .
    Thanks in Advance ,
    Keerthi.k

    There are multiple ways to do it.
    Fully Declarative Way
    1. Add transient variable to your VO.
    Expand Attributes in VO Editor, select the newly created attribute, Check 'selected in query' checkbox.
    in Query Column, give some alias, enter expression as <column1> || <column2>
    Fully Programmatic Way
    1. Add transient variable to your VO.
    2. Capture the event in CO...pass the control to AM...from AM pass the control to VOImpl.
    3. Loop thru VO using an iterator.
    4. create a method in VORowImp to concatenate the two column and populate into the attribute created in step 1 (Use populateAttribute(.., ..) so that the VORow is not dirtied)
    5. for every row, call the method created in step 4.
    Hrishikesh

  • HTML-DB 1.6 SQL Query (Concatenate two columns)

    Hi everyone,
    My query look like this. But I got this message
    ORA-01403: no data found
    Sql query(.....returning ... sql
    What I can do ? I want to concatenate my two columns in one.
    <pre>
    -----Résultats de la recherche
    BEGIN
    DECLARE
    requete varchar2(5000);
    v_code_type varchar2(2000);
    v_ordre varchar2(500);
    BEGIN
    :P1_NOM_BENEFICIAIRE := REPLACE(:P1_NOM_BENEFICIAIRE,' ', '%');
    :P1_NOM_BENEFICIAIRE := REPLACE(:P1_NOM_BENEFICIAIRE,'-', '%');
    requete := 'SELECT
    (FEUI.NOM_BENEFICIAIRE || ''--'' || FEUI.PRENOM_BENEFICIAIRE) ABC,
    FEUI.VALEUR_ID_BENEFICIAIRE,
    FEUI.MONTANT,
    FEUI.CODE_TYPE_DECLARATION,
    FEUI.ANNEE_FISCALE,
    FEUI.CODE_ENTITE,
    FEUI.ID_FEUILLET_IMPOT,
    FEUI.ID_AMENDEMENT,
    FEUI.NO_RELEVE_ORIGINAL_PROV,
    FEUI.ACRONYME_ID_BENEFICIAIRE,
    TYPD.SIGNIFICATION
    FROM
    S29_FEUILLET_IMPOT FEUI,
    S29_TYPE_DECLARATION TYPD
    WHERE
    (TYPD.CODE = FEUI.CODE_TYPE_DECLARATION) AND
    (ANNEE_FISCALE = :P1_ANNEE_FISCALE) AND
    (CODE_ENTITE LIKE ''%'' || SUBSTR(:P1_CODE_ENTITE,1,3) || ''%'') OR
    (CODE_ENTITE = SUBSTR(:P1_CODE_ENTITE,1,3))
    AND
    ((:P1_NAS IS NULL) OR (:P1_NAS = VALEUR_ID_BENEFICIAIRE))
    AND
    ((:P1_NEQ IS NULL) OR (:P1_NEQ = VALEUR_ID_BENEFICIAIRE))
    AND
    ((:P1_NOM_BENEFICIAIRE IS NULL) OR
    ((UPPER(NOM_BENEFICIAIRE) || UPPER(PRENOM_BENEFICIAIRE))
    LIKE ''%'' || UPPER(:P1_NOM_BENEFICIAIRE) || ''%'') OR
    ((UPPER(PRENOM_BENEFICIAIRE) || UPPER(NOM_BENEFICIAIRE))
    LIKE ''%'' || UPPER(:P1_NOM_BENEFICIAIRE) || ''%'') OR
    ((UPPER(RAISON_SOCIALE_LIGNE_1) || UPPER(RAISON_SOCIALE_LIGNE_2))
    LIKE ''%'' || UPPER(:P1_NOM_BENEFICIAIRE) || ''%'') OR
    ((UPPER(RAISON_SOCIALE_LIGNE_2) || UPPER(RAISON_SOCIALE_LIGNE_1))
    LIKE ''%'' || UPPER(:P1_NOM_BENEFICIAIRE) || ''%'') OR
    (UPPER(SUBSTR(COORDONNEE_BENEFICIAIRE_SYGBEC,1,80))
    LIKE ''%'' || UPPER(:P1_NOM_BENEFICIAIRE) || ''%'')
    IF (:P1_CODE_RELEVE = 'A') OR
    (:P1_CODE_RELEVE = 'M') OR
    (:P1_CODE_RELEVE = 'C') THEN
    v_code_type := '(
    (FEUI.CODE_TYPE_DECLARATION = ''A'') OR
    (FEUI.CODE_TYPE_DECLARATION = ''M'') OR
    (FEUI.CODE_TYPE_DECLARATION = ''C'')
    else
    v_code_type :=
    (:P1_CODE_RELEVE = CODE_TYPE_DECLARATION) OR
    (:P1_CODE_RELEVE = ''%'')
    end if;
    WWV_FLOW.DEBUG('V_CODE_TYPE EST EGALE A :' || v_code_type);
    v_ordre := 'ORDER BY NOM_BENEFICIAIRE, VALEUR_ID_BENEFICIAIRE,
    ID_FEUILLET_IMPOT, ID_AMENDEMENT';
    requete := requete || ' AND ' || v_code_type || v_ordre;
    RETURN requete;
    END;
    END;
    </pre>
    Thanks. Bye

    Thank you Scott,
    I'm sorry, I should present you a reduce sql command.
    I had construct my "long" sql command without concatenation. But, I decide to add a column just beside the other column.
    After sending my message on OTN, I tried something else, I decided to copy my sql command without concatenation in an other region. I changed my sql command in the new region by adding my new column and this ''--'' and it works very well. Sometimes, It's really difficult to understand why it doesn't.
    Thanks. Bye,

  • How to concatenate two column in ALV

    dear,
    How to concatenate two ALV columns
    yatendra sharma

    dear
    I have to concatenate 3 fields
    PERFORM fill_fields_of_fieldcatalog
        USING 'IT_FINAL' 'NAME2' ' ' ' ' 'Customer Address' .
      PERFORM fill_fields_of_fieldcatalog
        USING 'IT_FINAL' 'STRAS' ' ' ' ' 'Street' .
      PERFORM fill_fields_of_fieldcatalog
        USING 'IT_FINAL' 'ORT01' ' ' ' ' 'City'.
    how can we join them
    Yatendra

  • Unable to import table or columns in OBIEE 11G RPD

    Hi All,
    We are unable to import table into the RPD using OCI 10G/11G to import the table then the import box open but we are unable to see the tables below the schema name. When we use ODBC 3.5 and created a DSN for the database then we are able to see all the tables and import them. But the problem here is that when we are using window server 7 64 bit to install client and then importing the table ODBC is not working fine as well.
    Please note that we are using OBIEE 11G which is installed on unix box and we connect to RPD using client installed on windows server.
    Appreciate all the help in advance.
    Thanks,
    Mohit

    Hi Sayak,
    This means we need to installed Oracle client to resolve this problem. Can you please share if you have some knowledge regarding the same.
    Thanks,
    Mohit

  • Concatenate two columns

    Hi,
    In BI 11g, I am trying to concatenate DAY/DATE Columns.
    1."TM_Details"."Day" || "TM_Details"."Date"
    2.concat("TM_Details"."Day")+concat("TM_Details"."Date")
    But it displays some error, like
    Formula syntax is invalid.
    [nQSError: 10058] A general error has occurred. [nQSError: 43113] Message returned from OBIS. [nQSError: 22020] Function Concat does not support non-text types. (HY000)
    SQL Issued: SELECT "TM_Details"."Day" || "TM_Details"."Date" FROM "TMD"
    Thanks
    Kavitha

    Hi kavitha,
    1."TM_Details"."Day" || cast("TM_Details"."Date" as char)This works out perfectly as the syntax is right.But you need to cast it accordingly.
    2.concat("TM_Details"."Day")+concat("TM_Details"."Date")concat(cast("TM_Details"."Day as char),"cast(TM_Details"."Date" as char)) this is the right syntax.
    Before check what is the datatype of day column and Date column as it is erroring out as mismatch.Accordingly convert
    Use cast function to convert it to the format needed and here is the cast syntax cast(column as datatype)
    *UPDATED POST*
    Invalid Alias Format : Table_name.Column_name requiredDont type the table name and column name manually.Please select it from the subject area into the criteria and check if this table name and column name are correct and coming from the same table.
    hope answered.award points.
    Cheers,
    KK
    Edited by: Kranthi.K on May 24, 2011 11:50 PM

  • Calculating YTD column in OBIEE 11g

    Hi ,
    Here is my requirement :
    I have to create a report , which shows several measure values (revenue , gross mergin etc as rows of a pivot table) against a certain period (Months , i.e. Jan , Feb ....etc as columns of a pivot table ) . Taking period prompt as presentation variable prompt . For example , If 'Jan' is selected from period dropdown list ,then only Jan values are shown . I am able to do upto this part .
    Next , I have to add one YTD column (calculated ) , which will eventually sum the values of upto selected period value , i.e if selected month is 'Mar' then March values will be shown in one column and 'Jan + Feb + Mar ' values will shown in another .
    How to achive this ?
    FYI , I am taking essbase 11.1.2.0 as datasource and using OBIEE 11.1.1.5.0 version .
    Thanks in advance.
    Edited by: 937268 on Jul 2, 2012 3:04 PM

    Hi,
    by using time series Ago function method and also by suing obiee-date-expression method you can solve it.
    YTD:
    http://download.oracle.com/docs/cd/E21764_01/bi.1111/e10540/dimensions.htm#i1023744
    http://gerardnico.com/wiki/dat/obiee/function_time
    http://www.vlamis.com/blog/2011/6/17/doing-time-series-calculations-in-answers-11g.html
    OBIEE - date expression method
    http://obieedue.blogspot.com/2011/06/obiee-date-expressions-reference.html
    Thanks
    Deva

Maybe you are looking for