How use a prompt value on a varible?

Hi all,
I would like to use a prompt value in a varible. How I can do that??
Regards

Hi,
UserResponse function is used to capture the values entered in the prompt. The syntax is:
UserResponse([DataProvider];"PromptText") and it returns the prompt value in String format.
You can use this in your variable.
Regards

Similar Messages

  • How to use the prompted value in the filter expression

    Hi
    Is it possible to use the prompted value in the filter expression?
    My requirement is that user will be prompted for a date field and I need to filter the records such that the records are displayed for the last 5 weeks from the date entered by the user.
    If somehow I know how to use the prompted value in the filter expression then this requirement is easy to be done. If this is possible, please guide me?
    If there are other ways to acheive the desired results then please suggest.
    Thanks
    -Jaz

    Edit: example added
    SQL> create table tb_test
      2  ( id number(5)
      3  , tot number(5)
      4  , mon_tot number generated always as (tot*15) virtual
      5  );
    Table created.
    SQL> insert into tb_test (id, tot) values (1, 5);
    1 row created.
    SQL> select * from tb_test;
            ID        TOT    MON_TOT
             1          5         75
    1 row selected.
    SQL> update tb_test
      2  set    tot = 15
      3  where  id = 1;
    1 row updated.
    SQL> select * from tb_test;
            ID        TOT    MON_TOT
             1         15        225
    1 row selected.

  • How to get prompt value in Financial Reporting and use it as header

    Hi Oracle Gurus,
    I have Hyperion Financial Reporting 11.1.1.3. I created a report.
    I have Products dimension on rows. And I also have prompt for Products.
    Let's say there is 3 products, Product A, B, and C, with each has its own level 0 item (for example A1, A2, B1, C1)
    Currently in my situation, user will be prompted to select a list of Products, and then the report will display only the level 0 of the product chosen by the user. For example, user select Product A, then the report (or the grid) will display A1 and A2 on rows. User select Product B, B1 will be displayed.
    My question is, I want to create a dynamic header report, so how can I get this prompt value and use it as a report header? For example: Sales of Product A when user choose Product A, or Sales of Product B when user choose Product B.
    Thanks a lot for your response.

    Hi,
    Here is the possible way to achieve it:
    1. Insert a row (may be as row 1) in the report which has product as "User prompt".
    2. mark this row as hidden always
    3. User other rows as level0 of product in row 1
    4. Use MEMBERALIAS in your header to use product as dimension & row as row1
    Hope it helps !!
    Edited by: user8628169 on Jun 22, 2011 10:53 AM

  • How to use the prompt value in the report column

    Hi
    I have a report prompt column which is 'Adj Type' which holds values 10,20,30 and when user selects Adj Type = 10 then this value should be passed to report column.
    For Eg. Column 1 value is 10 and this should multiple with prompt value and the output should be 10* 10.
    Any thoughts how to capture the prompt values in report column for calculation.

    hi hsekar,
    1) Declare a presentation variable in prompt under the Set Variable section -->Presentation Variable -->P_var
    2) In Fx Table_name.Your_column * @{P_Var}
    @{P_var}{20} ( 20 is default value it will override when a user selects value in prompt
    Thanks,
    Saichand.v

  • How to pass prompt value to columns with formula?

    Hello guys
    I have a situation:
    I have a report with 1 column name 'product' and in this column it has a case statement like 'case when item is ('a','b','c','d') then 'Men' else 'women' end'
    Then I have created a dashboard prompt of the exact same column, and I defined the same case statement in the prompt's column formula as the same.. Then I tested the prompt and it is returning only 2 values 'men', 'women'..
    However, when putting the prompt and report on the same dashboard, the report is not accepting the prompt values..
    Then I set the presentation variable on the prompt and call it 'Product', then in the report I created a filter on 'product' column as equal to presentation variable 'product'--- I tried with and without single quotes.. So the filter itself looks like : case when ...... is equal to / is in @{product}
    However, when I then return back to the dashboard, I am getting the error:
    State: HY000. Code: 388918336. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 27005] Unresolved column: "Product". (HY000)
    Could anyone help?
    Thanks

    Hola
    is possible that are you using a BINS agrupation into the Column Formula?
    if you form a CASE statement using a Bins agrupation, in the column Formula, this must be disabled to match statements between columns and DB Prompt
    if you are using a BINS agrupation to form the CASE statement, you have to delete the bins agrupation in the Column but keep the CASE statement
    Regards

  • How to change the Value of a Varible while debugging in ECC 6.0

    Hi all,
    How can i change   and Save the Value of a varible while debugging a FM in ECC 6.0.
    I can able to change the Value of a variable by clicking the Pencil Icon (Change icon) which is there next to that value
    But i am not able to save that value
    Please give the suggestions
    Thanks in Advance
    Regards
    Ajay

    Ajay,
    I think you are changing more than one variable value at a time...this things generally happen in this case.
    Go step by step.....
    Press on the pencil button
    value filed becomes editable
    change the value
    and at once press the enter
    the ediatble field automatically becomes non editable, and hence retain the changed value.
    Pooja

  • Query Designer restricted key figures using a prompt value

    Hallo Experts,
    I would like to restrict key figures after user has beeen prompted to enter a date. I have 2 key figures:
    a) KF1, Date1
    b) KF2, Date2
    User should be prompted to select a specific date: e.g. 01/2011. After selecting/entering the prompted date value, it should be given to date objects for intance Date1=01/2011 and Date2=01/2011.
    How could I achieve it in Query Designer without using customer_exit function? Reason is that non-experienced users will use this report and they should not be confronted with complex query. Do you have any idea?  
    Many thanks
    Mamadu

    Hi,
    I assume that you need to restrict the value of keyfigures by date based on user input data on variable selection screen.
    First create one user input variable on your date field say for eg calday.
    Now restrict your KF1 with calday and choose that vairable which you created.
    For second KF2 which seems to me need to be restricted with offset of +1 based on the date entered by the user.
    So restrict this KF2 with calday and use the same variable with offset of +1
    I just misunderstood you ned calmonth or day because in requirement you have given month but you are calling it as date.
    If its month then replace calday with calmonth..
    Hope it helps.
    Regards,
    AL:
    Edited by: AL1112 on Dec 21, 2011 9:42 AM

  • How to display Prompt values in Narrative

    Using 11.1.1.6.2
    Within a dashboard page I have a table with a dimension hierarchy for organization. If you click a division it runs an action link to call a browser script (javascript in a text section on the dashboard) passing the division. If you expand the division and click a market it calls the same javascript function.
    The Javascript function then uses Go Path to refresh an analysis within an iFrame on the dashboard page and passes either the Division value or the Market value.
    The target analysis has two filters: Division is prompted and Market is prompted.
    So after all that my question is how could I display the two passed values from the Go Path call in a narrative on the target analysis? Or I guess the alternative question is how to display the filter values on the narrative.
    Sorry for the long explanation, but hopefully this makes sense.
    Thanks for any help or suggestions.
    Brad

    Use @n to include the results from the designated column in the narrative. For example, @1 inserts the results from the first column
    Assuming you want to show the selected value for Division from prompt.
    Add Division column in the report criteria and call it @1, where 1 is position of Division column
    You may hide the Division column from report, if you dont have to show in the report
    Edited by: Srini VEERAVALLI on Feb 7, 2013 3:22 PM

  • Is it possible to use a prompt value in rpd?

    Hi, experts!
    I have to solve the following task. A user choose a date (from calendar prompt) and according to the date (say - "+fix date+") see a report. In the report one dimension (say - "city") and quantity of registered requests in it. Each row in source table has registration date, close date and planed deadline and the filtration should use all this date like:
    registration date < fix date
    close date >= fix date
    planed deadline >= fix date
    Now, what I want to do. I'd like to create logical column in repository (say - "Vested remainder") where put that clauses. Is it possible in any way?
    As I read - no (according to pic. [http://shivabizint.files.wordpress.com/2008/10/obiee-variables-overview.jpg]). So, the only way is to use presentation variable in answers and filter values in formula mode. Right? No other way?
    =======
    Daniel

    Christi@n, it almost works! )) (really happy)
    But it shows me an error when I set a date (when the field of the prompt is empty - it works):
    If I set today date (in calendar prompt):
    A general error has occurred. [nQSError: 22024] A comparison is being carried out between non-compatible types. (HY000)
    SQL: SET VARIABLE testDate='21.4.2009';SELECT Dimtab_name_.NAME saw_0, Facttab_name_."Vested remainder" saw_1 FROM subjectarea_ ORDER BY saw_0
    .. and if I set another date (yesterday):
    A general error has occurred. [nQSError: 46046] Datetime value 20.4.2009 does not match the specified format. (HY000)
    SQL: SET VARIABLE testDate='20.4.2009';SELECT Dimtab_name_.NAME saw_0, Facttab_name_."Vested remainder" saw_1 FROM subjectarea_ ORDER BY saw_0
    what I did step by step :
    1) create a Session Variable in rpd testDate+ and default initializer CURRENT_DATE
    2) create logical column +"Vested remainder"+ based on existing column as
    *FILTER(_subject_area_._Fact_tab_name_.ROW_ID USING subjectarea_._Fact_tab_name_.RECORD_DATE <= CAST ( VALUEOF(NQ_SESSION."testDate") AS DATE ))*
    == I just filtered by one date (not three), to test the approach... and agregation rule for ROW_ID is set as CountDistinct, so here we have quantity by the hierarchies.
    == I set CAST AS DATE because without it result was error... but with this CAST I have the same =___=
    3) create a prompt taking a date column record_date and set Control as Calendar and Set Variable -> Request Variable -> testDate+
    4) make a report with Dimtab_name_.NAME+ and Facttab_name_."Vested remainder"+, then set the prompt and the report on a dashboard. And.. It seems to be workable:
    !http://lh3.ggpht.com/_7E85bAvCFxg/Se3V73xOEYI/AAAAAAAAAGE/u0Cfaa2GsI0/2009-04-21_181323.png!
    But... alas!
    !http://lh6.ggpht.com/_7E85bAvCFxg/Se3V7znxTfI/AAAAAAAAAGM/ti96_vswIA8/2009-04-21_181846.png!
    Hem!.. Is it a problem with date format? Well, if it so, than should be a way to set format for Request Variable... Unfortunately, the attempt to write +testDate[yyyy mm dd]+ was unsuccessful.
    P.S. Christi@n, as the way (according to the topic) was correct I marked the thread as "answered"
    ========
    Daniel

  • How to restric Prompts value in OBIEE 10g

    Hi Gurus,
    We have a prompts which consists of Dimension and fact. In prompts i have Fiscal year prompt from the Time dimension. When i put as a drop down it is showing all the values which are present in Time Dimension. My requirement is to have only the Fiscal year information which has the data in the fact table.
    For example: If my fact table if i have data from 2010 - till 2012 it should show me the values in that prompt feild 2010, 2011 and 2012. But it showing data from 2008 till 2020, which our Time dimension having the data.
    I tryed to use the SQL results but it does not take the greater or less then in the SQL.
    Please help me its bit urgent.
    Thanks in advance.
    Ali

    Hi Ali,
    Can you write a Sql using the following thing:
    Select Year_num from TimeDimension where Year_num In (2010,2011,2012)
    Try above else... Select timedimension.year from time dimension where timedim.year in ( facttable.year_num)
    step1: Select year from time dimension.
    step2: column: year from time dimen , operator : is equal/is in , control: drop down, show: change her to sql results (Add where year in
    (2010,2011,2012 ) , default: report defaults.
    Above displayes 2010,2011,2012 as year options.
    --- preview it should work
    Edited by: 831909 on Feb 6, 2012 9:18 AM

  • IS IT POSSIBLE TO USE DASHBOARD PROMPT VALUE  TO FILTER THE RPT LVL PROMPTS

    Hi All,
    In one of my dashboard i had one dashboard level prompt say "Year".Below one report is embeded and it has one report level prompt say 'Plan Component".
    Issue here is report is filtering with proper Year value but In report level prompts it includes all other year values say like 2008,2009,2010.Even though i select 2010 in the dashboard promt.
    So well am approaching this issue with presentation variables.still am not able to get desired result.
    Please share your ideas and thoughts if you face this issue some time earlier.
    Thanks in Advanvce,
    Regards,
    Govardhana

    Hi All,
    In one of my dashboard i had one dashboard level prompt say "Year".Below one report is embeded and it has one report level prompt say 'Plan Component".
    Issue here is report is filtering with proper Year value but In report level prompts it includes all other year values say like 2008,2009,2010.Even though i select 2010 in the dashboard promt.
    So well am approaching this issue with presentation variables.still am not able to get desired result.
    Please share your ideas and thoughts if you face this issue some time earlier.
    Thanks in Advanvce,
    Regards,
    Govardhana

  • How to calculate the value from prompt and use the value as filter

    Hi everyone,
    I am designing a OBI query. I want to write a query and one of it filters comes from the dashboard prompt. Say I want to make a query to pull out the record for 3 consective years and user wants to enter the last year # and omit entering the first 2-year code#.Thanks!

    Hi,
    if i understand your question
    you have a prompt for year.. and it's assigned with presentation variable, say: var_year
    And you are just entering value for only one year, say 2000.
    Then, the request (which is using that prompt value as filter) should display year values 2000, 2000-1 (i.e. 1999), 2000-2 (i.e. 1998).
    Is this your requirement?
    If then,
    Hope you are using edit box as control for year prompt and assign a presentation variable for that prompt.
    Now, in report go to filter of year prompt, click on advance > Convert this filter to SQL.
    write here... *Times.Year between @{var_year} and @{var_year}-2*
    And make sure that your var_year is integer, if not cast it to integer

  • Displaying Prompt values in webi report

    Hi,
    How to display prompt value in my webi report.
    For one prompt value I can user Userresponse function.
    In one of my report, I have a prompt for Date, which also should be displayed in the report under one field. I am using the below formula: =UserResponse("Enter Date:")
    But my new requirement is User wants a Date Range for a particual trasaction date. I created a report level prompt like
    Transaction Date Between "Enter Tran Date(Start):" and "Enter Tran Date(End):"
    I need to display the start date and end date user selected under one field Date in my webi report.
    how should I do that.
    Please share your thoughts.
    Thanks,
    Ven Men

    Hi Ven,
    You have created a report level prompt like
    Transaction Date Between "Enter Tran Date(Start):" and "Enter Tran Date(End):"
    1.Drag two blank cell on report.
    2.click on one blank cell and on formula editor type following formula.
    =UserResponse("Enter Tran Date(Start):" )
    This will show you start date in the cell.
    3.Similarly in another cell type the following formula
    =UserResponse("Enter Tran Date(End):" )
    This will show you End Date in respective cell.
    Do revert in case of any queries.
    Thanks,
    Sandeep B. Singh

  • How to pass the prompt value to repository variable in obiee 11.1.1.7

    Hi All,
    I am given a tabular report to build in OBIEE 11.1.1.7 version using insurance data.
    I have to show different types of claim names and their corresponding count in the table. One of the calculations require me to use the total no of claims(i.e sum of all the claims).
    Example:
    Total No of claims: 600
    Total No of Auto Claim: 60
    I have to create a table on Auto Claim like:
                   claim types       count
                        X                    10
                        Y                    20
                        Z                    30
    I was calculating total no of claims by using dynamic repository variable as it was a constant value. Example: repository_variable1: select count(claim ID) from Insurance; In report I was just using value of (repository_variable1)
    Now client has asked us to give date prompt so the total no of claims (assumed as 600) will change with respect to period. I can calculate total no of claims with respect to different claim type (as shown in the table above) with respect to period filter in the report.
    The problem I am facing now is, I need the count of all the claims on a partucular period too. Repository variable is giving always calculating the count as 600. But the count should change with respect to period selected. How to get this value?
    Can I create a presentation variable in the prompt and pass this value as an argument for repository variable?
    Please help. I am in urgent need of the solution.
    Thank you.

    Hi Srini,
    I tried creating it as metric. But the problem is my pivot table is on Auto Claims.
    Let me try to make myself a bit more clear.
    Total No of claims in fact table: 600
    Total No of Auto Claims in fact table: 60
                    claim types(auto claims)       count        Calculation
                        X                                        10             10/600
                        Y                                        20             20/600
                        Z                                        30             30/600
    So I need to access total no of claims to calculate. I cant use a metric as the count will take group by with respect to auto claim type and give value only for X claim.

  • How to display the current date in the prompt value.

    Hi,
    How to display the current date in the prompt value. When the user runs the query he want the current date to be displayed in the prompt value and he should also be able to change the date if required ...... I am using web Intellegency BO XI3.0.
    Thanks,
    Shakthi.

    Please refer the below link.
    Prompt  with  default  date   (  currentdate-1  and current date-8)
    http://www.dagira.com/2008/07/15/how-can-i-make-today-my-default-prompt-value/
    http://www.dagira.com/2008/07/21/using-a-magic-date-value-in-prompts/
    Regards,
    Bilahari

Maybe you are looking for