How to use a presentation variable in filter conditions

Hi,
I have set a presentation variable "day" on my dashboard prompt containing a date column. I now need to use this presentation variable in the filter clause to restrict the dates between "day" and sysdate.
So i apply the following SQL filter:
where day between '{@variables.day}' and current_date
But I end up in getting the following error:
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. [nQSError: 17011] SQL statement execution failed. (HY000)
I even tried casting the presentation variable to date, but to no avail. Can someone let me know how to specify the date format for the presentation variable.

If you're a member of ODTUG (or even if not, you can sign up for an associate membership for free) you can download Glenn's presentation from 2009 Kaliedoscope "Little Used Features of Essbase (Like Data Mining and Triggers)" -- there is a section in that presentation on substitution variables -- he does a really good job in showing how this works.
Go to: www.odtug.com, then Tech Resources, then Essbase/Hyperion, and search for Schwartzberg. Currently it's the ninth presentation on the list -- I think this changes based on popularity of downloads.
Regards,
Cameron Lackpour

Similar Messages

  • Issue in using presentation variable as filter condition in the reports

    Hi,
    I have an issue in using presentation variable as filter condition in my reports the details are as follows:
    Details :
    We want to implement the Max and Min variables through Presentation variables only.we do not want to implement it through session variables in this case.
    We have two variables MIN and MAX to be used as Presentation Variables,for a column of the report (which is a quantity),so that the user wants to see the data for this column within a particular range.i.e the Min and the Max.This part has been implemented well . The issue is when the user wants to see the full data.In that case we will not pass any values to these two Presentation Variable or in other words we are not restricting the report data so we are not passing any value to the variables,this is when the report is throwing the error. we want to leave this variables blank in that case.but this is giving error.
    Please suggest how can I overcome this issue.
    Thanks in Advance.
    Regards,
    Praveen

    i think you have to use guided navigation for this. create two reports first is the one you are having currently and second is the one in which remove the presentation variable from the column formula. i.e. the same report with no aggregation applied.
    Now create a dummy report and make it return value only when the presentation variable value is not equal to max or min. guide the report to navigate between the first and second report based on the result of the dummy report.

  • 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

  • Use of Presentation Variables in Navigated Report Title

    Hi All,
    It's regarding the presentation variable in report title. I have value interaction to another report based on Prompted values. But when we click on the value it will go to another report page and giving the results, but the title view is not changing as per the requested value. The title should change dynamically, but it is showing the P.Variables in place of prompted value.
    Below are the ways i have used the P.Variables:
    @{brand1} at @{customer}, @{sensitivity}% Sensitivity
    @{brand1}{'Prod'} at @{customer}{'CVS'}, @{sensitivity}{'15'}% Sensitivity -----(default values here)
    Version : OBIEE 11.1.1.5.0
    Could you provide me the solution for this issue.
    Thanks in Advance,

    Hi,
    You can use the presentation variable when you are passing the value from the prompt and filtering after
    clicking on the 'GO' or 'APPLY' button. So that assigns one value and is passed in the report in the
    page used.
    What you need to do is you need to have the 'is prompted' for the column used in the title
    or you can make the column is equal to @{pres_var}.
    But still if you dont use the columns in the report and you dont want to filter the report with the title columns
    then you can use narrative view with all the columns used in the title and have 'is prompted' and make its formatting similar to title view and save as a separate report
    And place the narrative view above the report
    Regards,
    MuRam

  • How to use the bind variable in custom.pll

    Hi,
    How to use the bind variable in custom.pll.Its through error.
    any one gem me.
    very urgent.
    M.Soundrapandian.

    Hello,
    Please, ask this kind of questions in the e-business forum.
    Francois

  • Script logic - how to use a selection variable within an allocation logic

    Hi,
    I want to implement a simple top-down distribution to distribute values from a yearly budget (Y20xx.TOTAL) to a quarter budget (Q20xx.Q1, ... Q20xx.Q4) using the actuals of the previous year as reference.
    If we hard code the members it works fine:
    *RUNALLOCATION
    *FACTOR=USING/TOTAL
    *DIM ACCOUNT WHAT=ACC_NOT_ASSIGNED; WHERE=BAS(FIN); USING=<<<; TOTAL=<<<
    *DIM TIME WHAT=Y2009.TOTAL; WHERE=BAS(Q2009.TOTAL); USING=BAS(Q2008.TOTAL); TOTAL=<<<
    *DIM CATEGORY WHAT=SBO; WHERE=<<<; USING=ACTUAL; TOTAL=<<<
    *ENDALLOCATION
    Of course, we want to make this dynamic, using the values inputted in the selection screen of the package: time, entity and category.
    So if we start with write the following logic, it does not work anymore:
    *RUNALLOCATION
    *FACTOR=USING/TOTAL
    *DIM ACCOUNT WHAT=ACC_NOT_ASSIGNED; WHERE=BAS(FIN); USING=<<<; TOTAL=<<<
    *DIM TIME WHAT=%TIME_DIM%; WHERE=BAS(Q2009.TOTAL); USING=BAS(Q2008.TOTAL); TOTAL=<<<
    *DIM CATEGORY WHAT=%CATEGORY_DIM%; WHERE=<<<; USING=ACTUAL; TOTAL=<<<
    *ENDALLOCATION
    So, how to use the selection variables in this allocation logic? %TIME%, %CATEGORY% also did not work ...
    regards
    Dries
    solved it ...
    Edited by: Dries Paesmans on Feb 22, 2009 8:31 PM

    Hi Dries,
    Looks like you solved this, but if I can just add a small point -- when you use syntax like this:
    *DIM ACCOUNT WHAT=ACC_NOT_ASSIGNED; WHERE=BAS(FIN);
    *DIM TIME WHAT=Y2009.TOTAL; WHERE=BAS(Q2009.TOTAL);
    each time the logic runs, it will scan through the dimension from the FIN and Q2009.TOTAL members, one level at a time, until it reaches the base members (where calc = 'n'). This may happen very quickly, if the dimension has very few levels, but could take a bit of extra time if it's a particularly deep dimension. (By which I mean many levels of hierarchy -- not some 1970's Pink Floyd musical reference.)
    You may speed things up by using a member property instead of the BAS(xyz). Flag all the base members using a specific property value, and that way the logic engine can pick up the complete list of members in the WHERE clause, in a single query.
    *DIM Account What=ACC_NOT_ASSIGNED; Where=[FloydProperty]="DarkSideOfTheMoon"; ...
    This adds some maitenance work in the dimension, which may be problematic if your admins are changing it regularly (and will cause problems if they forget to update this particular property).
    I can't predict how much time this will save you (maybe not much at all), but anyway I figure you'd want to know exactly what work you're asking the system to perform.
    Regards,
    Tim

  • How to use attributes in variable substitution???:(

    Hi all,
    Could you please help me out in how to use attributes in variable substitution....
    Regards,
    Sundar

    Hi,
    Use Adapter Specific Identifiers , instead of Variable Name substitution.
    Sender File adapter --> Adapter Specific Attributes --> Select File Name
    Reciver File Adapter -->Adapter Specific Attributes --> Select File Name
    In the mapping , use this code in an UDF to change the filename to what you want,
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");
    String filename="YOURFILENAME";
    String rSourceFileName = conf.put(key,filename);
    Regards,
    Bhavesh

  • How to use Replacement Path Variables to perform Date Calculations

    Hi Experts,
    Can anyone make me clear about:How to use Replacement Path Variables to perform Date Calculations???????
    Thankyou in advance..
    shankar

    In left panel select the time Dimension
    Then hit new variable in that
    give the Name and Description for the Variable
    In processing by hit Replacement Path
    In reference characterisitcs use Calendar Day...
    As ur intention is to use it for Date
    Then in adjacent tab use
    Replace variable with Query / Variable
    Then u can use Offset length and offset start for controoling the display of your variable.
    Use as single, multiple single, interval, selection option as uwish
    HIt okey
    and you are good to go

  • How to use wildcards in ABAP query where condition?

    Hi,
    Please tell me how to use wildcards in ABAP qurey where condition.
    e.g. select * from mara where matnr = * (wildcard we need to use.
    Thanks & Regards,
    Gaurav T

    Do you want to query asterix * ?
    select * from mara where matnr = '*'.  "then just put it in apstrophes
    or you want certain part of string be used as * ?
    select * from mara where matnr like '%*'  "then use % sign before it
    or maybe you want something like this
    select * from mara where matnr like '%1' . "then it will look for all materials having '1' inside it
    Regards
    Marcin

  • Using 2 presentation variables in a filter for date

    I do have 2 presentation variables @MONTH and @YEAR. In my analysis I do have a Timestamp column EfDate.
    I am trying to filter EfDate, using the SQL Expression option and cast(('01/'||'@{MONTH}'||'/'||'@{YEAR}'||' 00:00:00) as timestamp).
    Tried also with cast(('@{YEAR}/'||'@{MONTH}'||'/'||'01'.... and with '-' instead of '/'.
    No success... either a message for invalid month, or invalid character, etc.
    Pls. anyone could give me a hint ?
    Txs.
    Antonio

    Hi Srini,
    Txs. for your help... but I guess I do have some difficult understanding this MIN function... (tried the doc but still is kind of strange).
    OTH on your last post I believe you mean: Time."Year" = '@{Y1}' and ... Right ? and not Time."Month" = '@{Y1}' and ...
    My filter would be something like: Effdate < '01' / @{MONTH} / @{YEAR} (keeping out the cast and etc.).
    I still cannot see how to use the format you´ve suggested in my filter above. Sorry.. but maybe you could help me ?
    txs a lot in advance.
    Antonio

  • Between-Filter on Column using calculated presentation-variable values

    Hello everyone,
    i'd like to know whether it is possible to filter a column with a Between-Statement using two calculations done on a single presentation variable in Oracle BI Answers
    What i have:
    - OBIEE 10g
    A line-chart, which shows earnings over a period of several years: In 1999 it might be 100.000€, in 2000 it might be 80.000€,..., in 2009 it might be 95.000€ and so on.
    What i want:
    Now i'd like to create a dashboard prompt to be able to choose a certain year, for example 2006.
    The chart then should show data for the year given (2006...) and two years before(2004, 2005) and two years after the chosen year(2007,2008).
    Example:
    If 2006 is chosen, then data from 2004 to 2008 should be shown in the chart
    If 2000 is chosen, then data from 1998 to 2002 should be shown in the chart.
    What i did:
    - I created the Prompt, set its presentation variable to var_year.
    - I then created a filter on my years-column, choosing "Between" from the DropDown-List.
    - I added two 'Variable-fields within the filter-dialogue', each filled with var_year and a default value.
    - I tried to add a +2 or -2 to the variable-expression field, but (ofcourse) got an error.
    Thanks in Advance and greetings from Germany,
    Chris
    Edited by: user12288481 on 04.08.2010 13:18

    Sorry for not answering to your Posts yesterday.
    I have to admit that i was unable to solve my problem, although the solutions posted, seemed to be quite promising.
    Hammett81's solution
    First, I gave Hammett81's solution a try and created a filter group using the 'Add filter' option/dialogue box.
    This Filtergroup consists of 5 single filter expressions, which have been connected by ORs:
    The way i created those filters:
    In the 'Create/ Edit Filter' i've chosen 'is equal/ is in' - Operator.
    Then i was given the chance to add a 'value' or to add 'Variable --> Presentation', which summons 2 textboxes (Variable Expression and Default)
    Everything i put into the variable expression field will be put into the @{} bracket by OBIEE, after clicking ok.
    So it is not possible to use +1, +2, -1,-2 etc. within this field, as this would lead to @{var_year +2} for example, which ofcourse does not match the presentation variable's name.
    On the other hand, if i do not use a Variable Expression but a "Value field", then i can write @{var_year} +2 for example.
    In my opinion, obiee wants to use the expression as a simple value though, rather than use it as a variable and therefore won't check the presentation variables value, when it tries to filter the data.
    John's solution
    Regarding Johns answer, i am not sure where to put the filter expression. Should this be added into the SQL-Query (Advanced-Tab) or do i have to add it within the columns formula? (fx)
    Edited by: Chris2010 on 05.08.2010 09:36

  • How to Use a report as a filter in another report

    Hi
    We are presently migrating from microstategy to OBIEE. There is a report with 3 attributes and a single metric(the metric is the count of remedy ticket). The 2nd report has just the 3 attributes(the person who doesn't have a ticket for the given time period should be displayed) . There is no way to do this unless i can use the report as a filter. How can i do this?
    Thanks

    I method from the blogspot doesn't seem to work for me......As for the navigate function it just gives the normal values. I'll try to be a little more clear about what i want to achieve. Let's say report one displays all the owners in the system( number name, class), and report 2 displays all the owners with remedy tickets ( number name, class, number of remedy tickets( this will be the fact column)) and the third report should display the owners without any remedy tickets (number name, class) . due to a database quirk there is no column on which to base my third report. so i should substract the values of second report from first... so that i'll get the third report. ( By the way i've tried set function too....but it wodn't allow it since the number of columns should be equal and same)
    Thanks for your suggestions guys

  • How to use a substitution variable in a load rule?

    I need to use a substitution variable in a load rule in a column, as I will receive a parameter to fix the Month and Year values within the data loading, could somebody tell me if this is possible. I put an expresion "&Yearproc" in the column value but it is not working.

    If you're a member of ODTUG (or even if not, you can sign up for an associate membership for free) you can download Glenn's presentation from 2009 Kaliedoscope "Little Used Features of Essbase (Like Data Mining and Triggers)" -- there is a section in that presentation on substitution variables -- he does a really good job in showing how this works.
    Go to: www.odtug.com, then Tech Resources, then Essbase/Hyperion, and search for Schwartzberg. Currently it's the ninth presentation on the list -- I think this changes based on popularity of downloads.
    Regards,
    Cameron Lackpour

  • How to use a session variable in Conditional Format?

    Hi Gurus,
    I created a session variable , called Actual_date,
    using the following SELECT:
    SELECT SYSDATE FROM DUAL
    In a report title the following expression worked fine:
    @{biServer.variables['NQ_SESSION.Actual_date']}
    I red in a reply in this forum, under the
    "Oracle BI EE Variables Overview"
    that we can use the above format in Cond.Format.
    However I got an error:
    "The value entered msut date and Time..."
    Any tips?
    Thanks
    Laszlo

    It's because when you fired
    SELECT SYSDATE FROM DUALYour variable have a LONGVARCHAR type (if I remember)
    Check here how to find the data type.
    http://gerardnico.com/wiki/dat/obiee/obi_server_variable_find_value
    If you just need to get the current date, you can try the system presentation variable current time as :
    @{system.currentTime} Good luck
    Nico

  • How to use an ODI variable in an IKM?

    Hi,
    I am trying use the value of ODI variable in IKM SQL Incremental Update. The variable contains the count of error records. My problem is how to use the variable in the IKM. I am trying to use the variable in an If condition like:
    <%if(%>#COuntReprocessRec<%>0){%>
    I have declared the variable as Numeric.
    Thanks.

    Hi,
    For the below requirement follow the below steps.
    I have to execute the 'Insert of flow into I$ table' step of IKM, only if Error records are present in my source table. The IKM i am using is IKM SQL Incremental Update.
    Create a new step before 'Insert of flow into I$ table' step, i say "Check Error Record".
    Command on source
    Technology : <your source technology>
    Schema: Whichever schema points to ur source error table
    Command:
    select count(*) as row_count from <table_name>
    Command on Target
    Technology : Jython
    Command:
    CountData=#row_count
    if CountData>0:
    ##raise ' \n\nThere are error records in source error table'
    Thats it.
    This will stop the flow in case of error records persist in ur source table, else it allow the flow to next Insert I$ step.
    P.S: Replace ## with TAB.
    Thanks,
    Guru

Maybe you are looking for