To_CHAR in OBIEE

Hello All,
I have 2 tables variance_trend and monthly_variance.
Both tables have load_date column.
In variance_trend it is varchar in the format YYYYMM, in monthly_variance load_date is date data type.
I am trying to convert monthly_variance.load_date to YYYYMM.I can acheive this by going to data format and select custom format etc.
But the problem is here i am doing union between these two columns.
Its throwing me error because these 2 columns are inconsistent data types.(one is varchar another is date).
In sql i can use to_char(monthly_variance,'YYYYMM') function to acheive this.
How can i acheive this in OBIEE without creating any views in database.
Thanks in advance.

Hi ,
Thanks for your reply.
Since month(monthly_variance.load_date) return the month value in single digits for 1 to 9, instead of 200901 i am getting 20091 for the month January and so on.
I looked into functions , but i could not find any lpad function.
Is there any other function similar to lapd in OBIEE?
Thanks in advance.

Similar Messages

  • How to use to_Char in obiee

    Evaluate( 'to_char(%1,%2)' as char,SUM(EQ_HOLDING_FACT.shares),'FM999,999,999,990')
    A general error has occurred. [nQSError: 42015] Cannot function ship the following expression: Evaluate( to_char(%1,%2),D1.c18, 'FM999,999,999,990')
    how to resolve it

    You can use the following as needed: In answers for example:
    CAST(your_column AS CHAR)
    CAST(your_column as INTEGER)
    CAST(you_column as DOUBLE)
    -- replace 'your_column' with the appropriate column name.

  • How to add a date(Year, Month, Day) table in OBIEE Administrator

    Hi,
    I am new to this tool, we are developing a HR report for emp on leave or absentees. we have data since 1982 in our tables. we want to have a date table and dimension where we can give have a hierarchy for year, month, day, so that we can design our dashboards based on time. how we can do that in OBIEE Administrator and can we do it in warehouse builder as well, if so, how. ( we have a column for date in the table by name 'leave start date' and 'leave end date', can we use this and create our own table with year month and day as separate columns).
    Thanks.

    hi,
    Using date column u can create time dim in BMM layer
    Create a new logical table and pull your date column to this table
    Next,create following columns
    Refer http://www.rittmanmead.com/2007/04/30/obi-ee-time-dimensions-and-time-series-calculations
    leave start date
    Year level :Extract(year from date_column)
    Month and year level:CAST (Extract(month from fact_date_column) As CHAR(5) ) || CAST (Extract(yearfrom fact_date_column) As CHAR(5) )
    Mon-YYYY: EVALUATE('TO_CHAR(%1,%2)' AS CHARACTER ( 30 ), "Development".""."sample sales"."Dim - leave Date"."REPORT_DATE", 'MON-YY')
    YYYY-MM : CAST ( EXTRACT( YEAR FROM "sample sales".""."sample"."Dim - Report Date"."LEAVE_DATE") AS CHARACTER ( 4 )) || '/' || CASE WHEN EXTRACT( MONTH FROM "sample sales".""."sample"."Dim - Report Date"."LEAVE_DATE") BETWEEN 10 AND 12 THEN CAST ( EXTRACT( MONTH FROM "sample sales".""."sample"."Dim - Report Date"."LEAVE_DATE") AS CHARACTER ( 2 )) ELSE '0' || CAST ( EXTRACT( MONTH FROM "sample sales".""."sample"."Dim - Report Date"."LEAVE_DATE") AS CHARACTER ( 1 )) END
    Year Quater :: EVALUATE('TO_CHAR(%1,%2)' AS CHARACTER ( 6 ), "sample sales".""."sample"."Dim -Leave Date"."REPORT_DATE", 'YYYY') || '0' || EVALUATE('TO_CHAR(%1,%2)' AS CHARACTER ( 6 ), "sample sales".""."sample"."Dim -Leave Date"."REPORT_DATE", 'Q')
    Day: EXTRACT(DAY FROM DATE_COLUMN)
    Thanks,
    Saichand.v

  • Integration of APEX in OBIEE 11g fails after upgrade to APEX 4.2.1

    I used a document from the german APEX forum to integrate Oracle Business Intelligence 11g (OBIEE) with APEX.
    After login in OBIEE a APEX page will be called without login in APEX.
    The Document is called "APEX in Oracle Business Intelligence (Oracle BI) integrieren"
    http://www.oracle.com/webfolder/technetwork/de/community/apex/tipps/biee-apex/index.html
    In APEX 4.0 this worked great. After login in OBIEE I could call a APEX page without new login.
    But after upgrading to APEX 4.2.1 now the APEX login mask is displayed.
    OBIEE uses this function to create a APEX session and store the APEX session-id and username in the table apex_biee_session:
    -- Function GET_APEX_SESSION_ID
    -- sets up an APEX session for a BIEE user
    FUNCTION get_apex_session_id (p_username IN VARCHAR2,p_days_valid IN NUMBER DEFAULT 1) RETURN VARCHAR2
    IS
    pragma autonomous_transaction;
    l_session_id NUMBER;
    l_valid_to DATE;
    l_count NUMBER;
    l_password VARCHAR2(4000);
    BEGIN
    l_valid_to := SYSDATE + NVL(p_days_valid,1);
    -- Let us delete expired records:
    BEGIN
    DELETE FROM apex_biee_session
    WHERE valid_to < TRUNC(SYSDATE,'DD');
    COMMIT;
    EXCEPTION
    WHEN NO_DATA_FOUND THEN NULL;
    END;
    -- get next APEX session id:
    l_session_id := apex_custom_auth.get_next_session_id;
    -- Insert the BIEE user and the APEX session id in table APEX_BIEE_SESSION
    INSERT INTO apex_biee_session (username, sessioN_id, valid_to)
    VALUES (UPPER(p_username),l_session_id,l_valid_to);
    COMMIT;
    -- define an APEX user session:
    apex_custom_auth.define_user_session(
    p_user => UPPER(p_username),
    p_session_id => l_session_id);
    htmldb_application.g_unrecoverable_error := TRUE; -- tell apex engine to quit
    RETURN l_session_id;
    EXCEPTION
    WHEN OTHERS THEN RETURN '-99';
    END get_apex_session_id;
    CREATE TABLE "APEX_BIEE_SESSION"
    (     "USERNAME"     VARCHAR2(60),
         "SESSION_ID"     NUMBER,
         "VALID_TO"     DATE,
         CONSTRAINT "APEX_BIEE_SESSION_PK" PRIMARY KEY ("USERNAME","SESSION_ID")
    In APEX this page sentry function is called:
    -- Function PAGE_SENTRY
    -- used as page sentry function in APEX applications
    FUNCTION page_sentry RETURN BOOLEAN
    IS
    l_current_sid NUMBER;
    l_biee_userid VARCHAR2(255);
    l_cookie owa_cookie.cookie;
    l_c_value VARCHAR2(255) := NULL;
    l_cookie_tom owa_cookie.cookie;
    l_c_value_tom VARCHAR2(255) := NULL;
    l_session_id NUMBER;
    l_biee_auth     VARCHAR2(1) := 'N';
    BEGIN
    BEGIN
    -- If normal APEX user authentication is used, cookie LOGIN_USERNAME_COOKIE will be used
    l_cookie_tom := owa_cookie.get('LOGIN_USERNAME_COOKIE');
    l_c_value_tom := l_cookie_tom.vals(1);
    l_biee_userid := UPPER(l_cookie_tom.vals(1));
    EXCEPTION
    WHEN OTHERS THEN NULL;
    END;
    l_session_id := apex_custom_auth.get_session_id; -- in APEX 4.2.1 this returns NULL
    -- Do we have a record in table APEX_BIEE_SESSION with the current session id
    BEGIN
    SELECT UPPER(username) INTO l_biee_userid
    FROM apex_biee_session
    WHERE session_id = l_session_id AND valid_to > SYSDATE;
    l_biee_auth := 'Y';
    EXCEPTION
    WHEN NO_DATA_FOUND THEN l_biee_userid := 'Failed';
    END;
    IF l_biee_userid = 'Failed' THEN
    IF l_c_value_tom IS NULL THEN
    l_biee_userid := NULL;
    ELSE
    l_biee_userid := UPPER(l_c_value_tom);
    END IF;
    END IF;
    -- If l_biee_userid is NULL we need to call the APEX login page (done by RETURN FALSE)
    IF l_biee_userid IS NULL THEN
    RETURN FALSE;
    END IF;
    IF l_biee_auth = 'N' THEN
    l_current_sid := apex_custom_auth.get_session_id_from_cookie;
    ELSE
    l_current_sid := l_session_id;
    END IF;
    -- This is the built-in part of the session verification
    IF apex_custom_auth.is_session_valid THEN
    wwv_flow.g_instance := l_current_sid;
    IF apex_custom_auth.get_username IS NULL THEN
    apex_custom_auth.define_user_session(
    p_user => UPPER(l_biee_userid),
    p_session_id => l_current_sid);
    RETURN TRUE;
    ELSE
    IF UPPER(l_biee_userid) = UPPER(apex_custom_auth.get_username) THEN
    apex_custom_auth.define_user_session(
    p_user =>UPPER(l_biee_userid),
    p_session_id =>l_current_sid);
    RETURN TRUE;
    ELSE -- username mismatch. Unset the session cookie and redirect back here to take other branch
    apex_custom_auth.logout(
    p_this_app=>v('APP_ID'),
    p_next_app_page_sess=>v('APP_ID')||':'||nvl(v('APP_PAGE_ID'),0)||':'||l_current_sid);
    wwv_flow.g_unrecoverable_error := true; -- tell htmldb engine to quit
    RETURN FALSE;
    END IF;
    END IF;
    ELSE -- application session cookie not valid; we need a new apex session
    IF l_biee_auth <> 'Y' THEN
    l_session_id := apex_custom_auth.get_next_session_id;
    END IF;
    apex_custom_auth.define_user_session(
    p_user => l_biee_userid,
    p_session_id => l_session_id);
    wwv_flow.g_unrecoverable_error := true; -- tell htmldb engine to quit
    IF owa_util.get_cgi_env('REQUEST_METHOD') = 'GET' THEN
    wwv_flow_custom_auth.remember_deep_link(
    p_url=>'f?'||wwv_flow_utilities.url_decode2(owa_util.get_cgi_env('QUERY_STRING')));
    ELSE
    wwv_flow_custom_auth.remember_deep_link(
    p_url=>'f?p='||
    TO_CHAR(wwv_flow.g_flow_id)||':'||
    TO_CHAR(nvl(wwv_flow.g_flow_step_id,0))||':'||
    TO_CHAR(wwv_flow.g_instance));
    END IF;
    apex_custom_auth.post_login( -- register session in htmldb sessions table, set cookie, redirect back
    p_uname => l_biee_userid,
    p_app_page => wwv_flow.g_flow_id||':'||nvl(wwv_flow.g_flow_step_id,0));
    RETURN FALSE;
    END IF;
    END page_sentry;
    The problem seems to be that in line "l_session_id := apex_custom_auth.get_session_id;" the call of apex_custom_auth.get_session_id is returning NULL in APEX 4.2.1.
    In APEX 4.0 the call of apex_custom_auth.get_session_id returned the APEX session id.
    What can I do to get this working again ?
    Kind Regards,
    Markus
    Edited by: asmodius1 on Jan 10, 2013 2:06 PM

    Hi,
    this integration relies on session fixation, that's an insecure practice which is not allowed anymore since 4.1:
    http://en.wikipedia.org/wiki/Session_fixation
    Since the cookie value for the session id is missing, Apex rejects the session id and sets it to null, before calling the sentry function.
    If you absolutely want to use this kind of integration, you will have to parse the value of owa_util.get_cgi_env('QUERY_STRING') in the sentry function to get the session id. To make it a bit more secure, the row in APEX_BIEE_SESSION should only be valid for a very short time (e.g. 1 sec). A person from Oracle Support contacted me about possible improvements to this authentication a few weeks ago. I replied with the following suggestions:
    I would at least add a Y/N flag (e.g. SESSION_JOINED_BY_APEX) to the
    APEX_BIEE_SESSION table. The page sentry should only accept the session
    without an accompanying cookie if the flag is still N. It has to set it
    to Y afterwards. This way, you ensure that the session joining without
    cookie can only be done once. Maybe there should also be an alternative
    way to log in to APEX, e.g. via page 101. Currently, this authentication
    only accepts session IDs that were generated via OBIEE.
    Users could log out of APEX or the APEX session could expire. Therefore,
    the APEX app should have a post logout procedure that deletes the row in
    the OBIEE session table. On the OBIEE side, APEX_SESSION_ID should
    therefore be initialized on each request. The initialization code should
    also check APEX_WORKSPACE_SESSIONS to make sure the session still
    exists.
    Regards,
    Christian

  • OBIEE-EBS data security integration

    Hi all,
    I am trying to implement the HR-Org based data security in EBS-OBIEE integration.
    After creating the initialization blocks EBS Single Sign-on Integration,Get Oracle EBS Security Context,Group-EBS Responsibility I have created a new initialization block HR Organizations to populate the session variable "HR_ORG" and I am using the following the query.
    Even though the session variables GROUP and USER are getting their values correctly and integration works fine, the variable HR_ORG says "has no value definition".
    [nQSError: 10058] A general error has occurred. [nQSError: 23006] The session variable, NQ_SESSION.HR_ORG, has no value definition. (HY000)
    SQL Issued: SELECT "Per Business Groups"."Business Group Id", VALUEOF(NQ_SESSION.HR_ORG) FROM HR
    Please help me for implementing the data security after the EBS-OBIEE integration..
    For populating HR_ORG variable by row wise initialization:
    SELECT DISTINCT 'HR_ORG',TO_CHAR(SEC_DET.ORGANIZATION_ID)
    FROM
    SELECT
    'HR_ORG', ASG.ORGANIZATION_ID
    FROM
    FND_USER_RESP_GROUPS URP
    ,FND_USER USR
    ,PER_SECURITY_PROFILES PSEC
    ,PER_PERSON_LIST PER
    ,PER_ALL_ASSIGNMENTS_F ASG
    WHERE
    URP.START_DATE < TRUNC(SYSDATE)
    AND (CASE WHEN URP.END_DATE IS NULL THEN TRUNC(SYSDATE) ELSE TO_DATE(URP.END_DATE) END) >= TRUNC(SYSDATE)
    AND USR.USER_NAME = ':USER'
    AND USR.USER_ID = URP.USER_ID
    AND TRUNC(SYSDATE)
    BETWEEN URP.START_DATE AND NVL(URP.END_DATE, HR_GENERAL.END_OF_TIME)
    AND PSEC.SECURITY_PROFILE_ID = FND_PROFILE.VALUE_SPECIFIC('PER_SECURITY_PROFILE_ID', URP.USER_ID, URP.RESPONSIBILITY_ID, URP.RESPONSIBILITY_APPLICATION_ID)
    AND PER.SECURITY_PROFILE_ID = PSEC.SECURITY_PROFILE_ID
    AND PER.PERSON_ID = ASG.PERSON_ID
    AND TRUNC(SYSDATE) BETWEEN ASG.EFFECTIVE_START_DATE AND ASG.EFFECTIVE_END_DATE
    AND URP.RESPONSIBILITY_ID = DECODE(FND_GLOBAL.RESP_ID,
    -1, URP.RESPONSIBILITY_ID,
    NULL, URP.RESPONSIBILITY_ID,
    FND_GLOBAL.RESP_ID)
    UNION
    SELECT DISTINCT 'HR_ORG',
    ORGANIZATION_ID
    FROM PER_ALL_ASSIGNMENTS_F ASG,
    FND_USER USR
    WHERE ASG.PERSON_ID = USR.EMPLOYEE_ID
    AND USR.USER_NAME = ':USER'
    AND TRUNC(SYSDATE) BETWEEN ASG.EFFECTIVE_START_DATE AND ASG.EFFECTIVE_END_DATE
    AND ASG.PRIMARY_FLAG = 'Y'
    ) SEC_DET
    Thx!

    Duplicate post see Re: obiee-ebs  data  security integration

  • CORRELATED SUB QUERY IN OBIEE

    Hi Experts,
    How to achieve correlated sub query in OBIEE
    Example for correlated sub query is here:
    SELECT
    HR_EMPLOYEE_DIM.EMPLID,
    HR_EMPLOYEE_DIM.NAME,
    HR_EMPLOYEE_DIM.JOBCODE_CD,
    HR_EMPLOYEE_DIM.JOBCODE_DESC,
    FROM
    HR_EMPLOYEE_DIM,
    EMPLOYEE_ACTION_FACT
    WHERE
    ( EMPLOYEE_ACTION_FACT.HR_EMPLOYEE_KEY=HR_EMPLOYEE_DIM.HR_EMPLOYEE_KEY )
    AND
    ( to_char(EMPLOYEE_ACTION_FACT.PS_EFF_DT,'yyyymmdd') || EMPLOYEE_ACTION_FACT.PS_EFF_SEQ=
    (SELECT MAX(TO_CHAR(PS_EFF_DT,'yyyymmdd')|| PS_EFF_SEQ)
    FROM
    EMPLOYEE_ACTION_FACT EAF1,
    HR_EMPLOYEE_DIM HED1
    WHERE EAF1.HR_EMPLOYEE_KEY = HED1.HR_EMPLOYEE_KEY
    AND HED1.PS_EMPLID = HR_EMPLOYEE_DIM.PS_EMPLID
    Thanks
    Naresh
    Edited by: Naresh Meda on Dec 2, 2008 5:52 AM

    But I want to pass presentation variable for the second query.
    Regards
    Naresh
    Edited by: Naresh Meda on Dec 2, 2008 10:27 PM

  • KPI doesn't filter according to the repository variables- obiee 11g

    Hello all,
    I have created a KPI that contains the following dimensions:
    Year, Monthname, Trn_date
    I have also created some 3 repository variables:
    CurrentYearRepoVariable: holds current year (select to_char(trunc(sysdate, 'yyyy'),'yyyy') from dual)
    CurrentMonthRepoVariable: holds current month (select to_char(trunc(sysdate, 'mm'),'MONTH') from dual)
    and TodayRepoVariable: holds current day (select trunc(sysdate) from dual)
    I added the KPI in a KPI watchlist and added as filter for Year, Monthname, Trn_date the CurrentYearRepoVariable,  CurrentMonthRepoVariable and TodayRepoVariable accordingly.
    When I “analyze” the KPI I don’t see the results for the current day as if the filters are not correct. I can see from the repository that the variables have the correct values. I have also created an analysis where I applied the same filters and the result is the correct one. It seems that the KPI doesn’t seem to “see” the correct values of the variables. I have also tested with an agent and it doesn’t seem to work either.
    The OBIEE version is 11.1.1.6 .
    Can somebody help with this? How is it possible with the analysis to see the correct result but not with the KPI and agent?
    Thanks in advance,
    Konstantina

    Sorry I was wrong in my previous thread.
    Actually your approach is not correct, Product Number choose constraint that will show as per the selection of Product Name.
    Coming to default value for Product Number you are going for sql override that is okay but not work with variable, instead of setting default values for product number set that to product name.
    if not you need to go for 2 different prompts
    Prompt 1 Product Name hit GO
    Prompt 2 will work based on as you defined earlier with variables
    Hope this helps

  • Month Range Selection in OBIEE against Essbase

    OK. I am pretty knowledgeable on the Hyperion side, but new to the OBIEE world so I am looking for some major assistance in getting this to work.
    We currently have an Essbase outline that is built with the Year and Periods combined like the below example from 2001 - 2015:
    YrPeriod (generation 1)
    -----2011 (generation 2)
    ----------201101 (generation 3)
    ----------201102
    ----------201103
    ----------201104
    ----------201105
    ----------201106
    ----------201107
    ----------201108
    ----------201109
    ----------201110
    ----------201112
    -----2012
    ----------201201
    ----------201202
    ----------201203
    ----------201204
    ----------201205
    ----------201206
    ----------201207
    ----------201208
    ----------201209
    ----------201210
    ----------201211
    ----------201212
    ETC...
    What we are trying to do in OBIEE is build a dashboard that shows multiple reports (analysis) that are graphing 25 months of data (customer request). I have tried to:
    1. use the dashboard prompt to select a Start_Month and a prompt for the End_Month. These were selecting the Gen3 members of the YrPeriod dimension and saving to a Presentation variable. This allows the users to select from the dropdown list all the Gen3 members of the dimension which I want. Those presentation variables where then selected in the BETWEEN filter for the Analysis on the YrPeriod dimension. HOWEVER, it seems to only select the first member in the range which is the START_MONTH presentation variable. Not sure if this approach will work or not.
    SO I tried to do it a different way.
    2. I created Session_Variables, but I am not seeing a way to use them in the BETWEEN filters on the Analysis for YrPeriod dim. It only allows you to select Presentation variables or Request Variables.The only way I have gotten them to work was to add a sql on the Initialization block for the session variable:
    One FOR THE START MONTH - select to_char(add_months(sysdate,-25),'yyyymm') start_month from dual ;
    AND THE END_MONTH - select to_char(add_months(sysdate,-1),'yyyymm') Ending_Month from dual AND) .
    When added to the BETWEEN filter this works in getting the full 25 month range!
    HOWEVER, I would like to give the users the ability to change the run period range and not be stuck with just the system date.
    Ideally, I would like to have just 1 prompt for the Run period and have it update the range based on the selection.
    I hope I have given you all enough info to let you know what we are trying to do and what I have tried to this point. Hopefully this is something relatively simple and I am just missing it completely!
    Thank you in advance for any and all your help with this!
    Robert
    Edited by: user627522 on Nov 12, 2012 3:08 PM

    A web search for "OBIEE rolling months" comes back with i.e. this one: http://shivabizint.wordpress.com/2008/09/19/rolling-months-data-for-year-month-prompt-in-obiee/
    or this one: http://obieetutorialguide.blogspot.ie/2012/02/modeling-time-series-function-in-obiee.html
    In earlier Siebel days, one also used to define multiple alias in OBIEE physical layer for DIM_DATE with different joins to different months. I needed to go this route in a project where we had MS-SQL as the back end where the at that time relatively new AGO and TODATE were performing very badly.
    But now to solve your problem at hand:
    In the very latest release the new OBIEE function PERIODROLLING was introduced. Not sure though how this is function shipped to Essbase, if at all.
    You can read some more details about it i.e. here: http://gerardnico.com/wiki/dat/obiee/function_time
    Thanks for letting us know if it works at all with Essbase in physical layer and if it works, what query is actually being sent to Essbase.

  • Could not able to join physical tables in obiee using a dataconversion func

    Hi,
    i am trying to join physical tables wc_perf_ratings_d and w_wrkfc_evt_month_f with condition as
    "Oracle Data Warehouse"."Catalog"."dbo"."Dim_WC_PERF_RATINGS_D"."RATING_CD" = to_char(round( "Oracle Data Warehouse"."Catalog"."dbo"."Fact_W_WRKFC_EVT_MONTH_F"."ORIG_PERF_RATING",2)). But i am getting the below syntax error while applying this.
    [nQSError:27002] Near <(>: Syntax error [nQSError:26012]
    i used the same condition on database and i got results.
    select rating_cd,
    to_char(round(orig_perf_rating,2)) as orig_perf_rating,
    headcount,
    fte,
    salary_annl,
    total_service_days
    from wc_perf_ratings_d, w_wrkfc_evt_month_f
    where wc_perf_ratings_d. rating_cd= to_char(round(w_wrkfc_evt_month_f.orig_perf_rating,2));
    Here i am trying to convert the format of ORIG_PERF_RATING field and trying to join with RATING_CD in physical layer.
    so my question is, is it possible to join in obiee using such conditions? i do not want to convert the field format in ETL and i wanted to do that at obiee level. Could anybody please suggest how to do it?

    Hi,
    Thanks for the link. i was trying another method in joining the two fields (rating_cd, orig_perf_rating) at database level. As i said both these fields are of varchar datatype. Earlier i tried to convert orig_perf_rating field from number to string. But i want to convert string data in (rating_cd) to number. so i have values in it like (1,2,3,4,bep, ep, vp, nr). Actually i have a requirement to create a database view for the dimension table (wc_perf_ratings_d) having rating_cd field with new datatype (number) instead of string and then join this field with orig_perf_rating in fact table which already has numbers. Along with the number rating fields, there are four particular string fields in rating_cd (bep, ep, vp, nr) as i mentioned. so while converting, i also have to convert these specific string fields in to partcular numbers. (bep=1, ep=5, nr=0, vp=3). Now, all this requirement is at database level as i am creating a db view. so my question is how to apply the to_number conversion function for converting the rating_cd field values (bep, ep, vp, nr) from string to specific mentioned numbers. Could you please help?
    for eg: create or replace view as select to_number(rating_cd....................
    Thank you.

  • To_char Conversation

    Hi Gurus,
    how to use to_char conversation in obiee
    to_char("TABLE2"."Date" ,'YYYY/MM/DD HH24')
    thanks

    Hi,
    After doing this, i wanted to add this in page prompt so when customer enters any time between
    1 to 24 it will check with date and fetch the records
    here i converted date in to char and hr column already in char
    and after that i will go for to_date and that will solve the hour level problem in page prompt
    Dates with hours data
    thanks

  • OBIEE 11g - Analysis & Administration Tool questions

    Dear Experts,
    I have two question in OBIEE 11g version 11.1.1.5.0:
    1. How can we display timezone in the analysis result, we have formatted the mask "MM_DD_YYYY hh:mm:ss tt z" but the "z" does not apply, it display character "z" in our result.
    2. Can we create Hierarchy Dimension from one more tables ? Example that we have TimeDimension and LocationDimension, we want to create only on Hierarchy Dimension included two both Time and Location dimension.
    Thanks & Regards,
    Hac@

    Dear Devarasu,
    Thanks for your reply !
    We tried the ... on analysis column fomular but occurred error in the result :
    +"State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 43113] Message returned from OBIS. [nQSError: 43119] Query Failed: [nQSError: 16001] ODBC error state: 37000 code: 8180 message: [Microsoft][ODBC SQL Server Driver][SQL Server]Statement(s) could not be prepared.. [nQSError: 16001] ODBC error state: 37000 code: 195 message: [Microsoft][ODBC SQL Server Driver][SQL Server]'TO_CHAR' is not a recognized built-in function name.. [nQSError: 16002] Cannot obtain number of columns for the query result. (HY000)"+
    Do we make any mistake ?
    Rgrds,
    Hac@

  • Achieving thisin obiee

    How to achieve the below function in obiee. Please help
    add_months(to_date(to_char(Date_Column,'MM')||'-'||:p_year,'MM-YY'),-7)
    where p_year is a year prompt

    Hers my requirment.
    I want to implement below function in obiee.It does take the month from the column and appends the current year .so basically if the column has the value 01/12/12.It becomes 01/12/13.P-year is a current year variable.I am having issues in writing the above code in obiee.I am using the below in obiee which is giving the below error.
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 43113] Message returned from OBIS. [nQSError: 43119] Query Failed: [nQSError: 17001] Oracle Error code: 1843, message: ORA-01843: not a valid month at OCI call OCIStmtFetch. [nQSError: 17012] Bulk fetch failed. (HY000)
    CAST(CAST(MONTH("date_cimun") AS CHAR) ||'-'||CAST(VALUEOF("current") AS CHAR)as date)
    to_date(to_char(Date_Column,'MM')||'-'||:p_year,'MM-YY')

  • Error while running a KPI Watchlist in obiee 11g dashboard

    I am getting the following error while running a KPI Watchlist :
    *" Odbc driver returned an error (SQLExecDirectW) "*
    I added two KPI's (KPI 1 & KPI 2)into that Watchlist , one from the default "Sample Sales Lite" (sub 1) and another from sub 2 which have essbase as data source .
    KPI 1 (created from sub 1) is working fine , but while placing KPI 2 (created from sub 2 ) in the watchlist , its throwing the above error . However , while running KPI 2 individually , its showing meaningful results .
    Let me know if the problem statement is not clear .
    OBIEE version used : 11.1.1.5.0 .

    Could anyone reply this thread. I am also getting the same error . Even server logs are also not helping.

  • OBIEE 11g - without going to Sawbridge first.....

    If you called OBIEE via the default path: http://domain-name/analytics?NQuser=xxx&NQpassword=xxxx
    instead of
    http://domain-name/analytics/saw.dll?NQzuser=xxx&NQpassword=xxxx  
    would your credentials be checked by weblogic before the default login jsp has access to the request parameters or after?
    Or does weblogic/OBIEE  stop you passing parameters to the default URL?
    What I'm trying to say is, if you go via the default domain without calling saw.dll first can you pass an encrypted password to your bespoke login.jsp (default.jsp) within the analytics domain and get this default.jsp
    to convert the password to plain text and then this default.jsp calls (forwards) to saw.dll....

    I have been trying to log in with my YouTube account name and password like usual. I just tried using my gmail log in and it works. Did they merge or something? It was working yesterday just fine without me changing the way I logged in. Either way, thanks for the help! Works great now
    Message was edited by: EvoXFTW

  • Error while creating Bi presentation service in obiee(11.1.1.3)

    Hi,
    Im using Jdeveloper(11.1.1.5) and OBIEE(11.1.1.3)
    I created a ADF application in Jdev and when I try to create a BI presentation services I'm getting the following error message.
    *Connection attempt failed.*
    *java.lang.RuntimeException: Unable to retrieve logon token. This version requires a BI build that implements the version 7 SOAP interface. Please verify that you are using the correct BI version.*
    does the creation of presentation service in jdev(11.1.15) work only with OBIEE(11.1.1.5) and not OBIEE(11.1.1.3).
    please help!
    Thanks,
    Venky
    Edited by: Venky on Jul 26, 2011 2:02 PM
    Edited by: Venky on Jul 27, 2011 6:18 AM

    Venky,
    The SOAP interface released with OBIEE 11.1.1.3 is version 6 (v6) as you can see from its WSDL URL.
    This would leave one only to believe that the SOAP interface released with OBIEE 11.1.1.5 is version 7.

Maybe you are looking for