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

Similar Messages

  • 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

  • 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

  • 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

  • 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

  • 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

  • Using Mac Mail for Gmail - controlling which folders to sync

    Using Mac Mail app for my Gmail, is there a way to control which folders I'm syncing with?  I have 90k+ archived messages, which I don't need to have on my desktop.  Is there a way to keep that from syncing?
    iMac 27"
    Updated to latest version of Mavericks.

    Go into the Gmail web portal and open Settings. Go to Labels tab and set it to not show those folders in IMAP.

  • How do I use a Presentation Variable to select Column/Views of a Request

    I have multiple requests that all have view / column selectors in them (all the same columns)
    What I would like is to create a dashboard prompt that the user can select from that will influence these multiple requests on the same dashboard page.
    Thanks for any help.

    User,
    As I read that example it has
    Year - Year Ago - Dollars
    The dropdown selector they've created looks very useful in that it allows them to filter those three columns with 50+ filters.
    What I'm trying to do is something like this (for multiple different requests of course)
    Year - Year Ago - Dolloars - Column 1
    or
    Year - Year Ago - Dolloars - Column 2
    or
    Year - Year Ago - Dollars - Column 3

  • OBIEE 11g:  Use presentation variable in Column Heading

    Hi everyone,
    I was playing around with sample app dashboards and I saw a dashboard prompt that they converted into a column selector. I liked it and reproduced it in my own sandbox.
    I like the results, however, I would also like to change the column heading to clearly reflect which measure was selected. It's pretty clear when you are looking in the dashboard, but once you export the data, it can be confusing which measure was selected.
    That is why I would like to use a presentation variable in the column heading section. I tried to do this but it interpreted it as a literal instead of evaluating the statement.
    Is there anyway to get a variable in the column heading?
    Thanks!
    -Joe

    Hi,
    Have a look at the following links:
    http://oraclebizint.wordpress.com/2008/01/25/oracle-bi-ee-101332-dynamic-column-headers-using-presentation-variables-sets-and-conditional-formatting/
    show the presentation variable on table column header
    Define presentation variable in column header
    hope it helps.
    Regards,
    Kalyan Chukkapalli
    http://123obi.com

  • 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.

  • 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..

  • Info on Presentation Variables used in OBIEE

    Hi All,
    I need some information on Presentation Variables which are used in OBIEE.
    a. We can filter on a column using actual value. What is the benefit of using a Presentation variable to filter on a column?
    b. Is there something a presentation variable can do which a repository variable cannot.
    c. Can a presentation variable be used to filter on a dashboard itself rather than going to Answers to filter the request
    d. Where else can a presentation variable be declared apart from dashboard prompt?
    Regards,
    Apoorv Chitre

    Hi Apoorv,
    let me try to answer your questions one by one
    a. We can filter on a column using actual value. What is the benefit of using a Presentation variable to filter on a column
    As you say, if you need a filter which does not use an actual (fixed) value (or where the value is passed from a prompt) then it is a good idea to use variables (could be repository, session or presentation variable) which variable type you choose depends on 1) the way the value is passed to the variable and 2) the type of data (e.g. a variable CURRENT_MONTH is definitely valid for all users, so it would be a good idea to use a repository variable).
    b. Is there something a presentation variable can do which a repository variable cannot.
    Presentation variables are session-specific, that is they can have different values for each user. Repository variables have the same values for all users.
    c. Can a presentation variable be used to filter on a dashboard itself rather than going to Answers to filter the request.
    Not sure what you mean...
    d. Where else can a presentation variable be declared apart from dashboard prompt?
    I have compiled an overview of all variable types in OBI EE and how they can be declared here
    Presentation variables can only be set using dashboard prompts.
    have a nice day
    @lex

  • Unable to pass the values to stored proc using presentation variable in OBI

    Hi All,
    Need your help regarding in resolving an issue in OBIEE 10.1.3.4.1
    There is an OBIEE requirement whereby two prompts need to be defined.
    1.     Textbox prompt
    2.     Drop-down prompt
    The dropdown values should be populated using textbox prompt. So, we have used presentation variable in textbox prompt and passing the same to select query of drop-down.
    Until this step, the report works just fine.
    Now, the value in both textbox and drop-down needs to be passed to stored proc.
    While trying to pass the values by using the presentation variable, the following error comes-up saying
    Session variable has no value definition.
    Note:Although the corresponding session variable has been set to default value,still the error appears.
    Please advise.
    Regards,
    Prasad

    "Session variable has no value definition" I'm assuming typo error and it should be presentation variable.
    Set default value for presentation variable that may work

  • 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

  • Using presentation variable in a dashboard prompt

    Hi All,
    Can we use a presentation variable set in 1 dashboard prompt in another dashboard prompt to filter the values shown in the prompt based on the value selected in the first prompt?
    I am using SQL results in the second prompt.So, Iam not able to constrain the results. Any ideas?
    Thanks.

    Steps:
    1. 1st Dashboard prompt set Presentation Variable name say pdashboardprompt1
    2. In 2nd Dashboard prompt set Presentation Variable name say pdashboardprompt2
    In SHOW SQL results for 2nd Dashboard prompt. Select constraint
    SELECT Table1.Column1 FROM "SA" WHERE Table1.Column2 = '@{pdashboardprompt1}'

Maybe you are looking for

  • Application import problems with current apex on 11.1.0.7 and 11.1.0.6

    Hello, i have Application Express 3.2.1.00.10 up and running so far. 11.1.0.7 patch is applied. I can't import an recently exported application with apex. error: The requested URL /apex/wwv_flow.accept was not found on this server. If i try to copy t

  • How to uncheck a checkbox using Screen Variants?

    Hi Masters! Anybody knows how to uncheck a checkbox that is already checked by default? I'm trying to do this using screen variants. I uncheck the checkbox and save the value (I also tried filling other values there like 'a', space, etc. and it didn'

  • Speaker docking system for new i pad?

    Anybody find a system for the new I Pad?

  • Pls help - Displaying Simplified Chinese characters

    Hi all, I am using Servlet to generate HTML. When I use setContentType="charset=big5" and out.println(" . . . ."); with Big-5 Traditional Chinese characters, everything is fine. However, when I use setContentType="charset=gb2312" and out.println(" .

  • 8.1.6 JDBC-Thin on NT appears to have a problem

    I could just be experiencing the wonders of Windows NT but I am having a problem connecting to our Oracle Database using JDK1.2.2 and the 8.1.6 thin drivers. I downloaded and installed the classes12.zip and my program finds and loads the driver just