Using prompts as variables

I want to use a query prompt as a variable in reporting.  Is there any way of doing this?  I can't find any references anywhere.

YEP,
As suggested.
Variable : =UserResponse('Enter Year') == It will capture the user input(s).
Note: Your Prompt text should exactly same with UR text. Including spaces, quotes etc..., otherwise it won't display correct results.
I'm Back

Similar Messages

  • IR - Prompting for Year Dimension and using CurrMth Substition Variable

    There's 2 questions.
    How do I set IR so it prompts up for choosing year dimension (essbase)? I've put year in Column Query and set it as a variable. However, when I put this on workspace it doesn't prompt the user for selection. How do I resolve this?
    The second question will base on the following thread:
    Substitution variables
    There is a substition variable in essbase for Currmth, Current Month. When I use this substition variable in IR, it has an error. Will update you what the case is. But is there any specific way I need to do inorder to use substitution variables in IR?

    Substitution Variable errors in IR, please see below cap screen:
    http://i144.photobucket.com/albums/r190/sycshk/SubstitutionVariable1.jpg
    http://i144.photobucket.com/albums/r190/sycshk/SubstitutionVariable2.jpg

  • 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

  • Issue with Calendar prompt presentation variable

    Requirement: (OBIEE 11g)
    A dashboard should have two prompts - one calendar prompt and one text field prompt giving number of days. There is a timestamp column (SHIP DATE) in the analysis. There should be a between limit in this timestamp field. Logic to be implemented is - Calendar Prompt DateTime <= SHIP DATE < (Calendar Prompt DateTime + No. of days from text field).
    Solution Tried:-
    Using the dashboard prompt, two prompts and two corresponding presentation variables were created. First presentation variable is for calendar prompt timestamp (Date1) and other one is for no. of days (Num_Days) text field prompt.
    Then in the analysis, two filters were created on the Ship Date. First filter is set as 'Is Prompted' and it takes the values '<=' from calendar prompt in dashboard.
    For the other filter, I converted it to SQL and wrote the following:-
    "Time"."Ship date" <= (timestamp '@{variables.Date1}['YYYY-mm-DD HH:MM:SS']{2013-01-01  00:00:00}')  + @{variables.Num_Days}{30}
    The analysis runs fine for the above filters, but when run from the dashboard, it throws up an error.
    Error getting drill information: SELECT "Time"."SHIP DATE" saw_0, "Base Facts"."QUANTITY" saw_1 FROM "SHIPPING DATA" WHERE ("Time"."SHIP DATE" <= (timestamp '''2013-00-01 00:10:SS''') + 30) AND ("Time"."SHIP DATE" >= timestamp '2013-10-01 00:00:00').
    From the above it seems that error is coming because I am unable to set properly the calendar prompt presentation variable in a format which can be read by the analysis. Since analysis is running fine from the default value of Date1, I was thinking of somehow converting the calendar prompt presentation variable in the similar prompt.
    Any pointers to the correct approach?
    Thanks
    Kundan

    I found a workaround to my above issue for now but I would like to know the proper approach from experienced folks.
    My workaround is as follows:-
    I created an additional column in the analysis -> TIMESTAMPADD(SQL_TSI_DAY,- @{variables.Num_Days}{30}, "Time"."Ship date"). Then I applied a filter on this new field. The filter is set as < variable expression Date1 (coming from presentation variable). Since I am not converting this filter to SQL, OBIEE server seems to be taking care of timestamp format conversion.
    I think I need to study the logs and the config XMLs to see how date format is being stored to get a better solution.
    Regards
    Kundan

  • Use of bind variable in repository

    All,
    Our customer has a requirement that they need This year sales Vs Last year Sales by passing the year as a prompt.
    I can not use BI built in function to get Last year start or this year start date as our calendar dates are not standard. So i have to query date dim table to see for ex. for 2010 whats is the start date and so on...
    For this I have created a repository variables to hold these values using a SQL. What I would like to know is can I use a bind variable to this SQL so that when user passes year i can feed that year to this SQL and it will provide me correct start and end date for this year and last year.
    Many thanks in advance

    Yes. We can pass a value what user is selecting from the prompt. For doing that you have create a session variable with "Enable any User to set Value". So in prompt properties for the year column select "Request Variable" for Set a Variable. Then in the content filter use year = 'valueof(NQ_SESSION.myVariable).
    Let me know if this worked.
    Regards,
    Jay

  • 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

  • Use of same variable in WAD for two different operations

    We use one aggregation level to input data using WAD. In the same WAD template we would like run a planning function on a different aggregation level that copies the same data. Both operartions use the same variables. But the WAD prompts the user to enter the value for variable again when it tries to copy the data.
    How do we avoid this?
    Thanks,
    DV

    Hi,
    In WAD , open your web-template .
    In the Web-template 'properties'    under 'Web template parameter' you have the
    option 'display same variable only once'
    Please check whether this is ON or not.
    Please also check whether the variable you are using is Mandatory variable.
    Mandatory variables pops up irrespective of settings.
    Regards,
    Amit

  • OBIEE | Using Dynamic Session Variable in Physical Layer

    Hi All,
    Any idea if we can use Dynamic Session Variables (I think they are also called Repository Variables) in our physical layer. I basically need to set the value of this variable from dashboard when a link is clicked, and then use this in my SELECT query at physical layer so that OBIEE does not pull all the data from the database tables.
    Regards
    Adeel Javed
    Edited by: user10642426 on Apr 6, 2009 2:03 AM

    Christian,
    Thanks for the quick response, ok we have actually moved to a different solution now, we are actually using Direct Database Request because one of our reports is supposed to be accessing direct transactional system i.e. for this report we are using OBIEE as a reporting tool. We are able to do that and even create links between different reports i.e. based on prompt in Report A filter Report B, but the scenario now is that we need to set a presentation variable from Report A when a navigation link gets clicked, because so far according to our knowledge direct SQL only allows presentation variables in its WHERE clause. So, any ideas how can we set a presentation variable when a navigation link is clicked. Thanks.
    Regards
    Adeel Javed
    Edited by: adeeljaved on Apr 6, 2009 11:43 PM

  • 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

  • Dynamic publishing not enabling the use of dynamic variables (flashvars)

    I'm have having issues with my website [url removed by moderator].  The Dynamic publishing is not enabling the use of dynamic variables.  Standard magento 1.8.1 install.

    Dear Yugandhar,
      It's work. Thanks. This is a work around way to avoid retrieve list of values Error. I was suspected 2 reasons to cause this issues: 1. prompt option. 2. LOV option.  So, the cause is not prompt option. The main cause could be LOV( list of values ).
    After disable LOV, Republish universe, reset query filter in report, re-query report, restart server(Core, Webi) from CMC.
    I restore LOV option back to universe and republish universe to server.
    Run Query again. The report not retrieve list of values.  The error not show up.
    I try delete the cause problem dimension(year dim), add others dimension and add  the cause problem dimension to query filter with prompt option back. The error not come up.
    Query will not retrieve list of values.
    Finally, the report come back normal status.
    But. I doubt why only year dim will cause LOV retrieve problem but others dim.
                                                                                                                                                  Sam Sheen

  • Filter base on prompt generated variables

    Hi.
    I need to create a presentation variable and pass it to a report.
    In this report 2 fields need to be filtered on this value (i.e. Billing Date and ).
    I tried to create a prompt generating a presentation variable, but I'm able to create a variable only with the option "is equal to / is in" while my need is to filter with "is less than or equal to".
    Am I wrong ? What is the correct way to achive my goal ?
    Many many thanks,
    Andrea

    Hi,
    Use presentation variable while creating pormpt and apply filter on the report using this presentation variable,you will have many options to select equal to,less than,greater than etc..
    Close thread if answered.
    Regards,
    Srikanth
    http://bintelligencegroup.wordpress.com
    Edited by: Srikanth Mandadi on Feb 1, 2011 1:28 AM

  • Way to use Prompts , UDFs in Derived table

    Hi guys,
    In our org we have been using prompts in the derived tables. Derived table would return Single final select statement. Now that report requirements are complex we would have to use table variables, UDFs, and many select, delete, update statements. How should we handle many such statements in a derived table to return a result set for the report?
    If we cannot handle many selects in a derived table, I am hoping to use Table-Valued Function in the derived table something like this:
    create myFunction()
    Returns Table as (......)
    select * from myFunction()
    But then I should be able to use the user input prompts in the syntax: @PROMPT('test1','A',Multi,,). The user would input 5 such prompts from the report.
    Any ideas from anyone who has used Prompts, UDFs in a derived table?
    Environment: BO X1r2, Crystal x1r2, sql server 2005
    Thanks !

    In the past, I have opted to create complex logic in a server-side procedure, complete with prompts.  The prompt are passed to and presented in Crystal.  This way, instead of splitting the logic between UDFs, derived tables and prompts, you can keep the logic in a relatively tidy procedure.

  • Issue with use of shared variables in Crystal Reports 2008 Offline Viewer

    Hi,
    I have a report that contains a number of sub-reports which include drill-down functionality. The report returns data relating to an individual team with the user being able to view top level summary information in each area from the parent report and then drill into the sub-reports to view see more detail. The data returned by the sub-reports is filtered, using sub-report links, based on the team code parameter value given by the user. This parameter field resides in the main report.
    One of the values returned by the main report is the team name. This is passed to each sub-report using a shared variable and each sub-report displays this team name as part of a heading.
    This all works fine in Crystal Reports 2008, but when a report, containing data, is opened using Crystal 2008 Offline Viewer there is a problem with the shared variable. The value is displayed correctly when the user initially drills into the sub-report. However, when the user begins to drill into grouped data within the sub-report the value passed to the sub-report using the shared variable disappears. 
    How can I ensure that, when a report is viewed using Crystal Offline Viewer 2008, the value within the shared variable is not lost when users drill into grouped data within sub-reports
    Thanks
    Stuart

    Please re-post if this is still an issue or purchase a case and have a dedicated support engineer work with you directly:
    http://store.businessobjects.com/store/bobjamer/DisplayProductByTypePage&parentCategoryID=&categoryID=11522300?resid=-Z5tUwoHAiwAAA8@NLgAAAAS&rests=1254701640551

  • Use of global variables like g_cnt_transactions_transferred in the LSMW

    Hi SapAll.
    when i had a look at the some of the LSMW's whic use IDOC as the object of uploading data into SAP from external Files i have found in the coding under the step "Maintain Field Mapping and Conversion Rules" that they use some of the global variables like below
    .if p_trfcpt = yes or sy-saprl >= '46A'.
      EDI_DC40-DOCNUM = g_cnt_transactions_transferred + 1.
    endif.
    .EDI_DC40-CIMTYP = g_cimtyp.
    .EDI_DC40-MESTYP = g_mestyp.
    .EDI_DC40-MESCOD = g_mescod.
    .if p_filept = yes.
      EDI_DC40-SNDPOR = g_fileport.
    elseif p_trfcpt = yes.
      EDI_DC40-SNDPOR = g_trfcport.
    endif.
    my doubt is where i can find these variables 'g_cnt_transactions_transferred ','g_cimtyp','g_mescod','g_fileport','g_trfcport' in the LSMW and what is the use of the variable  'g_cnt_transactions_transferred ' in the LSMW.
    I have treid to find out the above listed variables looking in step 'Maintain Field Mapping and Conversion Rules' under global variabels list and the other lists also but i couldnt found.
    can any one help me in this ?
    regards.
    Seetha.

    Hi Seetha,
               In the LSMW Workbench go to the option user menu.  And check the option display conversion program.
    Now when you execute with the radio button on dislplay conversion program, you ll see the code that got generated in the background while you built your LSMW.
    The global variables that you have mentioned are bound to be there in this program generated in the background..
    You can put a break point here and see for yourself what the value of these global variables are at runtime.
    File port, TRFC port , no. of transactions executed by one run of the LMSW Idoc program , message type are some of the fields that you have asked for .
    Regards,
    Arun

Maybe you are looking for

  • New Mac Mini will not recognize bluetooth keyboard

    I just bought a new mac mini, and the apple keyboard.  I can see the welcome "Use english" screen, and I press ENTER on the keyboard but nothing happens!  I know the keyboard is not the problem becuase I tested it on my iPad and it worked.  I've un-p

  • Problem creating projectors in OS 10.6

    I working with Mac OS 10.6 and Flash in CS3 with 12g of RAM. Before upgrading my OS last year I could make swf files as well as IBM projectors (exe) and Mac projectors from my large Flash docs. However, in OS 10.6 I get an error message when trying t

  • I need to Known the states of CWDataSocket2_OnStatusUpdated,

    I developer MMI with Visual Basic, and need information about the event CWDataSocket2_OnStatusUpdated

  • Trying to 'Bind' in Active Directory

    When I click BIND, it asks for a user name and password and the 'admin' password is not working: It reads... Leave the advanced options alone for now and enter the name of your Active Directory domain. The computer's account in AD will reflect the Co

  • Removing apps from Launchpad

    I'm trying to remove some apps from launchpad.  I can't find them in the applications folder or anywhere with finder.  Tried dragging them to Trash but they just 'fly' back to the Launchpad.  Any ideas?