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

Similar Messages

  • 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

  • Presentation Variable Value not passing when used in Column Formula.

    Hello Gurus:
    Please help me with my requirement.
    We are trying to show a data backout in report, for example.
    For a Product Group Code of 2435 which belongs to Report Line C059 has a Sales Amount of $4,266.90 and in report we want the same Sales Amount of $4,266.90 to be shown as -$4,266.90 (Negative) under a Report Line C080.
    So in a report there should be same Sales Dollars as Positive for C059 (from Source) and Negative Sales Amount for C080 (Condition to be applied in Report).
    Solution I Tried
    I tried to create a Presentation Variable (SQL- Which would fetch me Sales Dollars for Product Group Code 2453) which returns with $4266.90 and then applied it in Answers in Logic (Case when Report Line = C080 then @{Presentation Variable}*-1 Else Sales Dollars END).
    Issue I am facing:
    Presentation Variable is coming as 0 and if i give any Format (Default Value) it shows the same default value in report. I checked the SQL i used and even when I Preview the Variable its showing me $4,266.90, but not in report.
    Please let me know a way to get this Presentation Variable value into my reports.
    Also please let me know if i can achieve this requirement in any other way.

    Thanks for your reply Paul. But there is no Invoiced Amount for Report Line - 'C080' from source. Invoiced amount of C059 should show as -ve Invoiced amount for CO80.
    In a report C059 should show +ve Sales Dollars and C080 should show same amount as -Ve Sales Dollars.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • 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

  • 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 value to Drill report OBIEE 11g

    Hi ,
    We have a requirement to use Parent report prompt value in the drill report. So we have used presentation variable to pass the value.
    Issue is when we go to drill report its not showing actual presentation variable value, its giving some other value( eg: we have two values to be passed to presentation variable 'Yes' and 'No' , even though we have selected 'Yes' in the prompt the drill report is showing results for 'No' but when we refresh the drill report its showing exactly as prompt selection.)
    And we are using Advanced Sql filter to filter the records .
    In 10g it has worked fine but in 11g we are having the issue.
    Thanks in advance.
    Regards,
    Raju

    Fyi.. We are using action links for drill down.

  • How to set Default to in Dashboard Prompt from presentation variable value

    Hi all BI Gurus,
    I am trying to come out from my problem from last two days and I am not able to find the solution.
    Here is my problem.
    I am having two dashboard pages in one dashboard. Both pages contains dashboard prompt. Now from the first page’s prompt I had set a presentation variable and I want to use that presentation variable’s value in to prompt’ s default value which is used in my second dashboard page.
    I am hoping I can do that with Server variable or variable expression, but don’t know the proper way. I tried a lot with both but not able to find the solution.
    Could any help me please?
    Regards,

    Hi David,
    Thanks for replying. I really appreciate it.
    Yes I am using the same column.
    Let me provide you more details regarding my problem,
    I am having one dashboard prompt for gender and it's default value is 'Female' so I am assigning that value in to presentation variable PV_GENDER with set variable option in prompt.
    Now in my second prompt which I am using on second page of same dashboard, I am trying to assign that value 'Female' ( or the one that user had selected ) with the help or that presentation variable PV_GENDER in Default to. I tried all options (e.g. Variable Expression, Server Variable, SQL Result ) but I am not able to get that value.
    If you need more detail just let me know.
    Once again thanks for replying.

  • Use a single variable value to compare with 2 characteristics

    Hi guys
        I need some advice on how to use a single variable value to compare with 2 characteristics in a Infocube.
    eg : I hv 2 characteristics in Infocube
           Launch date  &  Closing Date
       Now I want to display report where the variable date (inputted by user) is equal to Launch Date and Closing Date.
        with regards

    Bobby,
    if I right understood your situation, you have an input variable ZINPUT (related to a date 'A') and 2 others dates (yours Launch and Closing dates, 'B' and 'C').
    You want to display only the rows where A(user input)=B=C.
    Now you have to create 2 new variables (called ZB and ZC, related to B and C dates) NOT marked as 'ready for input' and set to 'mandatory variable entry'.
    Call Transaction CMOD for the definition of the customer exit (if not already existing!).
    Create a new project, maintain the short text, and assign a development class.
    Goto Enhancements Assignments and assign RSR00001. Press the button components to continue.
    Double-click on EXIT_SAPLRRS0_001. For documentation place the cursor on RSR00001 and use the menu Goto -> Display documentation. 
    Then double-click on ZXRSRU01. If the include doesn’t exist you have to create it; assign a development class and a transport request.
    Enter the coding:
    DATA: L_S_RANGE TYPE RSR_S_RANGESID.
    DATA: LOC_VAR_RANGE LIKE RRRANGEEXIT.
    CASE I_VNAM.
    WHEN 'ZB'.
    (and you have to repeate the same code also for the variable 'ZC' !)
    IF I_STEP = 2.
    READ TABLE I_T_VAR_RANGE INTO LOC_VAR_RANGE
    WITH KEY vnam = 'ZINPUT'.
    if sy-subrc = 0.
    L_S_RANGE-LOW  = LOC_VAR_RANGE-LOW.
    endif.
    L_S_RANGE-sign = 'I'.
    L_S_RANGE-opt = 'EQ'.
    append L_S_RANGE to e_t_range.
    ENDIF.
    ENDCASE.
    Save and activate the coding and the project.
    Now go to your query and use these two new variables to restrict B and C....et voilà !!!
    Let me know if you need more help (and please assign points !!! be generous !!!)
    Bye,
    Roberto

  • 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

  • Display and filter custom columns in a presentation

    I haven't found anything in the documentation, so I post this question and hope to get an answer:
    In ALBPM 6 is it possible
    A) to display custom columns in a presentation, and
    B) to filter using these custom columns in a view?
    I am thinking of having several views enabling to display process instances by certain filter criteria: builtin but also custom criteria.
    Thanks a lot!
    Bernd

    Oh oh. I have just found documentation:
    What are Project Variables?
    Project variables are a special kind of instance variable which has more visibility than a normal instance variable. Project variable values can be searched for, and can be displayed in AquaLogic BPM WorkSpace views.
    So I will go and test this.

  • Using a presentation variable to control which measures appear in a report?

    BI Experts -
    I have a custom report using the Supporting Reference Balances OTBI Subject Area in Fusion.
    I created a presentation variable dashboard prompt that has two values: Debit and Credit. I want to use this to allow the user to select which measure columns appear in the report.
    For example, if the user selects Debit, then the report should display all the debit measures, i.e. Beginning Balance DR, Period Balance DR etc. If the user selects Credit then the report should display Beginning Balance CR, Period Balance CR etc.
    Can you offer any suggestions and/or syntax to control which measure columns appear based on the value of the presentation variable?
    thanks in advance...

    If you can divide up the measures into 2 different analysis, you can do something like this: http://obiee101.blogspot.com/2010/07/obiee-using-prompt-as-report-selector.html
    OR
    http://shahin-obiee.blogspot.com/2012/04/switching-between-multiple-reports-in.html

  • Hide entire column based on presentation variable?

    Has anyone ever tried to do this? If user selects all records from prompt i want to display analysts assigned to those records. If user selects specific analyst i don't want to display analyst column. I know i can null out or show analyst based on presentation variable but what about hide entire column?
    If this is not possible has anyone tried to use conditional formatting to hide entire column?

    Try this:
    0) Create a dashboard prompt on "analysts" and check the "All Choices" checkbox. Set the prompt to a presentation variable.
    1) Create a small report with two columns, one column will be your analyst column, the other will be a column which houses MAX(RCOUNT(1)) in the Edit Column formula window (what you get when you press the fx button). Put another filter on the analyst column set to the presentation variable with one of the analysts as the default.
    2) Put a filter on the the MAX(RCOUNT(1)) column "greater than 1"
    3) Create two copies of your actual report, one which has the analyst column, one without.
    4) Now in your dashboard you will need three sections, one for your prompt, one for the "with column" report and one for the "without column" report.
    5) In the Section Properties of the "with column" report, click on "Guided Navigation" and navigate to the small report you created in step one. Set this section to display "if request returns rows." Don't forget the filter on this report set to the presentation variable.
    6) In the Section Properties of the "without column" report, click on "Guided Navigation" and navigate to the small report you created in step one. Set this section to display "if request returns nothing." This report will not need a filter on the analyst prompt, because by definition it will display all analysts.
    Now when "all choices" is selected on the prompt, the second report displays in the dashboard, and when a single analyst is selected, then the first report will display with the analyst column.

  • Unable to filter a recordset using a session  variable

    I have a volunteer application page and when the volunteer presses <Submit> their info is saved in a MySQl db table and a session variable is created containing the primary key of their record in the table, control is then passed to a "success page". The success page can access the session variable (I proved this by displaying the session variable on the success page) so my next step was to create a recordset in the success page with a filter using the session variable to select the appropriate row in the table, allowing me to display to the volunteer the info they submitted.
    I set up a test success page which displays the session variable and one field of the volunteer info. When I test this I see the session variable displayed but the corresponding volunteer info field from the recordset is not displayed.
    The volunteer application page is here www.hollisterairshow.com/volunteerapp.php and the successpage is here www.hollisterairshow.com/thanksvol.php
    The code that creates the session variable in the volunteer application page is shown below
    $_SESSION['volunteer_id'] = mysql_insert_id();
    The code to display the session variable in the success page is shown below
    <?php  echo $_SESSION['volunteer_id']; ?>
    The code to display the volunteer info is shown below
    <h1> Thank You <?php echo $row_rsVolunteerApp['firstname']; ?>!! </h1>
    The recordset definition is shown below
    The success page test result is shown below, as you can see the volunteer's first name is not displayed immediately after the "Thank you" message but the session variable holding the correct primary key (41) is shown correctly.
    Does anyone have an idea of what I'm doing wrong?
    Thanks
    Tony

    Where did you put session_start()? It needs to be before the variable is accessed. It's obviously before the line that displays the value in your page, but is it before the SQL query is generated?
    Also, have you checked in phpMyAdmin to see whether volunteernumber 41 has any values in the database?

  • Dashboard Prompt -- One Column Setting Multiple Presentation Variables

    Hi everyone,
    I've been playing with dashboard prompts, trying to get a deeper understanding of how the function.
    I created three dashboard prompts, all on the same column, account number. Each prompt defaults to a different value i.e. 1,2 and 3 respectively. Each prompt sets up a different presentation variable. PVAR1, PVAR2 and PVAR3 respectively.
    I created a report that referenced the three variables i.e. '@{PVAR1}', '@{PVAR2}', '@{PVAR3}'.
    I put all three prompts and the one report in a dashboard.
    When I view it, all of the prompts have the same value, value 2, however, only PVAR3 is setup. PVAR1 and PVAR2 are blank.
    Why aren't all three presentation variables set to the same value? Why is only one populated?
    Thanks for the help!
    -Joe

    Hi Joe,
    Thanks for posting this interesting question, I played around and found the same issue.
    This is my finding and hoping that this makes sense, The PV variables are set only when you hit a Go button. As there are 3 prompts in the question and all the prompts are build on the same column hence the values of the columns are the same, but only one variable is set. In my opinion the last prompt which got executed.
    I tried the similar thing with one more prompt with one Go button and VAR1 and VAR2 values got set but VAR3 was still black. But the 2 prompts had the same values.
    I believe since its the same column on which these prompts are build hence the issue of setting the values.
    Hope this helps,
    Sunil S Ranka
    Blog :: http://sranka.wordpress.com
    "Superior BI is the antidote to Business Failure"

  • How to pass Presentation Variable Value from Main Report to Detail Report

    Hello,
    I've 2 reports that is attached to each other. In my main report i've several report prompts and i am using i"s prompted" on my detail report to attach them.
    But 2 of my report prompts are presentation variables(Names : FIRST, SECOND). Both are in date format. I've a filter in my main report like;
    "ASSIGNMENTS_F"."EFFECTIVE_START_DATE" BETWEEN @{FIRST} AND {SECOND}
    It works fine when i run the main report. But when i click on the numbers, i see that i can not filter my detail report with the chosen values for 2 presentation variables. It just shows all the dates.
    I've tried adding both presentation variables in both reports as columns and adding 'is prompted' filter to them. But did not work either.
    I just cant pass the written values for presentation variable prompts to detail report..
    Please help :)

    Hi,
    What you can try is refer the filte condition in the main report to the detailed report with the option--> Filter based on another request.
    Or you try creating another intermediate report which will refer the main report filters and pass the filters to the detailed report.
    Hope this helps.
    Regards
    MuRam

Maybe you are looking for

  • SharePoint Desinger 2013 Workflow canceled automatically for a specific user

    Workflow canceled automatically. I have three users KMSLS,KMSCO,KMSQA who triggers the list workflow at different levels. KMSLS has full control KMSCO and KMSQA has contribute permission. KMSLS is able to initiate the workflow and emails are getting

  • Date Picker (Application Format Mask) YYYY-MM-DD HH24:MI

    I am experience what appears to be a bug with the Date Picker (Application Format Mask) that is causing the "DD" portion of the format mask to be interpreted as "CC" (when using a YYYY-MM-DD Application format). Within "Application Builder", "Edit At

  • Download times

    I am downloading trial of Photoshop Elements 11. The screen says 13 hours to go to complete download. Would that be right?

  • Where is the failed login attempts log in ISE?

    I have a client whom purchased Cisco ISE about a year ago. The former NAC box was the Cisco ACS, which used TACACS. ISE does not support TACACS, so I am using RADIUS instead. We used to use ACS to query AD so that admins could authenticate to the swi

  • Downloaded 2 books from library but can't open them invalid Why?

    Been using Overdrive Media Console for 2 yrs without a hitch & without having to sign in. Now asked to sign in which I have done an innumerable times with no success. Have changed my password, turned off IPad & on again. Librarian said Adobe support