WHERE condition in OBIEE 11g

HI gurus,
                How can I use a WHERE condition in obiee 11g in the Column formula or in the BMM layer in the repository .
Thanks in advance
Reg,
Niv

Hi,
In the Column formula, the functions like Case When clause (Category: Expressions) can always be used in the building the expression.
For the above, there is always two options
1. Derived from Physical Mappings - this will list only the physical tables that are pulled into the LTS of the logical table
2. Derived from existing columns using an expression - this will list all the Logical tables in the RPD
If you want to apply the filter i.e where clause on the entire table, then go to Content Tab of the LTS
Enter your WHERE clause filters in the section - Use this "WHERE clause".....
The above modifications will apply where clause on all the columns
Please mark if it is helpful
Srikanth

Similar Messages

  • Convert WHERE condition to OBIEE using available OBIEE function

    I have this WHERE condition which has to be attached to a Logical Table Source (Content Tab). This condition exists in my BO Universe and has to be applied to my OBIEE project.
    TRUNC(SYSDATE) >= NVL(QP.QP_LIST_LINES.start_date_active, TRUNC(SYSDATE))
    AND TRUNC(SYSDATE) < NVL(QP.QP_LIST_LINES.end_date_active,TRUNC(SYSDATE)+1)
    Using the functions in OBIEE, I ended up with this WHERE condition but seems not to work because when I compared the results, they are different.
    CURRENT_DATE >= IFNULL(ABCDE."Price List Lines"."Item Start Date", CURRENT_DATE ) AND CURRENT_DATE < IFNULL(ABCDE."Price List Lines"."Item End Date", CURRENT_DATE + 1)
    Please help me correct this.
    Thank you in advance.
    Message was edited by:
    user595459

    Hi, The TIMESTAMPADD function helped. I will take note of this. It's now working but noticed the performance (generating the report) is taking a long time. Would appreciate your advice. Thanks.

  • Issues with less than and grater than condition in prompts in OBIEE 11g,

    Hi all,
    i am facing the prombles with less than grater than conditions in OBIEE 11g.
    i created two date prompts with presentation variables datefrom and dateto
    and i used these prompts in fileters like this using grater than and less than symbol.
    filters are as below:
    lastupdated date is grater than or equal to @{datefrom}{1/1/1950}
    lastupdated date is less than or equal to @{dateto){1/1/1950}
    and created two prompts
    creation datefrom >=
    creation dateto<=
    when i passing the dates 05/12/2004 and 05/12/2005 in prompts after clicking the apply button in OBIEE 11g it feches all the records but i need records between these dates. and one more thing is after clicking apply button the two date fields getting the same date..
    am i do any thing wrong in the above ???
    please let me know friends..
    waiting for ur replyyyyyy..
    Thanks
    Edited by: BI_user on Oct 12, 2011 2:10 AM

    Hi,
    Create date prompts with operator as = not >= (or) <= as you need to save that value in presentation variable and you are filtering report using those variable filters.
    Regards,
    Srikanth

  • Can I set a conditional format as default in OBIEE 11g?

    Hi,
    I would like to set all positive number be (green) and negative number be (red) for all tables in Analytics Web (OBIEE 11g). Apart from create conditional format for every tables, is there any way to set once only and apply for all reports?

    Hi User,
    You can set system wide default by clicking on the button in conditional format tab.
    *Make sure user has "Save System-Wide Column Formats" privilege to enable the option.
    Regards,
    Dpka

  • Where to change the hyperlink of the logo in OBIEE 11g?

    Hi all,
    The title explains the question. Does anyone know the answer for it?
    Thanks in advance.
    -Amith.

    In OBIEE 11g the Logo in the upper-left corner does not have an AHREF reference or tag.
    The only way to change this is to modify the actually header template XML file for the header.
    This should be easy enough to find.

  • Error while using between operator with sql stmts in obiee 11g analytics

    Hi All,
    when I try to use between operator with two select queries in OBIEE 11g analytics, I'm getting the below error:
    Error Codes: YQCO4T56:OPR4ONWY:U9IM8TAC:OI2DL65P
    Location: saw.views.evc.activate, saw.httpserver.processrequest, saw.rpc.server.responder, saw.rpc.server, saw.rpc.server.handleConnection, saw.rpc.server.dispatch, saw.threadpool.socketrpcserver, saw.threads
    Odbc driver returned an error (SQLExecDirectW).
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 43113] Message returned from OBIS. [nQSError: 27002] Near <select>: Syntax error [nQSError: 26012] . (HY000)
    can anyone help me out in resolving this issue.

    Hi All,
    Thank u all for ur replies, but I dint the exact solution for what I'm searching for.
    If I use the condition as
    "WHERE "Workforce Budget"."Used Budget Amount" BETWEEN MAX("Workforce Budget"."Total Eligible Salaries") AND MAX("Workforce Budget"."Published Worksheet Budget Amount"",
    all the data will be grouped with the two columns which I'm considering in the condition.
    my actual requirement with this query is to get the required date from a table to generate the report either as daily or weekly or monthly report. If I use repository variables, variables are not getting refreshed until I regenerate the server(which I should not do in my project). Hence I have created a table to hold weekly start and end dates and monthly start and end dates to pass the value to the actual report using between operator.
    please could anyone help me on this, my release date is fast approaching.

  • MINUS Operator in OBIEE 11g

    Hi all ,
    I have a requirement to use MINUS operator in a column of a report . Since it is available for two separate criteria , Could someone suggest how to perform the same in OBIEE 11g for a column.
    the conditions to be implemented in a column are
    select count(*) from ( 
    select distinct trx.shipment_header_id
    from   
    F_ERP_PO_RECEIPTS_TRX trx
    where   trx.transaction_type = 'RECEIVE'
    MINUS
    select distinct rec.shipment_header_id
    from   
    where   trx.transaction_type = 'DELIVER').
    How can i perform these conditions for a column of a report .
    Reg,
    Niv D

    Hi Niv D,
    I guess this can be done as we have union, union all and minus available.
    once you select the required subject area say SA for the below query,
    select distinct trx.shipment_header_id
    from 
    F_ERP_PO_RECEIPTS_TRX trx
    where   trx.transaction_type = 'RECEIVE'
    on the right side of the criteria you can see a + symbol with venn diagram. once you click on it, it gives you an option to select the next SA for
    select distinct rec.shipment_header_id
    from 
    where   trx.transaction_type = 'DELIVER').
    once you selected that, you can see the criteria changes accordingly.
    there you change to union or minus.
    once you have the conditions for both, make the layout as pivot and apply count on the column. you are there with the result,
    I tried earlier with union but not with minus. but this should work.
    Regards,
    KN
    ebs2obiee.wordpress.com

  • External Table Authentication in OBIEE 11g

    Hi ,
    I have a security table, which contains userid,displayname,group . I have imported Security table in Physical Layer. I'm creating session variables based on condition.
    When am trying to logging into analytic s getting an error, invalid username and password . I'm using 11.1.1.6.0 version
    How to handle external table authentication in OBIEE 11g version.
    Regards,
    Malli

    Hi fiaz,
    That links talks about 10g version.
    Step1: We have imported a secutiry table in Physical layer.
    Step2: Creating a session variable by selecting initilazation block.
    Select user_name,group from security_table where user_id=':USER' and pwd=':password';
    step3: created DISPLAYNAME,GROUP & USER VARIABLES in edit target window
    After these modifications i was trying to logging with new user, which is there in security table.
    I am getting an error that is invalid user or password.
    Is there any other changes does it required here.
    Regards,
    Malli
    Edited by: user10675696 on Dec 26, 2012 9:39 PM

  • Invalid subscribers skipped in  OBIEE 11g

    Hi,
    I have requirement to send reports to non OBIEE users in Obiee 11g, i created the report with email ids and and i configure the delivers, i am able to send the report to obiee users, when i create the agent Delivery Content as Conditional Analysis Recipients     as Get Recipients from the Analysis Used in the Agent Condition_ when i run the agent its saying that AgentID: /shared/Common/AGENT_MAIL_21_2
    Invalid subscribers skipped: [email protected],
    Plz tell me why i am getting this error,i am able to send emails the obiee users, but when i select the Get Recipients from the Analysis Used in the Agent Condition then only i am getting this error.
    Thanks & Regards,
    Ayubjani Shaik

    "AgentID: /shared/Common/AGENT_MAIL_21_2
    Invalid subscribers skipped: [email protected]"
    Well, is "[email protected]" a valid user of one of your security realms? And this is literally the question: is this email address a valid user id? Or are you just passing an email and thinking it will work whereas the actual uid is something like "ayub"?

  • How to build a Analysis report in OBIEE 11g

    Hi All,
    I have a query regarding 'How to' to build an analysis report in OBIEE 11g.
    The data model is a financial data model, where information such as Actual, Plan, Forecast, What - if etc for current AND prior year need to be displayed in a dashboard.
    I created two analysis reports one for current year Rep1 and second for prior year Rep2 each with filter criteria as current year and prior year respectively based on years column. and then in the dashboard I created prompt based on scenario column (radio button) for Actual, plan, Forecast, and wht if.
    I am able to show the current vs prior year data in the same dashboard for Actual or Plan or forecast or what if (depending on data availability in the database).
    I want to achieve the same information in a single analysis report instead of two separate analysis reports. I do not want to create separate physical report for current and prior year data.
    I need one analysis report which I can use in dashboard and depending on selection for scenario (actual , plan, forecast or wht if) I want to show the current AND prior year data the way I achieved in with two seperate reports embedded in their respective sections as explained above.
    Does any one have idea how to achive this by building single analysis report?
    If you need any more clarificaiton or have any queries, please let me know.
    Thanks and Regards
    Santosh

    As per I understand your requirement,
    In your Dashboard create a Presentation variable which receives the value of year you select.
    Now in your analysis, select the year column along with all the measures you want (Actual, plan, Forecast, and what-if, etc).
    Create a filter on Year column and convert it into SQL. Put the condition as:
    "Year" BETWEEN @{Presentaion_Variable} - 1 AND @{Presentation_Variable}
    You will get the result for selected year and the previous year.
    Hope it helps..
    Regards,
    A.K.

  • OBIEE-11g Double columns question

    Hi guys, on my pc i've installed business intelligence suite 11.1.3 and now I need support about double columns feature. In the business model I've this hierarchy
    Region -> Province -> Municipality
    where the keys for each level are represented by the name of the element, the problem is that this keys are used to map geometric shapes to enable the map views features and the Municipality values are ambiguous in their domain (could exist two municipality with the same name but different province) in the official documentation is wrote that to unique identify a shape should be used a double columns field but when I 'apply the double field feature to the hierarchy levels the drill feature doesn't work properly and I get a strange filter error (seems that the system filter the value by id on the wrong field). Somebody could help me to understand if I can define a hierarchy where the keys have a descriptor id associated ?
    Thanks a lot Regards

    I 've also come up with the same issue. I am using OBIEE 11G (11.1.1.5.0) and Oracle Mapviewer Ver11_1_1_4_B110225.
    On the RPD, My hierarchy is defined as: District -> Quarter -> Neighbourhood.
    For each hierarchy level I am using:
    District Logical Level keys:
    District Id: Primary Key
    District Name: Use for Display
    Quarter Logical Level Keys:
    Quarter Id: Primary Key
    Quarter Name: Use for Display
    Neighbourhood Logical Level Keys:
    Neighbourhood Id: Primary Key
    Neighbourhood Name: Use for Display
    I need to associate each Mapviewer theme's ID (District ID, Quarter ID, Neighbourhood ID) with a relevant BI column, because the theme names are not distinct.
    I have set the double column (Descriptor Id) feature: (District ID, Quarter ID, Neighbourhood ID) on each BI name column (BI Distict Name, BI Quarter Name, BI
    Neighbourhood Name) of the business model and associated the layer key (ID) of each Mapviewer theme with the corresponding BI name column.
    On the map view, drilling down from District to Quarter works properly, but I get the following action error while drilling down from quarter to neighbourhood:
    An error occurred while trying to generate drill down query.
    Odbc driver returned an error (SQLExecDirectW).
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 43113] Message returned from OBIS. [nQSError:
    46036] Internal Assertion: Condition rowValues.size() == numColumns, file server\Query\Src\SQNavigatorAccess.cpp, line 495. (HY000)
    SQL Issued: {CALL NQSGenerateDrillDownQuery('SELECT District Name saw_0, Quarter Name saw_1, DESCRIPTOR_IDOF(District Name) saw_2, DESCRIPTOR_IDOF(Quarter Name)
    saw_3 FROM "Subject Area" WHERE DESCRIPTOR_IDOF(District) = 5','1','''5'',''31'',31','-1 -1 -1 -1 -1','0,2,3')}
    However, if I add a table view on my analysis and click on the table view's quarter link, drilling down works ok both for the table and for the map view.
    Moreover, I tried removing the double column (descriptor Id) feature from the business model while maintaining the hierarchy as described above.
    I then associated the layer key (ID) of each Mapviewer theme with the corresponding BI ID column instead of the BI name column.
    On the map view while drilling down from District to Quarter, a filter to a specific District is applied, but the associated Quarters theme is not displayed.
    Finally, if I enable the "Use for Display" checkbox for each hierarchy level's primary key on the RPD, and maintain the association between the layer key (ID) of
    each Mapviewer theme with the corresponding BI ID column, drilling down works correctly but only on the ID.
    I need drilling down to work while clicking on the each name BI column of the hierarchy while defining the association on the layer key ID of each mapviewer
    theme. Is this possible? Any ideas?

  • OBIEE 11g - Fusion Middle ware control and BI Publisher not launching

    Hello
    I have successfully installed OBIEE11G but the installation has not been stable. Sometimes I find all three components 1) web logic 2) fusion middle ware control and 3) bi publisher
    whereas most of time, only weblogic console is coming up.
    When I tried to manually start the fusion middleware deployment it gives following error
    weblogic.management.DeploymentException: [J2EE:160149]Error while processing library references. Unresolved application library references, defined in weblogic-application.xml: [Extension-Name: adf.oracle.domain, Specification-Version: 1, Implementation-Version: 11.1.1.1.0, exact-match: false], [Extension-Name: oracle.webcenter.skin, exact-match: false].And how do I start bi publisher services. Currently when I launch BI Publisher I get following
    Error 404--Not Found
    From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1:
    10.4.5 404 Not Found
    The server has not found anything matching the Request-URI. No indication is given of whether the condition is temporary or permanent.
    If the server does not wish to make this information available to the client, the status code 403 (Forbidden) can be used instead. The 410 (Gone) status code SHOULD be used if the server knows, through some internally configurable mechanism, that an old resource is permanently unavailable and has no forwarding address.The URLs by standard installation is given below
    WebLogic Console
                   http://localhost:7001/console
              Oracle Enterprise Manager
                   http://localhost:7001/em
              Business Intelligence Enterprise Edition
                   http://localhost:9704/analytics
              Business Intelligence Publisher
                   http://localhost:9704/xmlpserverThanks,
    R

    Hi,
    After complete installation of obiee 11g
    step 1 :- start the listener and services manually
    step 2 :- Start BI services from all programs/Business intelligence/start bi services.This enables you to start OPMN,Node manager,BI server,Presentation server,BI Publisher server
    This is the method i do follow for starting up.If you want to individually start and stop the services go to FM EM console and BI foundation in that capacity management in that screen you can start or stop.The URL's mentioned are correct with their default port numbers.
    Hope helps you.
    Cheers,
    KK

  • Filter Grouping not working for OBIEE 11g

    Hello!
    I need some help on the below:
    I have built a simple report in OBIEE 11g with FILTER grouping on two dimensions as below:
              Operative Hierachy is equal to Europe, IMEA, APAC, China Focus Country, Americas, US and Canada
         and      Accounts is equal to Net Sales (i), Gross Margin (i), GM% (i)
    or
              Accounts is equal to Gross Margin, Net Sales, Gross Margin %
         and      Operative Hierachy is equal to / is in Organizations Total
    The report was working as expected; but now suddenly it's showing no results with the error "+The specified criteria didn't result in any data. This is often caused by applying filters and/or selections that are too restrictive or that contain incorrect values.+" - even though data is present ! - I have tested this by splitting it into two reports (with only the AND conditions)- which is then woking as expected.
    Points to note:
    --There had been no change on the Report, when it stopped showing results.
    --I have tested this filter grouping with other dimensions- & they are working fine.
    --The OBIEE reports are fetching data from ESSBASE cube.
    --Only thing which I can remember when it stopped working is that, there had been a data load on the ESSBASE cube. But other reports using these dimensions are working.
    Has anyone faced the same issue before. Please help.
    Edited by: Anu on Jan 22, 2013 12:31 AM

    Hi User, Vijay,
    Yes I have checked the generated SQL queries and the MDX queries as well. Both queries are generated as expected, but returns no result.
    But now I have found out how these two different dimensions are different from my other dimensions. Only these two dimensions have a SORT order logical column defined in the BMM layer- which I think is causing the problem, BI Server not able decide which column to sort. So, the sql gives result when I cimment out one of the SORTKEY
    SELECT
    0 s_0,
    "PSS Essbase"."Accounts"."Accounts" s_1,
    "PSS Essbase"."Operative Hierarchy"."Operative Hierachy" s_2,
    -- SORTKEY("PSS Essbase"."Accounts"."Accounts") s_3,
    SORTKEY("PSS Essbase"."Operative Hierarchy"."Operative Hierachy") s_4,
    "PSS Essbase"."Facts"."Measure" s_5
    FROM "PSS Essbase"
    WHERE
    ((("Operative Hierarchy"."Operative Hierachy" = 'Europe') AND ("Accounts"."Accounts" = 'Gross Margin'))
    OR (("Operative Hierarchy"."Operative Hierachy" = 'Russia Focus Country') AND ("Accounts"."Accounts" = 'Sales ASP')))
    ORDER BY 1, 5 ASC NULLS LAST, 4 ASC NULLS LAST
    FETCH FIRST 65001 ROWS ONLY
    Any views on what happens when we use two dimensions in the same report which have sort columns defined in the repository...

  • Creation of report in OBIEE 11g

    Hi
    I need to create a reportin dashboard
    so, i added page for this, but where i can found subject areas in OBIEE 11g so that i can create a report on this page based on that subject area.
    can anyone help me in this.
    Thanks
    Mannu

    Manu,
    For Creating New Reports,
    1.Got to -> New ->Analysis you will have your Presentation Tables under Select Subject Area
    Click on your Subject Area -> you'll get list of tables under the Subject Area
    2. Expand the Folders and click the required column.
    3. Click on Result tab - > you'll get Title and Table View
    4. Format your Table view and Title View
    5. Save your New Report in Shared Folders (You may create your own folder under Shared folder)
    View the Reports on Dashboard.
    1.Got to -> New ->Dashboard -> you will have New Dashboard Window
    Name - Give the name of your Dashboard
    Select Location - /Shared Folders/Standard Dashboard/
    Click Ok -> you'll get Empty Dashboard window.
    2. Edit the Dashboard -> Drag and Drop your Saved reports from Shard Folder under Catalog
    3. Click on Save button (Top Right) and save your dashboard -> click run [Green right Arrow(Top Right)].
    4. Now you'll have your report in your dashboard page.
    Rename Dashboard Page
    Edit the Dashboard - > Click Properties Nedt to X Symbol -> Dashboard Properties
    -> You'll have the Dashboard Properties window -> Select the Dashboard Page -> Rename
    Prompts:
    1.Got to -> New ->Dashboard Prompt-> you will have your Presentation Tables under Select Subject Area
    Click on your Subject Area -> you'll get the Untitle Prompt Window
    -> Click + symbol -> Column Prompts ->you'll get list of tables
    2. Expand the Folders and click the required columns from the list (the Columns should be your Report's table).
    3. Save your New Prompts in Shared Folders.
    Note: The Prompt columns should be Is Promptd in your Reports Filters.
    Thanks,
    Balaa...

  • Applying decode function in obiee 11g

    DECODE(A.AC_CCY,'INR',DECODE(DRCR_IND,'D',-1,1)*A.LCY_AMOUNT,DECODE(DRCR_IND,'D',-1,1)*A.FCY_AMOUNT),
    DECODE(DRCR_IND,'D',-1,1)*A.LCY_AMOUNT,
    Can any one help me how to decode the above sql statement in obiee 11g.
    Edited by: 925104 on Apr 3, 2012 12:48 AM

    you can achieve it by using CASE WHEN condition END function in obiee. nested case also supported by obiee.
    check the below link Decode Join  Condition in OBIEE RPD
    Thanks
    Jay.
    Edited by: Jay on Apr 3, 2012 12:56 PM

Maybe you are looking for

  • Can't Sync Music after installing OS4 on brand new ipod

    Bought a new 8gb touch today, apps all moved over fine but anytime try to sync music manually or automatically, I get message error occured and Itunes shuts down. Have reinstalled itunes to no avail and tried using a different cable. Tried to restore

  • My mac wont start up. please help

    hi, i wanted to reinstall osx panter as my computer was running really slow. I put the disc in ad my mac restarted. It now wont start upat all. i've tried holding down shfit and c abd still nothing happns.I can not get the disc out as i have a mac mi

  • Productwise discount against Letter of Credit.

    Dear All I m shujaat would u plz tell me that how can i give discount product wise against letter of credit like within 30 days 2% percent  in referigertor a.c microwave water dispenser and vaccume cleaner but in air conditioner a 4 % discount within

  • Including document in Attachment of IP_MESSAGE_TYPE to B2B

    Dear Reader, I am using SOA suite 10.1.3.4. and B2B 10g configured in Suse. I have made a BPEL proces that enqueues messages using an AQ adapter to the B2B database. For this I need to fill in the IP_MESSAGE_TYPE (payload header) that is required by

  • Cloning VMs from a single VM which is Member of Domain

    Hello There, I have a VM which is got XenApp application server role and we have done lot of testing for each and every applicaiton which will be published through it, now this VM is completely ready. We would like to clone this VM and create multipl