Column query in OBIEE report?

Hi to All,
I have a query regarding the columns in obiee report. Can we create a separate column like (for example: sum of the any two columns or average of two columns) in Report dynamically and add it to the existing RPD. Is it possile?
Thanks in advance,
Thenmozhi

Hi,
Yes you can. On your physical layer, you can create a logical column, in your BMM. Open your RPD, go to the logical table you want to work with. Right click --> New Object --> Logical Column. In the Column Source tab, select "Derived from existing columns using an expression" and enter your expresion there (you can also use the formula editor).
I hope this helps.
J.-

Similar Messages

  • How to use SQL Query in OBIEE Reports

    Hi all,
    I need to use direct sql query in report function column.. How can I implement that.
    For example
    Our report name is /shared/Automotive/Vehicle Services/Most Serviced Vehicle Models
    we have to eliminate /shared/Automotive/Vehicle Services/ part from above report name.. I have done this in sql using the Query SUBSTR(COL,INSTR(COL,'/',1,4)+1).
    So kindly help how to implement above sql query in Obiee.. Urgent.
    Thanx in advance

    796797 wrote:
    Hi all,
    I need to use direct sql query in report function column.. How can I implement that.
    For example
    Our report name is /shared/Automotive/Vehicle Services/Most Serviced Vehicle Models
    we have to eliminate /shared/Automotive/Vehicle Services/ part from above report name.. I have done this in sql using the Query SUBSTR(COL,INSTR(COL,'/',1,4)+1).
    So kindly help how to implement above sql query in Obiee.. Urgent.
    Thanx in advanceArrggh. I wish people wouldn't just answer a question without taking the time to actually think about what the user is asking for and if it makes sense. I like Diney's response best: Why not use the Title View? (i.e., asking questions until it is clear what is needed.) So along those lines, why are you trying to put the name of your report in a column of your report?? And why do you need to use direct sql to do this??
    Kindly or not, urgent or not, state what you are trying to achieve and why you need it (if the obvious answer like "using the Title View" doesn't work for you), instead of simply assuming your method is right and you need to know how to do what envision. Your method may not be correct or necessary.

  • Execute query from OBIEE report

    Hi,
    Is it possible from an OBIEE report, after filtering records, to simply execute a (insert) query/function/stored procedure with this subset of filtered records (only id's are enough) as parameter ?
    Regards

    I'm first trying to count the checked boxes, to see if it is really doing the right thing.
    HTMLDB_APPLICATION.G_F01.COUNT counts the checked ones, right?
    so in my process i have:
    begin
    if HTMLDB_APPLICATION.G_F01.COUNT is not null then
    :P80_TEST := HTMLDB_APPLICATION.G_F01.COUNT;
    end if;
    end;
    but nothing is displayed in the field P80_TEST...
    what is wrong?
    Regards,
    Sofie
    PS: this seems to be a topic only for me :-)

  • Compare 2 date columns in an OBIEE report

    Hi,
    in an OBIEE report, I have columns of 'ship date' and 'begin date'.
    My question is: how do I select those records (rows) that have the 'ship date' after 'begin date' ?
    If so, please advice what are the function should I use to compare/filter these records.
    Thank you

    That means you want to see only those records where Ship date is greater than Begin Date ?
    Add filter on Ship Date
    Select Operator = Is Greater Than
    Click on Add more Options > SQL expression
    Copy the column formula of Begin Date in SQL Expression. Ex : "Period Dimension"."Begin Date"
    Hope this helps

  • How to show the columns dynamically in OBIEE report based on the selection?

    Hi,
    I have a requirement where the columns should be dynamically shown in report based on what we select in propmt page.
    I'm creating a report in OBIEE where i want to give an option to the end user to select the columns whichever he wants to see in the report.
    For example I have the following columns in the report already:
    Customer Name,
    Customer Number,
    Bank Account,
    Address
    I want to give an option to the user to select 'Customer Mail ID' dynamically and see the column to be displyed in the report along with the existing columns.
    Through 'Column Selector' user can select a single column at a time, but if he want to select more than one column, how can we do this ?
    Please help me out in resolving this issue.
    Thanks,
    Chaithanya.

    Hi Chaithanya,
    there's not a straight solution for this. You can create different analysis containing different number of columns and then directing the user to this analysis using Action Links or you can also use View Selector to switch from one view (analysis) to the other. But it's not going to be very flexible nor dynamic.
    J.

  • OBIEE Report Export from Dashboard to Excel doesn't suppress the columns as

    OBIEE Report Export from Dashboard to Excel doesn't suppress the columns as expected even after the properties are set to Suppress in the report. In Dashboard it is suppressed Properly but in the excel export it is not suppressed and values for the columns are repeated.
    Added the following to the instanceconfig :
    <Download>
    <Export xsi:type="excel">
    <DataValue>UseFormattedValue</DataValue>
    <RepeatRows>false</RepeatRows>
    </Export>
    </Download>
    But then could not restart services.The following error occured :
    Util Logger] Exception occurred:
         Severity:1
         Type:PKN3saw9ExceptionE
         File:saxreader.cpp
         Line:681
         Message:Sax parser returned an exception.
    Message: The prefix 'xsi' has not been mapped to any URI, Entity publicId: /oracle/ofm/instances/instance1/config/OracleBIPresentationServicesComponent/coreapplication_obips1/instanceconfig.xml, Entity systemId: , Line number: 43, Column number: 26
    Edited by: 887111 on Mar 27, 2013 11:23 PM

    Problem solved!!
    <br><br>
    See this part of the query:
    <br><br>
    if :P15_GESTOR_PROPIETARI='-3' then<br>
    w:= w||' AND (("STASVWREPORT_TASQUES"."GES_GES_ID"=:GESTOR ';<br>
    w:= w||'OR "STASVWREPORT_TASQUES"."GES_GES_ID_ESTA_ASSIGNADA"=:GESTOR)';<br>
    w:= w||'OR ("STASVWREPORT_TASQUES"."AGR_***_***_ID"=<FONT color=red>:P15_CANVI_DE_CLUB</FONT> ';
    w:= w||' AND "STASVWREPORT_TASQUES"."PUBLICA"=''S''))';<br>
    end if;<br>
    <br>
    when instead of :P15_CANVI_DE_CLUB I put a value (say ''EE'') it works correctly, finally I created an application item (ASSOCIAT) and when when I change :P15_CANVI_DE_CLUB I set :ASSOCIAT to the same value and the query is based on this application item:
    <br><br>
    if :P15_GESTOR_PROPIETARI='-3' then<br>
    w:= w||' AND (("STASVWREPORT_TASQUES"."GES_GES_ID"=:GESTOR ';<br>
    w:= w||'OR "STASVWREPORT_TASQUES"."GES_GES_ID_ESTA_ASSIGNADA"=:GESTOR)';<br>
    w:= w||'OR ("STASVWREPORT_TASQUES"."AGR_***_***_ID"=<FONT color=red>:ASSOCIAT </FONT>';<br>
    w:= w||' AND "STASVWREPORT_TASQUES"."PUBLICA"=''S''))';<br>
    end if;<br>
    <br>

  • How to place one column under another column in obiee report?

    Hi all,
    I am new to obiee, so need some help from obiee experts. Can anyone tell me how to place one column data under another column in obiee report?
    i need the report to be as below
    category total_students Course_enrollment Test_attended pass_test
    total N % N % N %
    all students ##### ## ## ## ## ## ##
    Ethnicity
    Asian ###### ## ## ## ## ## ##
    African American ###### ## ## ## ## ## ##
    white ######
    Filipino ######
    Gender
    Male ##### ## ## ## ## ## ##
    Female ##### ## ## ## ## ## ##
    and similarly for other columns
    where ethnicity, gender are columns in the table and Course_enrollment, Test_attended, pass_test are calculated columns.
    Please help me to create a report as above if anyone knows how to do it.
    Edited by: Shailaja on Jul 19, 2010 12:23 AM

    Two ideas I can think of:
    1) Create multiple pivot tables and then display them one under the other
    2) Create multiple measure columns such as "male_amt", "female_amt", "white_amt", "asian_amt", "black_amt", etc. for all the columns you need. Then you could simple stack them in a single pivot table.
    Option #2 might give you the prettiest results - but also requires a lot more maintenance (for instance, if you reclassify ethnic groups, you'd have to go through the reports to add additional metric columns).
    Hope this helps,
    Scott

  • 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

  • Performance of OBIEE report whereas SQL query behind it executed in 1-2 min

    Facing lot of performance issues in OBIEE reports, whereas SQL query behind the report fetch data in 2-3 minutes. Reprot take around 1-2 hrs. Can anyone help to resolve this please?

    (my 2c worth)... if the physical query runs for a reasonably short time but the report takes much longer to return it suggests the rendering process (ie. pivot view) is lagging.
    To test this theory, go into Answers and remove all views from the request and leave a simple table view on the compound view. Run the report and the report should return around the same time the physical request takes to run because the table view is a very raw, un aggregated rendering process. Table views are nice and fast. If that works then you can focus on tuning your other views, ie. Pivot view. I've seen a simple pivot view take minutes to render what looks like a simple report because the underlying recordset is quite large.
    I hope this helped. another quick trick you could try is applying aggregation in the formulas to aggregate things at the physical sql level so the returning result set isn't 5,000. depends what you're up to with the end report.
    Edited by: user8300108 on 25-Feb-2010 04:40

  • How to use one report column into the another report in obiee

    How to use one report column into the another report in obiee

    i dont want to use column as a filter for another report it should be report column for another report
    Thanks,
    Vivek

  • Manually Edit a Query in OBIEE

    Hi,
    I am the DBA. I don't actually write the reports, but I see some queries running that are taking a very long time. I would like to change some parts of the query but my developers are telling me in OBIEE you can't manually change an auto-generated query. Is this true?
    I used to write crystal reports a while back, and while you linked tables and it generated the query for you, you could go into an advanced section and manually change the query/add things.
    Is that possible in OBIEE?
    I will give an example.
    We are setting NLS_SORT and NLS_COMP to support case insensitive searches. In the Where clause, we are doing something like this.
    Where CITY like concat(concat('%',':BIND VARIABLE'),'%')
    When the bnd variable is nothing, the query sees like '%%' which is causing the QUERY to run forever. I want to do something like this.
    REPLACEconcat(concat('%',':BIND VARIABLE'),'%'), '%%','%')
    Thanks

    You can directly run a query in OBIEE Answers using direct database request. But that is not recommended. To do that first that privelege has to be enabled in the Manage priveleges for Presentation server Administrators. By default it is disabled. Next you need to login into the answers as Administrator and you can write the sql and check the results there.
    I understand that you are trying to add that concat function to the where clause column. why dont you ask your OBIEE developers to make that change in the column formula or the column mapping and execute the query.
    In that way the tool generates the desired query for you instead of writing the query in the tool.
    Hope that helps
    thanks
    Prash

  • Using Sql Queries in OBIEE Reports

    Hi all,
    I need to use direct sql query in report function column.. How can I implement that.
    For example
    Our report name is /shared/Automotive/Vehicle Services/Most Serviced Vehicle Models
    we have to eliminate /shared/Automotive/Vehicle Services/ part from above report name.. I have done this in sql using the Query SUBSTR(COL,INSTR(COL,'/',1,4)+1).
    So kindly help how to implement above sql query in Obiee.. Urgent.
    Thanx in advance

    If "Report Name" is a column then you can simply create a custom formual and apply the substring logic to it to get at the single report name instead of the full path.
    Otherwise this logic can easily be accomplished within the RPD via a logic column expression.

  • Display Hyperion Planning celltext in OBIEE reports.

    Hi,
    The requirement is to display the Hyperion Planning comments entered in the forms on the corresponding OBIEE reports. I have been able to retrieve details about the author, note contents along with the corresponding dimensions by considering the following tables:
    1.HSP_CELL_NOTE
    2.HSP_CELL_NOTE_ITEM
    3.HSP_OBJECT
    4.HSP_USER
    But I am confused about the subsequent approach I need to take. How should the federation be done with the Essbase cube in the OBIEE repository? How should the comments be tagged to the specific OBIEE reports corresponding to the Hyperion Planning forms?
    I am using Hyperion Planning 11.1.2.2 and OBIEE 11.1.1.6.
    Any help is highly appreciated.
    Thanks and regards,
    Debarati.
    Edited by: Debarati SJ on May 29, 2013 12:06 AM

    Hi Celvin,
    Many thanks for your reply. But can you please elaborate on the steps?
    When I extracted data from Essbase (planning application), it does not generate ID columns for the dimensions that can be used to match with the HSP_OBJECT.OBJECT_ID. So I am not able to understand the logic behind joining the IDs.
    On the hyperion planning relational tables,I ran the following Query to retrieve the Note for comment and the corresponding Dimension members:
    SELECT HYPUSER.HSP_CELL_NOTE.NOTE_ID,
    HYPUSER.HSP_CELL_NOTE_ITEM.CONTENTS,
    HYPUSER.HSP_OBJECT.OBJECT_NAME AS Scenario,
    HYPUSER.HSP_OBJECT1.OBJECT_NAME AS Account,
    HYPUSER.HSP_OBJECT2.OBJECT_NAME AS Entity,
    HYPUSER.HSP_OBJECT3.OBJECT_NAME AS Period,
    HYPUSER.HSP_OBJECT4.OBJECT_NAME AS Version,
    HYPUSER.HSP_OBJECT5.OBJECT_NAME AS YEAR
    FROM HYPUSER.HSP_CELL_NOTE
    INNER JOIN HYPUSER.HSP_CELL_NOTE_ITEM
    ON HSP_CELL_NOTE.NOTE_ID = HSP_CELL_NOTE_ITEM.NOTE_ID
    LEFT JOIN HYPUSER.HSP_OBJECT
    ON HSP_CELL_NOTE.DIM1 = HSP_OBJECT.OBJECT_ID
    LEFT JOIN HYPUSER.HSP_OBJECT HSP_OBJECT1
    ON HSP_CELL_NOTE.DIM2 = HSP_OBJECT1.OBJECT_ID
    LEFT JOIN HYPUSER.HSP_OBJECT HSP_OBJECT2
    ON HSP_CELL_NOTE.DIM3 = HSP_OBJECT2.OBJECT_ID
    LEFT JOIN HYPUSER.HSP_OBJECT HSP_OBJECT3
    ON HSP_CELL_NOTE.DIM4 = HSP_OBJECT3.OBJECT_ID
    LEFT JOIN HYPUSER.HSP_OBJECT HSP_OBJECT4
    ON HSP_CELL_NOTE.DIM5 = HSP_OBJECT4.OBJECT_ID
    INNER JOIN HYPUSER.HSP_OBJECT HSP_OBJECT5
    ON HSP_CELL_NOTE.DIM6 = HSP_OBJECT5.OBJECT_ID
    Thanks and regards,
    Debarati.

  • Add Image column in classic sql report to open a pop page

    I have sql report I want to add a new column which will have image to click, Once user clicks the image a popup page should open.

    Hi Vikram,
    Sorry to bother you, I am very new to apex. Here is my sql query for sql report. Can you please help me.
    <xmp>select
    case
    when ISUPPORT_NUMBER is null or ISUPPORT_NUMBER = 'N/A' then '<a href="javascript:myFunc3(''' || MACHINE_NAME || ''')"><p style="font-weight:bold;color:#04B404;font-size:12px;">Enter SR Number</p></a>'
    else '<span style="background-color:red;font-weight:bold">'
    || ISUPPORT_NUMBER
    || '</span>'
    end ISUPPORT_NUMBER,
    case
    when ISUPPORT_NUMBER is not null and ISUPPORT_NUMBER != 'N/A' then '<a href="javascript:myFunc4(''' || MACHINE_NAME || ''')"><p style="font-weight:bold;color:#FF0000;font-size:14px;">'|| MACHINE_NAME ||'</p></a>'
    else '<a href="javascript:myFunc4(''' || MACHINE_NAME || ''')"><p style="font-weight:bold;color:#04B404;font-size:14px;">'|| MACHINE_NAME ||'</p></a>'
    end MACHINE_NAME,
    FUNCTION,
    VERSION,
    VENDOR_CLUSTER,
    case when used_by is null then '<a href="javascript:myFunc2(''' || MACHINE_NAME || ''')"><p style="font-weight:bold;color:#04B404;font-size:12px;">Avaliable</p></a>'
    when upper(used_by)=v('APP_USER') then '<a href="javascript:myFunc5(''' || MACHINE_NAME || ''')"><p style="font-weight:bold;color:blue;font-size:12px;">' || used_by || '</p></a>'
    else used_by
    end used_by,
    case
    when loaned_to is null and ( upper(used_by)=v('APP_USER') or used_by is null) then '<a href="javascript:myFunc(''' || MACHINE_NAME || ''')"><p style="font-weight:bold;color:#04B404;font-size:12px;">Avaliable</p></a>'
    when upper(used_by)=v('APP_USER') then '<a href="javascript:myFunc6(''' || MACHINE_NAME || ''')"><p style="font-weight:bold;color:blue;font-size:12px;">' || loaned_to || '</p></a>'
    else loaned_to
    end loaned_to,
    LOANED_TO_EXPIRY_DATE,
    LOAN_INFO,
    decode(SCAN_NAME,null,'<a href="javascript:myFunc3(''' || MACHINE_NAME || ''')"><p style="font-weight:bold;color:#04B404;font-size:12px;">More Details</p></a>','<a href="javascript:myFunc3(''' || MACHINE_NAME || ''')"><p style="font-weight:bold;color:#04B404;font-size:12px;">More Details</p></a>') SCAN_NAME,
    USERNAME,
    VNC_PASSWORD,
    LAST_UPDATED_BY , </xmp>
    <b>Here I want to add a image column where I can give a link like above to open popup </b>
    from install_dbqa_machines
    Edited by: Sivaramaraju on Jun 19, 2012 9:06 AM
    Edited by: Sivaramaraju on Jun 19, 2012 9:07 AM
    Edited by: Sivaramaraju on Jun 19, 2012 9:08 AM

  • Select query in a report

    Hi!
    Is it possible to modify a select query for a report in the following way:
    I have created two fields where users input values and operators.
    Operators selection is a static list consisting of: =, like , in
    Value field is a text field.
    The current query is:
    SELECT
    A,
    B,
    C
    from TABLE
    I would like to add:
    WHERE
    A : P1_OPERATOR : P1_VALUE
    but it doesn't work; I get a notification that the operator is incorrect.
    It has a defaulft value = and when I set let's say 5 in the value field the whole query should be:
    SELECT
    A,
    B,
    C
    from TABLE
    WHERE
    A = 5
    Regards!

    Hmm, I get the following error:
    Updatable report parse error:
    ORA-20001: Query must begin with SELECT or WITH
    The only difference I see is that your type is SQL Query (PL/SQL function body returning SQL query) while I have SQL Query (updateable report) hardcoded.
    I have APEX 4.2.2, I'm not quite sure how to change this...
    This is my code:
    begin
    :P7_QUERY := 'select ROWID,BNK_ID,MSR_PRD_ID,SRC_STM_ID,ID,ID_RETKA,RSP,OZNAKA_RETKA,DATUM_STANJA,OZNAKA_IZVJESCA,OZNAKA_KOMITENTA,MBR_KOMITENTA,KOMITENT_NEREZ,ZUPANIJA,DRZAVA,SEKTOR_NEREZIDENTA,VRSTA_POVEZANOSTI,INSTRUMENT,ISIN,VALUTA,OTKAZNI_ROK,IZVORNO_DOSPIJECE,VRSTA_INDEKSACIJE,VALUTA_INDEKSACIJE,PORTFELJ,UTRZIVOST_KREDITA,ZNACAJKE_KAPITALA,RIZICNA_SKUPINA,UGRADJENI_DERIVAT,ODNOSNA_VARIJABLA,PREDZNAK,IZNOS,IZNOS_ACTUAL,VRSTA_IZNOSA,KOMITENT_PBR,UDJELI_POVEZ_C,AR_ID,AU_ID,ACT_AR_BAL_KN,ACT_AR_BAL,AR_BUSS_ID,MTI_CCY_TP_ID,REG_NO,REG_SFX,JMBG_ID_NO,IP_ID,NO_DYS_OO,TAX_ID_NO,INSTRUMENT_OLD,PREDZNAK_OLD,IZNOS_ACTUAL_OLD,ACT_AR_BAL_KN_OLD,ACT_AR_BAL_OLD,NAPOMENA,NOVI_POSAO_F,LISTA_SUMARNA,LISTA_REKAP,POSTOTAK1,POSTOTAK2,POSTOTAK3,DZS_IDY_CL_ID,HNB_IP_CL_ID,EXG_RT_CRD_RSK_F from DWP.IZV_SLOG_DET
    where ' || :P7_X_FC1 || :P7_X_O1 || :P7_X_O1;
    return :P7_QUERY;
    end;
    I have also set Use Generic Column Names (parse query at runtime only) nad P7_QUERY as page item to submit.
    Regards,
    Ivan

Maybe you are looking for

  • My Archie boot is very slow on my laptop

    Hi guys. I have a serious problem cause my boot time is about 3 minutes. I think that something happened with ata02 but I am not sure. What I must do to check where is the problem and to fix it? My demesg is: Linux version 2.6.23-ARCH (root@T-POWA-LX

  • Anyone having trouble finding Quick Links to download OS X when license purchased?

    Purchased 2 licenses for Mountain Lion.  Got an email back with directions to do this: To install your software, you simply launch the Mac App Store, click "Redeem" found under Quick Links and enter your content code(s). The content codes from your p

  • Printer wont print. have new ink. trouble help say it ok but its not ok

    I HAVE A HPPHOTO SMART C5180 ALL IN ONE PRINTER. IT JUST STOP PRINTING SO I CHECK THE INK REPLACE IT WITH NEW INK AN NOW IT JUST WONT PRINT I TROUBLE SHOOT IT AN IT SAY ITS OK BUT IT STILL DONT PRINT . I ALLSO REPLACE IT WITH NEW PAPER AN IT STILL DO

  • Problem Loading Lightroom

    Hello everyone, Recently my installation of lightroom has stopped loading giving this error message: Adobe Photoshop Lightroom 5 cannot be opened because of a problem. Check with the developer to make sure Adobe Photoshop Lightroom 5 works with this

  • Rename a tab in MIRO

    Hello. We're adding text to tab "note" in MIRO but there is no hint if text is there. So the users have to switch to the tab to check if there ist text inside. Our idea is to add an Icon or rename the tab if text is inside. Doe's anyone know where th