Add months do Presentation variable

I do have a Pres.Variable in a date format - like: DD/MM/YYYY. I need to use it as a filter... when using @{VAR} is ok...
Now I need to filter another column but using @{VAR} next month... Tried to use TIMESTAMPADD with @{VAR} but no success... maybe TIMESTAMPADD just use dates like YYYY/MM/DD ?
Tried to use a couple of CAST functions but no success either...
I´d appreciate any help.
txs
Antonio

Try something like below. Good results when you use default value.
date '@{D}{01/21/2010}'
For month try to tweak as I mentioned in your other post ie. Time."Month" = '@{M1}'

Similar Messages

  • Unresolved column when using presentation variable in Answers filter

    Hi all,
    I'm using a dashboard prompt that sets a presentation variable - pres_year. I'm using the presentation variable in a request's filter.
    In the 'Criteria' tab, in the filter for the request, I set a year column (YEAR) to the presentation variable via Variable Expr and enter the presentation variable name only. End up with:
    YEAR is equal to / is in @{pres_year}
    When using the dashboard, the prompt and request all work fine. The problem is when I'm in the request in Answers and I click on 'Display Results' button. I get the following error:
    'NQSError: 27005 unresolved column pres_year'
    Any suggestions?
    Thanks.

    I got same error, if i'm using SQL Expression, instead of variable expression in filter section.
    make sure that you followed this:
    filter on year > Add > Variable > Presentation. Then, give the presentation variable name (which you defined in dashboard prompt) in Variable Expr field , click OK
    getting same error when using:
    Filter on year column > Add > SQL Expression > presentation variable. This is not right place to give presentation variable.
    and, error i got:
    *State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 27005]* Unresolved column: "var_Year". (HY000)
    so, make sure that you are suing the right one..

  • Presentation Variable in obiee 11g

    Hi all ,
    I had a dashboard report with year , quarter , month and order type name as prompts .
    Now my client requirement is , when order type name is "Ord" , the reports with order type name starting with 'ORD" should be displayed.
    In simple i know we will use " Like" operator .
    But now my problem is we have to assign a presentation variable for order type name.
    So can some one tell me how to add a presentation variable in OBIEE 11g , i tried in web , but none of it helped me to finish the job ,, since i am very new to obiee can some one please explain me in non technical language
    Thank you for your help

    Hi Jay , Thank you very much for reply , now i got a little idea , but few doubts abt ur reply .
    Yes i will edit dashboard prompt and assign a like operator and will save the prompt , but when editing the report , you said to apply a filter *LIKE @{presentation_variable}{default_value}%*
    In the above what will be in place of presentation_variable and what should be in default_value.
    I have tried it in this way : Like @{Sales Order Lines Order Type Name} , where Sales Order Lines Order Type Name is my dashboard prompt .
    but it didn't worked when i have given 'Ord' in dashboard prompt the error says: Sales Order Lines Order Type Name is LIKE (pattern match) ord

  • Presentation Variable Date Format

    Hi all trying to format a presentation variable in a Narrative view , Is there a way that this can be done using javascript or html that i can paste into narrative view.
    i want something like "the date being used is @{indate} for month end"
    Also date format needs to be dd.mm.yyyy ... its currenty being displayed as yyyy/mm/dd .. I dont want to add the columns in my report and hide them as there seems to be a performance lag when i do that.
    Any ideas .. Java gurus out there.
    I have tried @{indate}[dd.mm.yyyy] .. but that dont work.
    Cheers
    Jenny
    Edited by: user5470064 on Aug 18, 2011 9:58 AM
    Edited by: user5470064 on Aug 18, 2011 9:59 AM

    Here you go...
    I tried in my machine and its working great..
    In Answers--> in Criteria TAB, In the column's fx use below formula...
    case when 1=1 then EVALUATE('TO_CHAR(%1,%2)' as varchar(20),date '@{pv_date}{1998-07-05}','dd.mm.yyyy') else "ORE Time Dim"."Mnth Name" end
    pv_date is the presentation variable and
    For "ORE Time Dim"."Mnth Name" use any varchar datatype column...
    Hope it helpful...
    Thanks
    Ashish Gupta

  • How to get a "char variable" with presentation variable???

    I want to pass a char variable with presentation variable, I don't have problems if I pass "int".
    For example in answers page I add a column that contains years of my dimension. 2000 until 2012 and prompted my presentation variable "year" (from my dashboard prompt) and when I go to dashboard if I choose in my prompt 2006 in my report appear 2006...any problem and easy. But my problem is if I would pass a char variable, in my prompt also I have months but not numbers else names: January, February, March...and a presentation variable that name is "month". If I do the same report but change column year to month (name) I don't have any results and I have an error.
    How can I solucionate this???
    Thank you!!

    Alex,
    Do you have separate columns for Year and Month Name. If Yes, Then why it is so confusing?
    1. create a dashboard prompt with month name column
    2. Assign it to monthname variable
    3. In your report use above variable any where.., but what ever you are doing should be logical and valid to get some data.
    In general above approach will work.
    You said, "No! I don't want to do a filter with month! I would like to pass this variable, in this example don't make sense but I need to pass a char variable with presentation variable to do another things..."
    what does that mean, what you are trying to do with the variable in your report. If you give a example that would be better.
    - Madan

  • Date format in presentation variable

    Dear Guru,
    My prompt has a calendar month edit box which is in "YYYY / MM" format. I have set this as a presentation variable p_month.
    Now I need to add 1 month to this presentation variable in the filter, I have tried to write the sql but it is complicated, and it does not work. Anyone could help?
    Thanks a lot,
    Joe

    Thanks, but I have tried the following, it returns a error msg.
    "Snapshot Date"."Snapshot Month" IN ('@{p_snapshot_month}', Timestampadd(sql_tsi_month,1,cast(Evaluate('To_Date(%1,%2)',cast('@{p_snapshot_month}' as char),'YYYY / MM') as date)))
    "Snapshot Date"."Snapshot Month" IN (@{p_snapshot_month}, Timestampadd(sql_tsi_month,1,cast(Evaluate('To_Date(%1,%2)',cast('@{p_snapshot_month}' as char),'YYYY / MM') as date)))
    "Snapshot Date"."Snapshot Month" IN ('p_snapshot_month', Timestampadd(sql_tsi_month,1,cast(Evaluate('To_Date(%1,%2)',cast('@{p_snapshot_month}' as char),'YYYY / MM') as date)))
    Error msg:
    Odbc driver returned an error (SQLExecDirectW).
    Error Details
    Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65P
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 17001] Oracle Error code: 1861, message: ORA-01861: literal does not match format string at OCI call OCIStmtExecute: select distinct D1.c8 as c1, D1.c9 as c2, D1.c24 as c3, D1.c26 as c4, D1.c25 as c5, D1.c17 as c6, D1.c10 as c7, D1.c1 / nullif( 1000, 0) as c8, D1.c7 / nullif( 1000, 0) as c9, D1.c7 / nullif( D1.c6 + D1.c3, 0) * 100 as c10, D1.c6 / nullif( 1000, 0) as c11, (D1.c6 + D1.c3) / nullif( 1000, 0) as c12, (D1.c6 + D1.c3) / nullif( D1.c1, 0) * 100 as c13, D1.c5 / nullif( 1000, 0) as c14, D1.c4 / nullif( 1000, 0) as c15, D1.c2 / nullif( 1000, 0) as c16, D1.c3 / nullif( 1000, 0) as c17, D1.c2 / nullif( D1.c1, 0) * 100 as c18, D1.c11 / nullif( 1000, 0) as c19, D1.c16 / nullif( 1000, 0) as c20, D1.c16 / nullif( D1.c15 + D1.c13, 0) * 100 as c21, D1.c15 / nullif( 1000, 0) as c22, (D1.c15 + D1.c13) / nullif( 1000, 0) as c23, (D1.c15 + D1.c13) / nullif( D1.c11, 0) * 100 as c24, D1.c14 / nullif( 1000, 0) as c25, D1.c12 / nullif( 1000, 0) as c26, D1.c13 / nullif( 1000, 0) as c27, D1.c12 / nullif( D1.c11, 0) * 100 as c28, D1.c18 / nullif( 1000, 0) as c29, D1.c23 / nullif( 1000, 0) as c30, D1.c23 / nullif( D1.c22 + D1.c20, 0) * 100 as c31, D1.c22 / nullif( 1000, 0) as c32, (D1.c22 + D1.c20) / nullif( 1000, 0) as c33, (D1.c22 + D1.c20) / nullif( D1.c18, 0) * 100 as c34, D1.c21 / nullif( 1000, 0) as c35, D1.c19 / nullif( 1000, 0) as c36, D1.c20 / nullif( 1000, 0) as c37, D1.c19 / nullif( D1.c18, 0) * 100 as c38 from (select D1.c1 as c1, D1.c2 as c2, D1.c3 as c3, D1.c4 as c4, D1.c5 as c5, D1.c6 as c6, D1.c7 as c7, D1.c8 as c8, D1.c9 as c9, D1.c10 as c10, sum(D1.c1) over (partition by D1.c17) as c11, sum(D1.c2) over (partition by D1.c17) as c12, sum(D1.c3) over (partition by D1.c17) as c13, sum(D1.c5) over (partition by D1.c17) as c14, sum(D1.c6) over (partition by D1.c17) as c15, sum(D1.c7) over (partition by D1.c17) as c16, D1.c17 as c17, sum(D1.c1) over (partition by D1.c24, D1.c25, D1.c26, D1.c17) as c18, sum(D1.c2) over (partition by D1.c24, D1.c25, D1.c26, D1.c17) as c19, sum(D1.c3) over (partition by D1.c24, D1.c25, D1.c26, D1.c17) as c20, sum(D1.c5) over (partition by D1.c24, D1.c25, D1.c26, D1.c17) as c21, sum(D1.c6) over (partition by D1.c24, D1.c25, D1.c26, D1.c17) as c22, sum(D1.c7) over (partition by D1.c24, D1.c25, D1.c26, D1.c17) as c23, D1.c24 as c24, D1.c25 as c25, D1.c26 as c26 from (select sum(T767750.QUOTA_AMT) as c1, sum(T767750.TOTAL_NEW_PIPELINE_AMT) as c2, sum(T767750.NEW_PIPELINE_AMT) as c3, sum(T767750.M3_QUOTA_AMT) as c4, sum(T767750.M3_PIPELINE_AMT) as c5, sum(T767750.PIPELINE_AMT) as c6, sum(T767750.SALESORDER_AMT) as c7, T767904.PER_NAME_MONTH as c8, case when T540698.FIXED_HIER_LEVEL = 1 then T540698.CURRENT_LVL1_EMP_FULL_NAME when T540698.FIXED_HIER_LEVEL = 2 then T540698.CURRENT_LVL2_EMP_FULL_NAME when T540698.FIXED_HIER_LEVEL = 3 then T540698.CURRENT_LVL3_EMP_FULL_NAME when T540698.FIXED_HIER_LEVEL = 4 then T540698.CURRENT_LVL4_EMP_FULL_NAME when T540698.FIXED_HIER_LEVEL = 5 then T540698.CURRENT_LVL5_EMP_FULL_NAME when T540698.FIXED_HIER_LEVEL = 6 then T540698.CURRENT_LVL6_EMP_FULL_NAME when T540698.FIXED_HIER_LEVEL = 7 then T540698.CURRENT_LVL7_EMP_FULL_NAME when T540698.FIXED_HIER_LEVEL = 8 then T540698.CURRENT_LVL8_E (HY000)
    Edited by: Joe on Oct 8, 2010 2:00 AM

  • How to create a constant variable(or presentation variable) inside request

    hi i have a prompt with from_month and to_month(both i have declared as presentation variable)
    i need transactions of from_month to be saved as presentation variable say from_data and use it for further processing.
    I tried the below one
    created one more prompt with column function as 'filter transactions using from_month' and saved it as from_data presentation variable.
    but i do not know how to hide the second prompt from dashboard.
    Please help.

    Hi,
    try like this. this is a working solution.
    in your report add a field with below formula. Remember you need month_id not month_name i.e. a no. needs to be passed. this will give you the value of the month you selected in your prompt in all the rows.
    RSUM(case when Calendar_Month = @{Month_ID}{201212} then tot_txn end)
    in your variance use like
    tot_txn - RSUM(case when Calendar_Month = @{Month_ID}{201201} then tot_txn end)/ tot_txn
    create a filter like month_id>= @{Month_ID}{201201}

  • Error while Creating Presentation variable

    Hi,I am new to OBIEE
    I am facing this error:
    "A numeric value was expected (received "max("Sales Measures".Dollars)").
    Error Details
    Error Codes: EHWH2A7E"
    1.I am using paint rpd.I want to use presentation variable.
    2.So i took two column in criteria 1.Region 2. Dollars
    3.In Dollars edit formula ,I created presentation variable i.e. @{Doller_presentation}{max("Sales Measures".Dollars)} in the column formula.
    4.And In the same column i use filter
    Add ->presentation variable->variable exp =Doller_presentation and default =max("Sales Measures".Dollars)
    5.I have added this request on dashboard page,but error is coming.
    6.Also i have created dashboard prompt,
    Set presentation variable to "Doller_presentation"
    and in column formula :@{Doller_presentation}{max("Sales Measures".Dollars)}
    and took that prompt on the same dashboard page.
    so promt with 2 values are coming.1.All choces 2.13087528..may be ths is max value of dollar but on click its showing error as
    "Odbc driver returned an error (SQLExecDirectW).
    Error Details
    Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65P
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 42021] The query does not reference any tables. (HY000)
    SQL Issued: SELECT 13087529 FROM Paint ORDER BY 1"
    I am confuse abt use of presentation variable
    Please Help,
    Thanks
    Kapil
    [email protected]
    Edited by: user13098263 on May 9, 2010 10:58 PM
    Edited by: user13098263 on May 9, 2010 11:01 PM
    Edited by: user13098263 on May 9, 2010 11:02 PM
    Edited by: user13098263 on May 9, 2010 11:04 PM

    Hi Rachit
    You answered my doubt.This one really works . Thanks a lot !
    But i have one more doubt i.e if have created the Presentation variable in the dashboard prompt and I want to use it in a report
    i.e the scenario is If I have created a new column i.e " Revised Salary " in the Presentation Services and want the values to be entered there dynamically upon end users choice. For ex the end user selecrts value of 1 then the report would display an increament of 500 to all the employees in the " Revised Salary " column and if the end user select value of 2 .. the report would display a decrement of 500 in the " Revised salary column".
    I am getting the following error :
    ========================================================================
    Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65P
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 59001] Binary Logical operation is not permitted on VARBINARY, INTEGER operand(s). (HY000)
    SQL Issued: SELECT "D0 Time"."T05 Per Name Year" saw_0, "D2 Market"."M04 Region" saw_1, "D4 Product"."P01 Product" saw_2, "D1 Customer"."C1 Cust Name" saw_3, "F1 Revenue"."1-01 Revenue (Sum All)" saw_4, CASE WHEN 0='1' then "F1 Revenue"."1-01 Revenue (Sum All)" +500 else "F1 Revenue"."1-01 Revenue (Sum All)" - 500 end saw_5 FROM "Sample Sales" ORDER BY saw_0, saw_1, saw_2, saw_3
    ========================================================================
    Please NOTE : The column on which I want to do an increament is : "F1 Revenue"."1-01 Revenue (Sum All)"
    Thanks

  • Report in new page does not know of session and presentation variables

    I have a question about GOURL.
    I am using GOURL as a column function in one report (report A), so that when i click on that column it takes me to another report(report B) that open in new popup window.
    the first report (A) also uses some session and presentation variables, which is also used by Report B as filters. I am curious that if I add these filters which are using variables to report B, why can't report B get the value of these, (it just errors out ) because it didn't found any value to those variables in the filter.
    Becuase I am ending up with passing all these variables in GOURL and setting them as 'isprompted'.
    Does this report (B) knows nothing else than what it finds in GOURL?
    thanks

    In a nutshell, if u use gourl then its parameters will be only using in navigated report. This is functionality

  • How can i display the presentation variable in my reports

    Was facing a problem to display the Presentation variable on my report, however i managed to display it on answers, but when i try to display it on my Publisher report it doesnt shows any data.
    I use to Select the Values From my prompt, and it shows the Reflection of Presentation Variable on my Answers Report. but i cannot see the Reflection of data on my Publisher Report Please any One Can help me with this.

    Removing '' does not work it given the following error
    "State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 27002] Near <@>: Syntax error [nQSError: 26012] . (HY000)"
    and by adding space you mean that I use it as '@{ BbranchCode}'?
    What I am doing at the moment is
    1. Write the given query in oracle BI Answers.
    2. Made a dashboard prompt in Answers.
    3. Made a report in dashboard using the Answers report and the dashboard prompt.
    Up till this step it works perfectly fine and the data displayed in manipulated on the basis of the values selected in the prompt.
    4. Now what I want is to display this report in Dashboards using oracle BI publisher. For that I use the template builder provided for microsoft word.
    5. I login to that add-on, open the answers report where I can see the field in the rowset. I select that field and save the template.
    6. I open the oracle BI publisher and make a new reprt with data model of the answer's report and Layout of the one I just created.
    7. I open the dashboard and put in the BI publisher report in the same page in which the asnwers report and the prompt was.
    8. Upon changing the values of the prompt the report in the answers is still getting manipulated but I am not able to see its reflection of the BI publisher report.
    The thing is that I am currently using this presentation variable to manipulate my reports in dashbords using dashboard prompts. The report is built in oracle BI Answers and it is working perfectly fine with it. Now when I use the template builder for Microsoft Word and open the template with the answers's report of this query I see the field in the row set but when I display the template in the dason the bases of this presentation variable the report in the oracle BI Answers is getting updated when I change values but when I use the template builder for microsoft word the the field is being shown in the row set.

  • To use two presentation variables based on the period selection in OBIEE

    Dear All,
    I have period prompt in my report, based on the period prompt selection in my report I need to get the start and end dates of the period and apply in the report filter.
    For e.g. Period Name selected in the prompt is "2010 - Q1" (For this Period, Period Start Date = 01/01/2010 and Period End Date is 30/03/2010, which is not going to be displayed in the prompts).
    How can I get the start and end dates of the period into my report filter. I tried using the presentation variable for the period name, but unable to resolve the requirement.
    Your help is highly appreciated.
    Best Regards,
    Rajesh

    Hi Rajesh,
    Create a report A which will give you the period start date and end date and filter it using the period prompt.
    Then filter the main report using the report A start date and end date, using Filter -> Advanced ->Filter based on results of another request .
    Add the report A in separate section on the dashboard along with main report and hide report A section.
    Thanks,
    Vino

  • Presentation Variable in prompt, then BIN

    Hello,
    I have a 4 presentation variables, related to date which will be entered by the user (prompted). Can I use the presentation variables to setup the BINS? I have tried it and it just doesn't quite like it.
    Example,
    We a field called Issue Date
    Now, I want to check and compare 2 different Incident Date ranges.
    Therefore I have 4 presentations variables which hold the start and end date for each set. So, if I put Start date -01-05-2010 end date 10-05-2010 it will look into issue dates between this 2 dates. The issue is that the start and end date are entered by the user. So when I am creating a Bin I get a couple of errors:
    1. filter Editor Template not found on page
    2. nQSError: 10058] A general error has occurred. [nQSError: 46048] Datetime Month value 0 from 0000-00-00 is out of range. (HY000)
    If anyone can shet some light into how can I resolve this. I will highly appreciate it .
    Thanks.

    Hi,
    Yes you can use the presentation variable in the prompts.
    But first check if the presentation variable is getting assigned where you have called in the physical query generated. In Manage session-->view log.
    Try using a single quotes in the beginning and ending of the variable otherwise.
    And for the default selection, try building a dynamic variable in the rpd and call it in the prompt and check.
    Hope this helped/ answered.
    Regards
    MuRam

  • Presentation variable in column formula errors out

    Hi
    I have a date column which should have 2 presentation variables. From date and To date. I created a dashboard prompt on the date column twice with case statements like CASE WHEN 1=0 THEN CALENDAR.D_DATE ELSE TIMESTAMP '1900-01-01 00:00:00' END . Now i have 2 presentation variables FromDate and Todate for the user to select. I have referenced this in the report using a filter with the condition " date between @{FromDate}{1900-01-01 00:00:00 AM} and @{ToDate}{1900-01-01 00:00:00 AM}
    Now i have a column in the report which has a case statement with the following conditions
    CASE WHEN "Dim - Pay Info"."Status Cd" = 'ROC' AND TIMESTAMPADD(SQL_TSI_DAY, -1, @{FromDate}{1900-01-01 00:00:00 AM}) THEN 'Outstanding' --- the condition here is take off a date from the FromDate selected
    WHEN "Dim - Pay Info"."Status Cd" = 'ROC' AND "Dim - Pay Warrant Date"."CAL_DT" IS BETWEEN @{FromDate}{1900-01-01 00:00:00 AM}, @{FromDate}{1900-01-01 00:00:00 AM} THEN 'Current Month'
    WHEN "Dim - Pay Info"."Status Cd" = 'RCK' AND "Dim - Pay Warrant Date"."CAL_DT" IS BETWEEN @{FromDate}{1900-01-01 00:00:00 AM}, @{FromDate}{1900-01-01 00:00:00 AM} THEN 'Purged'
    WHEN "Dim - Pay Info"."Status Cd" = 'CLR' AND "Dim - Pay Warrant Date"."CAL_DT" IS BETWEEN @{FromDate}{1900-01-01 00:00:00 AM}, @{FromDate}{1900-01-01 00:00:00 AM} THEN 'Reconciled'
    WHEN "Dim - Pay Info"."Status Cd" in ('VOID', 'CNCL') AND "Dim - Pay Warrant Date"."CAL_DT" IS BETWEEN @{FromDate}{1900-01-01 00:00:00 AM}, @{FromDate}{1900-01-01 00:00:00 AM} THEN 'Void or Cancel'
    END
    When i use this i always get a syntax error. Could you please pont me where i am going wrong?
    Thanks

    user9126483 wrote:
    Hi
    I have a date column which should have 2 presentation variables. From date and To date. I created a dashboard prompt on the date column twice with case statements like CASE WHEN 1=0 THEN CALENDAR.D_DATE ELSE TIMESTAMP '1900-01-01 00:00:00' END . Now i have 2 presentation variables FromDate and Todate for the user to select. I have referenced this in the report using a filter with the condition " date between @{FromDate}{1900-01-01 00:00:00 AM} and @{ToDate}{1900-01-01 00:00:00 AM}
    Now i have a column in the report which has a case statement with the following conditions
    CASE WHEN "Dim - Pay Info"."Status Cd" = 'ROC' AND TIMESTAMPADD(SQL_TSI_DAY, -1, @{FromDate}{1900-01-01 00:00:00 AM}) THEN 'Outstanding' --- the condition here is take off a date from the FromDate selected
    WHEN "Dim - Pay Info"."Status Cd" = 'ROC' AND "Dim - Pay Warrant Date"."CAL_DT" IS BETWEEN @{FromDate}{1900-01-01 00:00:00 AM}, @{FromDate}{1900-01-01 00:00:00 AM} THEN 'Current Month'
    WHEN "Dim - Pay Info"."Status Cd" = 'RCK' AND "Dim - Pay Warrant Date"."CAL_DT" IS BETWEEN @{FromDate}{1900-01-01 00:00:00 AM}, @{FromDate}{1900-01-01 00:00:00 AM} THEN 'Purged'
    WHEN "Dim - Pay Info"."Status Cd" = 'CLR' AND "Dim - Pay Warrant Date"."CAL_DT" IS BETWEEN @{FromDate}{1900-01-01 00:00:00 AM}, @{FromDate}{1900-01-01 00:00:00 AM} THEN 'Reconciled'
    WHEN "Dim - Pay Info"."Status Cd" in ('VOID', 'CNCL') AND "Dim - Pay Warrant Date"."CAL_DT" IS BETWEEN @{FromDate}{1900-01-01 00:00:00 AM}, @{FromDate}{1900-01-01 00:00:00 AM} THEN 'Void or Cancel'
    END
    When i use this i always get a syntax error. Could you please pont me where i am going wrong?
    What is the syntax error? If you make people have to guess or to examine intensely what you wrote, many will pass on your question, which I don't doubt people did.
    Rather than dive into your syntax, read this blog entry by Venkat which perfectly describes how to build and use date prompts with BETWEEN, including the syntax of wrapping your date prompts with single quotes.
    http://oraclebizint.wordpress.com/2008/02/26/oracle-bi-ee-101332-between-prompts-for-date-columns-using-presentation-variables/

  • Error using presentation variable in SQL Expression

    Hi all,
    I'm receiving an error - '...Error getting drill information...' due to a presentation variable being used in a SQL Expression. It probably has something to do with a data type issue. I've narrowed the error to the use of the presentation variable.
    I'm setting a presentation variable, pres_mth_nme_to, from a dashboard prompt. The prompt contains a month name.
    I'm using the presentation variable as part of a SQL Expression in a filter. The gist of the SQL Expression is to use the
    presentation variable in a CASE and set a value accordingly. For example:
    Column: Month Sort Value
    Operator: Between
    Value: *10*
    SQL Expression: *Case  @{pres_mth_nme_to}{some default} WHEN 'NOV' THEN '10' WHEN 'DEC' THEN '11' WHEN 'JAN' THEN '12' WHEN 'FEB' THEN '13' WHEN...END*
    The month name is character. If I were to hard code this, I don't recieve the error. For example:
    CASE 'SEP' WHEN 'NOV' THEN '10' WHEN 'DEC' ...END
    There something going on with the data type from the prompt and it being used in the comparison. If I use a CAST, the problem still exists.
    CASE CAST(@{pres_mth_nme_to} as char(3)) WHEN 'NOV' THEN ... END
    If I'm in Answers, the problem doesn't exist, I'm assuming because of the default values. If I'm on the dashboard, it does exist, I'm assuming because of recieving the prompt value.
    I don't know what I'm missing. Any suggestions?
    Thanks.

    DJ,
    if the formula presented by you is exactly true, i mean it was not fabricated to present as an example in the forum, you should include the presentation variable in single quotes.
    i.e. your formula must look somthing like
    Case '@{pres_mth_nme_to}{some default}' WHEN 'NOV' THEN '10' WHEN 'DEC' THEN '11' WHEN 'JAN' THEN '12' WHEN 'FEB' THEN '13' WHEN...END
    let me know if it did solve the issue...
    -bifacts
    http://www.obinotes.com
    Edited by: bifacts on Oct 25, 2010 1:50 PM

  • Presentation variables in dashboard prompts

    Hi ,
    I have a scenario where there are two prompts. When the user selects the value in the first prompt, hits "Apply" button. The prompt value should be passed to another prompt.
    For e.g: In the first prompt, the user will have values: Fiscal or Gregorian. The user hits the apply button. Then the presentation variable should get passed to Month prompt in the same dashboard page. The month prompt will use this value to display data accordingly.
    If it is Fiscal, the month prompt will display fiscal monthly values.
    If it is Gregorian, the month prompt will display gregorian monthly values.
    I tried doing it, But i am not able to get it. Is this possible in OBIEE?
    Thanks,
    Upendra

    Hi,
    Create the year and month prompt as column value prompt if 11g. Then mark the month prompt by selecting the option "Limit Value by" Year.
    Mark if helpful.
    MARM

Maybe you are looking for

  • DIV Background image not displaying in FF

    Hi! I'm building a floated 3 column DIV layout with a wrapper to center the DIVs. I put a background image in the wrapper to give the appearance of the columns stretching to the bottom of the layout. It displays in IE, but not in FF. If I give the wr

  • Columns for XML gallery

    Hi! I'm nearly there but I can't get this scipt to work!! Its a basic gallery I'm building that imports images via xml with thumnails. Problem is I started trying to make columns and it wont work! I'm nearly there though I can smell it! The Column bi

  • Needing help in oracle.jdbc.OracleDriver

    the problem is when i perform a select statement from a database link to another database in another machine the resultset returns empty, but when i am created the database in the same machine all goes fine. i dont no where is the problem?????? is th

  • Runtime error when exporting to Excel

    Hi I'm new to this so pardon my mistakes. When i try to export a report (viewed in cystal reports in SAP) to excel, a runtime error occurs and forces SAP business one to close. In some reports, the export to excel icon on the menu bar is active, but

  • Port forward stopped working after update

    i updated my software and the port forward stopped working and it will no longer allow access to my ip camera.