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

Similar Messages

  • About the filter function in OBIEE 11g

    Hi, all.
    when i use the filter function in OBIEE 11g, it turn out a wrong result.
    The operation steps and detail are described as follow:
    1. In the Column Formula pane, I typed the Formula of the column 'count of customer' as:
    FILTER(count(distinct("customer info dimesion"."customerID")) USING ("TradeType Dimesion"."TradeType" = '001'))
    2. But the phisical SQL about this column in the NQquery file is that: "count(distinct(T11520.CUSTOMERID)) as c5, "
    which means that, the filter wasn't applied, right?
    If so, what shall I do in this situation, in other words , how can i make a Condition COUNT?
    Any Suggestion is appreciated!
    Thank you in advance~~O(∩_∩)O~

    Hi katherine,
    FILTER(count(distinct("customer info dimesion"."customerID")) USING ("TradeType Dimesion"."TradeType" = '001'))I think your formula there is mistake like many braces...instead type this in your f(x)
    =>Filter(count(distinct customer_id) USING trade type='001')
    This filter function is same like a case statement,if you filter still gives error write a case statement
    CASE WHEN TradeType Dimesion.TradeType='001' THEN count(distinct customer info dimesion.customerID) ELSE 0 END
    Will it be helpful?,follow this etiquette http://forums.oracle.com/forums/ann.jspa?annID=939
    By,
    KK

  • Converting Decode function in OBIEE

    Hi Guru's
    we are converting some BO reports to OBIEE and need to convert Decode function
    Below is the Decode function they are using:
    Decode ( sign(nvl(BOOKINGS_DATA_UDTC.qty_shipped,0)), 0,decode(BOOKINGS_DATA_UDTC.DELIVERY_NUMBER, 0,decode(BOOKINGS_DATA_UDTC.Schd_Ship_date_fk,to_date('1/1/1990','mm/dd/yyyy'),'Next Month Backlog',decode(sign(nvl(BOOKINGS_DATA_UDTC.Schd_Ship_date_fk, '01-JAN-90') -PAR.PAR_DATE), 1, 'Next Month Backlog', 'Current month will ship')) ,'Awaiting for collection') ,'MTD Shipped')
    i have tried converting into case :
    case when sign(IFNULL("BOOKINGS_DATA_UDTC"."Qty Shipped",0)) = 0 then (case when "BOOKINGS_DATA_UDTC"."Delivery Number" = 0 then (case when "BOOKINGS_DATA_UDTC"."SCHD_SHIP_DATE_FK" = '01-JAN-1990' then 'Next Month Backlog' else (case when Timestampdiff(SQL_TSI_DAY, cast('@{ParDate}{28-DEC-2012}' as Date),(case when "BOOKINGS_DATA_UDTC"."SCHD_SHIP_DATE_FK" IS NULL then CAst('01-JAN-1990' as DATE) else "BOOKINGS_DATA_UDTC"."SCHD_SHIP_DATE_FK" end)) > 1 then 'Next Month Backlog' else 'Current Month Will Ship' end) end) else 'Awaiting For Collection' end) else 'MTD Shipped' end
    But it is not workign as expected.
    Can some one please help me with this.
    Thanks,

    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

  • Issues with integrating Java script functions in OBIEE 11G

    Hello experts..
    I am trying to integrate some Javascript functions in my OBIEE 11G Dashboard..
    I have modified the original common.js file and renamed it as insight_common.js in the following directory (backed up the original file of course)
    OBIEE 11G Folder/user_projects/domains/bifoundation_domain/servers/bi_server1/tmp/_WL_user/analytics_11.1.1/7dezjl/war/res/b_mozilla/insight_common.js
    In my dashboard, I have a dashboard object as text component where I have checked 'Contains HTML Markup'. I have written the following code:
    hello
    <script src="/res/b_mozilla/insight_common.js" type="text/javascript"></script>
    <script type="text/javascript">
    sayHi();
    </script>
    However, when I launch the dashboard, it is not working.
    In the Google Chrome browser as I inspected the element to investigate the reason, I am getting the following error under 'console'
    Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost/res/b_mozilla/insight_common.js
    Uncaught ReferenceError: sayHi is not defined saw.dll:611
    It seems that OBIEE is not recognizing the new file that I made..
    Is there a way around this?
    Thanks

    Srini
    I don't have backgrounds in coding, so a lot of what I wrote came from my own researching...
    Now I have tried your latest suggestions again as the below:
    1.<script type="text/javascript" src="res/b_mozilla/insight_common.js">
    sayHi();
    </script>
    and
    2.
    <script type="text/javascript" src="res/test.js"></script> ----- in my case: <script type="text/javascript" src="res/b_mozilla/is_common,js"></script>
    Now both codes this time do not yield any outputs when launching the dashboard. The section is blank and the preview of the Text section in the dashboard is blank as well..
    So, are you sure these are all the steps I need to take to call javascript function in OBIEE?
    Do I need to define anything in weblogic or other places?
    I hope I am not missing any steps..
    Thanks and let me know..

  • Reporting Error while Restart to apply Recent Changes in OBIEE 11g in EM

    Hi Friends,
    I tried to open my rpd in online mode in OBIEE 11g, For that i went into EM for getting my rpd updated...
    So after all doing changes, I need to restart for applying changes, so I restarted the system components
    But only 80% of it started, remaining 20% is showing error and these are the error details
    "Restart failed with 2 errors: problems reported by coreapplication_obis1, coreapplication
    see detailed logs for more information"..
    The above is the error message that i got..
    The below are the log messages that reported error
    Message type: Error
    Message ID : -
    Message : SEVERE:Element type:BI_instance,element_id:coreapplication,operation result:failed_to_start, detail Message-Error in starting one or more components of Bi instance; please check the server log files for detailed information..
    Target : biadmin services(11.1.1)(Admin server)
    Target type : application deployment
    Log files : Admin server_diagnostic.log
    Message type: Error
    Message ID : -
    Message : SEVERE:element type:process, element Id: coreapplication_obis1, operation result: failed_to_start, detail message- operation failed: start; oracle instance: instance4; component; coreapplication_obis1;msg: 0 of 1 processes started..
    Target : biadmin services(11.1.1)(Admin server)
    Target type : application deployment
    Log files : Admin server_diagnostic.log
    Message type : Error
    Message ID : EM-02694
    Message : Supplementary information regarding operation: BI_instance:coreapplication; failed_to_start; error in starting one or more components of BI instance; please check server log files for detailed information..
    Target : em(Admin server)
    Target type : application deployment
    Log files : emoms.log
    Message type : Error
    Message ID : EM-02694
    Message : Supplementary information regarding operation: PROCESS:coreapplication_obis1; failed_to_start; operation failed: start; oracle instance:instance4;component:coreapplication_obis1;msg 0 of 1 processes started..
    Target : em(Admin server)
    Target type : application deployment
    Log files : emoms.log
    how to solve these errors, because of this i couldn't able to open my repository in online mode as well as cannot able to update my .rpd file in presentation services in obiee 11g..
    I couldn't able to understand the error that is pointing to me....
    Help me friends..........
    Regards,
    Harry...

    It's myself harry and i solved this problem, since this problem occurred for me as i tried to update my repository.rpd file for more than 5 times because of the error that it reported to me in my previous post...
    How i solved this error means, i deleted all the other .rpd files(out of 5 i deleted 4) and i made some changes in my rpd file in the administration tool and after that i tried to update my rpd in EM..
    Once it updated, then i gave restart to apply recent changes, after that my system components tempt to work as of 100%...
    Anyway friends thanks for your views.....
    Cheers
    Harry...
    Edited by: HariPrasad on Nov 13, 2010 2:59 AM

  • MouseOver functionality in OBIEE 11g

    Hi,
    I have a requirement to have tool tip, when we keep mouse on columns in report/dashboard,
    can anyone help me to acheive this in obiee 11g.
    Thanks in advance,
    mahi.

    Hi Kobe,
    No P2 holds the parameter name like PresentationTable.ColumnName, in your form you may go for complete name or just column name and before submitting the form you can define the Action url.
    I would suggest to read section 6.3.2.1.
    ex:
    <SCRIPT LANGUAGE="JavaScript">
    changeAction(url) {
    var TestVar = form.inputbox.value;
    document.this_form.action="saw.dll?Go&Path=/Shared/Test/SB2&Action=Navigate&P0=1&P1=like&P2=Customers.Region&P3="+TestVar;
    </SCRIPT>
    </HEAD>
    <BODY>
    <FORM NAME="myform" ACTION="" METHOD="GET">Enter something in the box: <BR>
    <INPUT TYPE="text" NAME="inputbox" VALUE=""><P>
    <INPUT TYPE="button" NAME="button" Value="Click" onClick="changeAction(this.value)">
    </FORM>
    If helps pls mark.
    Edited by: veeravalli on Oct 24, 2012 10:25 AM

  • Applying a patch to OBIEE 11g

    Hello Everyone,
    I am new to OBI and specially new to 11g, Now most of you guys will know that there was a bug in 11g in which if you want to see the query generated by the report in session log, It shows "no log found". Now there was a patch available which i have downloaded and i am not so sure as to how to apply that patch to OBI, I tried all the steps given in the read me doc provided with the doc. but all in Vain, as it is very confusing and more importantly it doesnt work,
    Can any one help me out here by telling me the actual steps involved.
    Thanks,

    Try the following -
    1. cd to oracle home folder\opatch
    set oracle_home=your home directory (iethe parent of opatch\ folder)
    opatch lsinventory -patch -detail
    The last command should run and say "opatch successful".
    Now run the command:
    2. opatch apply -verbose "your patch folder's complete path"
    (verbose tells u the sequence, success or errors if any)
    OK - now,
    3. The patch on my PC failed saying that I needed to install the latest opatch. I downloaded the latest opatch (11.2 even though the patch (ie the "no log found" patch) requires 11.1.0.8.2 or something) and just extracted it to the oracle home folder - yes, it will overwrite the current opatch folder, so back it up before you copy the latest opatch folder.
    4. After this, I ran the command again from step 2 again. It seemed to be running, ie somewhat successful, but it asked for my oracle support login, some proxy server crap so it could connect to the internet, also gives options to specify "NONE" if you didn't need all this - but never came back...at that point, I quit. I tried again and it got stuck at the same point - so, I wasn't sure if it succeeded or not.
    5. I assumed the patch ran OK and tried to view the log - but this time it gave a different error "it is not a Win32 application" or something like that. I am sure that I downloaded the win32 patch only. Yet, I am going to check and try it out again tomorrow.
    Let me know if it worked for you and the details.
    Hope all this helps :-)

  • TODATE time series function in OBIEE 11g

    Hi,
    I have a problem with time series function. I have month level in time dimension hierarchy.
    I have used below expression to get month to date results in my reports.
    column
    expression----> TODATE(fact.measure, hierarchy.Month level);
    when i am using this column in my reports it is showing null values. The below error i am getting in view log files
    ----------------> Converted to null because it's grain is below query's grain
    Note: Here i have measures, year,qtr,month,day,shift,hour in single physical table in physical layer.
    Is it a problem to have measures and time columns in a single physical table?
    Please let me know if you have any solution.
    Thanks,
    Avinash

    Yes, it shud be a prob. Try using seperate tables for fact n timedim

  • RE:Date Function in Obiee 11G Rpd

    Hi
    I had a Time Dimension, I need to show only the data from Jan 2012 to 2 months after from the current Month(Dynamic)
    Can any body tell me how to write this in rpd using rpd functions?

    You can create a dynamic repository variable that gives current month+2 months. Use this variable in the filter where you want to filter from 'Jan 2012' till that variable.
    Variable need to be in the same format that you have 'Jan 2012'.
    Pls mark if helpful/correct.

  • How to use CAST function in obiee 11g in rpd

    Hai,
    I am trying to use the cast fucntion in rpd in bmm layer for a new logical column that I have created and is giving me error compile message.
    Can any one please help me out or find out what is wrong in the function I am using.
    The expression I am trying to use is
    ( CAST ( "Chase Card Acquisition"."Fact Deposit"."Base Earn" as decimal(18,0) ) + "Chase Card Acquisition"."Fact Deposit"."Tot Bonus Earn" )

    Decimal is not a supported type in the logical layer. See:
    http://docs.oracle.com/cd/E21764_01/bi.1111/e10540/sqlref.htm#BIEMG559
    for supported types.
    If you are casting as Int then do not specify the precision ('cast x as int' NOT 'cast x as int(y,z)'). Regards,
    Robert

  • OBIEE 11g Writeback Error

    Hi All,
    I am unable to configure the writeback functionality in OBIEE 11g, i am getting error while pressing Apply button in the report no error message is displayed in the error box only 2 ok buttons.
    Folder customMessages doesn't exist:
    "ORACLE_INSTANCE/bifoundation/OracleBIPresentationServicesComponent/coreapplication_obipsn/analyticsRes/customMessages"
    so i created the folder and added the writeback xml file to the folder.
    is there is any way to check the error.?

    Hi,
    Please check if you have followed the following steps mentioned:
    http://obiee10grevisited.blogspot.in/2012/02/write-back-in-obiee11g.html
    Regards
    MuRam

  • Decode function issue / problem ..

    Dear Sir / Madam,
    Thanks for your understanding.
    Right now I am facing a unique problem.
    I am using decode function in a select statement. The columns are dynamic some columns are of type number and some are varchar datatypes. I want to apply decode function for every column irrespective of datatype.
    What i am finding difficult is if the column is a number datatype , the decode funciton is working good but if the column datatype is varchar or char datatype then i am getting ..the error ..
    report error:
    ORA-01722: invalid number
    here's the decode function..
    decode (CHAI.EVNDRIVE,
    -800000000000000,'.A',
    -700000000000000, '.B',
    -600000000000000 ,'.C',
    -500000000000000 , '.D',
    -400000000000000 , '.E',
    -300000000000000 , '.F',
    -200000000000000, '.G',
    -100000000000000 , '.H',
    -1000000000, '.R' ,CHAI.EVNDRIVE ) EVNDRIVE
    how to use the above decode function irrespective of datatype..
    pls let me know how to over come this kind of scenario.
    is their a way to find whether the column datatype is number or char , so that i can check the column datatype before the decode funciton is applied ..
    thanks ..
    kumar

    You can try ,
    This is a "cheap and dirty" solution,
    but it should work (if CHAI.EVNDRIVE is varchar2):
    decode (CHAI.EVNDRIVE,
    '-800000000000000','.A',
    '-700000000000000', '.B',
    '-600000000000000' ,'.C',
    '-500000000000000' , '.D',
    '-400000000000000' , '.E',
    '-300000000000000' , '.F',
    '-200000000000000', '.G',
    '-100000000000000' , '.H',
    '-1000000000', '.R' ,CHAI.EVNDRIVE ) EVNDRIVELev

  • How to use decode function

    Hello Friends,
    I have a query that has different columns and I am not sure what the data type of each column is ...
    I want to use decode function which displays the following if the value of the column is like this ..
    if the value of column is -714E ie -700000000000000 then display as .A
    if the value of column is -814E ie -800000000000000 then display as .B
    NOTE ; don't know which column is having the value - and i don't know the data type of the column is ..
    got to use the decode function for all the columns selected ..
    I want to use decode function pls let me know how to write for this kind of requirement.
    appreciate your help in this rgds.
    thanks/kumar

    Dear Sir / Madam,
    Thanks for your understanding.
    Right now I am facing a unique problem.
    I am using decode function in a select statement. The columns are dynamic some columns are of type number and some are varchar datatypes. I want to apply decode function for every column irrespective of datatype.
    What i am finding difficult is if the column is a number datatype , the decode funciton is working good but if the column datatype is varchar or char datatype then i am getting ..
    here's the decode function..
    decode (CHAI.EVNDRIVE,
    -800000000000000,'.A',
    -700000000000000, '.B',
    -600000000000000 ,'.C',
    -500000000000000 , '.D',
    -400000000000000 , '.E',
    -300000000000000 , '.F',
    -200000000000000, '.G',
    -100000000000000 , '.H',
    -1000000000, '.R' ,CHAI.EVNDRIVE ) EVNDRIVE
    report error:
    ORA-01722: invalid number
    pls let me know how to over come this kind of scenario.
    is their a way to find whether the column datatype is number or char , so that i can check the column datatype before the decode funciton is applied ..
    thanks ..
    kumar

  • Patch processing in OBIEE 11g

    Hi,
    Is there any document regarding patch processing for both catalog and rpd? I have seen some 2 to 3 blogs and tried executing the patch, but got some error in that they have mentioned to look *"the Oracle Business Intelligence Suite Enterprise Edition's Presentation Services Administration Guide"* for more info. But I didn't find any document like that. So where to get that?
    Thanks,
    Satheesh

    Hi,
    Please check the below document from oracle on Patching Oracle Fusion Middleware Applications:
    http://docs.tpu.ru/docs/oracle/en/owl/E14571_01/doc.1111/e16793/opatch.htm#CBHDEGBJ
    ex:
    Applying a patch to OBIEE 11g
    After downloading the patch I tried to apply them using the following procedure:
    1. Unzip the patch zip file into the PATCH_TOP.
    unzip -d PATCH_TOP p12561330_111150_WINNT.zip
    2. Set your current directory to the directory where the patch is located.
    cd PATCH_TOP/12561330
    3. Run OPatch to apply the patch.
    Run following command:
    - opatch apply -jre $ORACLE_HOME/jdk/jre
    But the opatch execution failed.
    Could you please suggest me the exact process to apply the patch.
    Thanks
    Deva
    Edited by: Devarasu on Oct 4, 2011 5:47 PM

  • OBIEE 11g Dashboard Prompt Reset Button Functionality

    Dear Experts,
    Can anyone explain what is the exact functionality of 'Reset' Button in any OBIEE 11g Dashboard Prompt.
    If anyone found any documentation related to it... please let me know.
    thanks,
    Varun

    Hi Varun,
    This is the functionality of Reset button,
    Reset will go back to last applied values. It does not clear values. Currently the Reset button works in the following ways:
    if 1) the prompt is blank 2) select some value, 3) reset 4) it should go back to blank.
    if 1) the prompt is blank 2) select some value, 3) apply 4) reset. 5) it should NOT to back to blank. actually it does not change anything.
    if 1) the prompt is blank 2) select some value, 3) apply 4) change any values 5) reset. 6) it should undo any changes in step 4.
    Rgds,
    Dpka

Maybe you are looking for

  • !!!URGENT!!!!  -- Output Changes supplier details in an XML format

    Hi all, My platform is 11i Apps and 8i Database I am really new to XML, however I have a requirment to achieve the following: For updated or new suppliers, I need to output the new information in an XML format. But, I am not sure how best to achieve

  • Script parses, but some drives don't mount?

    I have Kanaka 2.7 working and mounting volumes from one server, but it won't mount the drive located on another server. I can go to the Mac and mount the drive manually, so I know the login and AFP protocols are working correctly. Any ideas?

  • How to see the wait events info. after excute a select query

    Hi How to see the wait events info. after execute a select query. Are there any parameter to set for this option? And also wanna see the follwing info. in trace file. For this what are the parameters I have to set right? SELECT * FROM emp, dept WHERE

  • Can't install Adobe Air with Safari

    I'm using Adobe Air 1.5 with Safari 4.0.3 on Mac OS Snow Leopard. When the browser attempts to download the Air file, binary code is displayed in the browser instead of downloading the Air application. Firefox has no problems downloading this Air app

  • Merge two domain files?

    so i mainly work on my home computer with iWeb, but ended up having to create a site on my laptop. how or is there any way to merge or add it to my home computer domain file? better question is to avoid this could the domain file live on my idisk and