How to Pass dashboard prompt value to RPD variable??

Hi Experts,
I am creating RPD variable with below query in initialization block
SELECT extract(month from Max(report_date))  from xyz_date_dim where report_id=14 and year=:YEAR
I am having YEAR prompt in dashboard..from this RPD variable i want to get MAX(month) from selected year in dashboard.Here my problem is unable to pass selected YEAR to RPD Initialization block.
I read some threads we can pass user selected values to session variables. If possible can any one help me how to pass variable to achieve my requirement.
can any one help me in this....
Thanks,
KSS.

So you want to pick a month in a dashboard prompt and have the answers report filter for that month, and return results for that month, month -1, month -2 etc etc.
If so try the following, lets assume your measure is simply called 'count'
in the BMM you have measure 'count' with aggregation set.
Create a new measure in the BMM called 'count MAGO' or whatever you want (this will be month -1)
in the logical forumula for that column, use the AGO function, syntax would be AGO(count measure,<time dimension.Month>, -1) - this function is found under the 'Time Series Functions' category.
repeat steps to create 'count 2MAGO' and use -2 in the AGO function to take off 2 months.
Repeat for however many Mth Ago's you want.
Then in answers, simply use is prompted on your month fied to filter the report for the relative month, select your 'count', 'count MAGO', 'Count 2MAGO' etc, the measure will be calculated for prior months relative to your filtered month.
Sorted?

Similar Messages

  • How to pass dashboard prompt value to requests in folder

    Hi,
    I want to have a dashboard page that contains dashboard prompt for period and list with requests (for this I add Folder and select "Expand folder").
    If I use dashboard prompt to set presentation variables, the chosen value is not passed to requests in folder list and as I understand this is the way presentation variables work. Therefore I tried to use Request variable, but get the same result - value that is chosen in dashboard prompt, influences request only if it is shown in dashboard not if I open it from folder list.
    Steps I did:
    (1) Created session variable "Period", that users can alter. Initialization block is simple dummy select - Select ’2008.08’ from dual;
    (2) Created dashboard prompt that sets Request variable Periods;
    (3) Created report with session variable value in it:
    SELECT Time."Period code" saw_0, VALUEOF(NQ_SESSION.Period) saw_1 FROM "TEST" WHERE Time."Period code" = VALUEOF(NQ_SESSION."Period") ORDER BY saw_0, saw_1
    If I include this report directly in dashboard, it shows the session value that is set from dashboard prompt, however when I open it from folder list, it shows the default value 2008.08 although I have stayed in the same session.

    Iza, you are correct in your assumption regarding passing Presentation Variables to reports that are in the Folders object. If you have a dashboard prompt on the same page as the Folders object, then even if you select a value in the prompt, it will not pass when you click on the report name in you Folders object.
    Here is something you might want to consider to achieve what I think you are trying to do. Instead of having the Dashboard prompt on the first page, create a "table of contents" home dashboard page. What I mean is:
    1) First, create a Dashboard page with the prompts you wish to filter a report with and set the default values. Save this as the template dashboard page. Now, with a second copy of this template, drag one of your reports to this page. Save it. Using your dashboard template page, create another copy and drag the second report to this page. Save. Do this for each report you wish to display. Note that you can drag more than one report to a dashboard page.
    When you are done, you will have several dashboard pages, each with one or more reports and the dashboard prompts on the top of the page.
    2) Now on your "home page," drag the Link or Image to a section. Link this object to the first dashboard page you created in step one. Name the link the title of your report. If there are more than one report on this page, title the link appropriately. Click the "open in new window" checkbox. Drag a Link or Image object for each dashboard page you created in step one.
    When you are done, this home page will look similar to your Folders object, with links to each of your dashboard pages that contain the reports. When the user clicks on the link, the appropriate dashboard page will appear with the dashboard prompts and the report will be filtered on the default values. Now the user can change the values of the prompts as desired. When the user is done, he/she can close the window and he/she will be taken back to the home page to select another report.

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

  • Passing Dashboard Prompt values to different dashboard.

    Hi All,
    I want to pass the selected prompt values from my current dashboard to a different dashboard. I am using a navigate function to go to the other dashboard.
    The scenario is:
    I am using a column formulae to navigate to the different dashboard.The column formulae written is:
    case when rank ("Table".column ) <=10 then cast(rank ("Table".column) as char(10)) else ''||'+'|| '' END
    In this scenario, the dashboard prompts are not get passed to the other dashboard.
    In other case when I do not customize the column as stated above and in the Column Property just give a 'Navigate' in the Value Interaction it passes the prompt values to the other dashboard.
    Similarly can we do something in the column formulae or using something else to pass on the dashboard Prompt values to the other dashboard.
    Please Note that the dashboard Prompts in both the dashboards are exactly same.
    Regards,
    Bhavik

    Bhavik,
    Your nearly there, simply extend your URL syntax and pass the colum values with it, see here :
    http://sureshotstrategies.wordpress.com/2008/12/13/integrating-oracle-obiee-content-using-go-url-syntax-2/
    e.g
    http://webserver/analytics/saw.dll?Go&Path=%2Fshared%2FSupplier%2FRegionDollars&Action=Navigate&col1=Periods.%22Year%22&val1=%221999%22&op1=eq
    Passes colum : Periods.Year
    value : 1999
    operator : equals (=)

  • How i pass table column  value to string variable or return to java applete

    Hi Master,
    How do I pass a table column value into string variable. See my code below:
    import java.sql.*;
    public class Waheed {
    public Waheed() {
    public static void main (String args [])
    String s = "9 23 45.4 56.7";
    System.out.println ("going for connection");
    // DriverManager.registerDriver (new oracle.jdbc.driver.OracleDriver());
    try{
    Class.forName("oracle.jdbc.driver.OracleDriver");
    Connection conn =
    DriverManager.getConnection("jdbc:oracle:thin:@fahim:1521:aamir","muhammad","mfa786");
    Statement stmt = conn.createStatement();
    ResultSet rset = stmt.executeQuery("select accid from accbal");
    System.out.println ("going for connection");
    while (rset.next())
    s= rset.getString("accid"); this line give me error
    System.out.println (rset.getString("accid"));
    System.out.println (s);
    catch(Exception e){
    e.printStackTrace();
    This line give me an error:
    s= rset.getString("accid");
    s is string variable
    Plese give me an idea how I can pass accid in s variable.
    Thanks.
    Aamir

    See the code sample in the following thread (try using upeercase).
    JDBC  connection
    Kuassi

  • Pls help...How to pass a executed value to a variable?

    hi everyone im new here..
    ok im having prob in passing the executed value of a string into a variable for me to manupulate the value. sample codes as below :
    declare @Str varchar(500)
    declare @Str1 varchar(50)
    declare @Int varchar(50)
    declare @Str2 varchar(50)
    set @Str1 = 'where ET.isVerified = 1'
    set @Str = 'select sum(ET.Sundries+ET.Entertainment+ET.BalReimbursement+ET.Fee+ET.TrainerCharges+ET.SeminarPack+ET.Food+ET.Accomodation+ET.Flight) from ExpensesTransactions ET ' + @Str1
    EXEC(@Str)
    Answer : 16935.00
    so now i want to pass the output(Answer) into a variable so that i can insert the value into a table. anyone can help me in this thing . thank you so much..
    regards
    -nash-

    hi Jurek
    thanx for ur help dude, i change as what u said but i got this error msg "Incorrect syntax near '@Answer'"
    declare @Str varchar(500)
    declare @Str1 varchar(50)
    declare @Int varchar(50)
    declare @Str2 varchar(50)
    declare @Answer varchar(50)
    set @Str1 = 'where ET.isVerified = 1'
    set @Str = ' BEGIN select sum(....) INTO @Answer From ExpensesTransactions ET ' + @Str1 + ' END;'
    EXEC(@Str)
    print @Answer
    but then i change the script abit to 'Begin select....' + @Answer + ' From ..' + @Str1 + 'END;'...this time i got no error msg but there is no value in variable @Answer...
    thanx everyone
    - nash -

  • Passing Dashboard Prompt Value to multiple pages in a Dashbaord

    Hello,
    I have a situation where I neeed to pass value of Customer ID from first dashboard page to multiple pages belonging to same Dashboard. What is the best way to implement ?
    Thanks !
    Raj

    I created a presentation variable for the prompt and when I acess the same variable in the second page (for another report), its not giving accurate results. should I write an SQL and pass the variable to the report in the next page and so on ..?
    Thanks,
    Raj

  • How to reset dashboard prompt value to default by using of a radio button

    Hi All,
    I have a raido button to switch between 'quick search' and 'advanced search', 'quick search' is variable prompt, and its default value is 'OBIEE', when I switch to 'advanced search', I need to reset 'quick search' variable prompt to default value which is 'OBIEE'. and when I switch to 'quick search', I need to reset 'advanced search' selections to default value as well.
    Any help? much appreciated.
    Ling

    I agree with David_T.
    The best way is to use date column and calculations over it.
    Another way is to use for conversion months to date a code like that:
    1. It's a code for month-2, i.e. for JAN we get NOV
    MONTHNAME(TIMESTAMPADD(SQL_TSI_MONTH, -2, CAST('01.' || CASE WHEN "Time"."Month" = 'JAN' THEN '01' ELSE WHEN "Time"."Month" = 'FEB' THEN '02' ... WHEN "Time"."Month" = 'DEC' THEN '12' END || "Time"."Year" AS DATE))) 2. It's a code for month-1, i.e. for JAN we get DEC
    MONTHNAME(TIMESTAMPADD(SQL_TSI_MONTH, -1, CAST('01.' || CASE WHEN "Time"."Month" = 'JAN' THEN '01' ELSE WHEN "Time"."Month" = 'FEB' THEN '02' ... WHEN "Time"."Month" = 'DEC' THEN '12' END || "Time"."Year" AS DATE))) Then I advise to create a report with one column "Time"."Month" and filters - "Time"."Month" is promted OR "Time"."Month" = <formula from 1.> OR "Time"."Month" = <formula from 2.> When this report gets a "Time"."Month" equal 'JAN' then it returns 'NOV', 'DEC' and 'JAN'.
    In you report on dashboard you get previous report as a condition report for column "Time"."Month"
    It has to work.

  • How to translate dashboard prompt year/period into literal date range

    I am using OBIEE 10g. I have a dashboard that prompts for a fiscal year and fiscal period (both are numeric data types). I need to use these values in the date filter for my answers request - however, to fully utilize the indexes and partitioning that have been set up on my fact table (Teradata database) I need to be able to convert fiscal year/period to a literal date range and pass literal date values (i.e. 10/01/2011 - 10/31/2011) to my answers filter. So far I have been unable to do this, I'm hoping someone has some ideas.
    Here are some things I've tried so far:
    In the dashboard prompt, set variables var_year and var_period (which would be set to 2012 and 10, respectively). Create a filter on my answers request for Date (from calendar dimension) that calculates a min/max date value based on var_year and var_period. While this works to return data, the sql is not optimized as it does not contain literal date values for the filter (10/01/2011 - 10/31/2011).
    Create a subreport that takes the year/period from the dashboard prompt and calculates 2 columns, one for the "From Date" (using min calculation) and one for the "To Date" (using max calculation). Then create a filter on my answers request that uses the results of this subreport to create the date filter. Again this works - however, instead of passing the literal date values for from and to dates, it passes the min/max calculations so that these are executed again in the answers request sql. Therefore again this is not optimized, as it is not passing literal date values for the filter.
    I have only been able to get this to work by creating a prompt for entering a from and to date directly, and using this to pass to the answers request filter. This generates optimized sql as it contains literal date values. However, this is not acceptable to the users as they want to enter fiscal year/fiscal period at the dashboard prompt, not a date range.
    I have tried to get the fiscal year/fiscal period columns in the dashboard prompt to set another dashboard prompt for a date range, thinking I could then set new presentation variables for those from/to columns to use in the answers request, but I can't figure out how to do this. Is this even possible, to use a dashboard prompt value to set a subsequent dashboard prompt value?
    Is there some other method of converting these prompt values to literal dates that I am missing?
    Thanks in advance for any help you can provide.
    Rhonda

    Disregard. I gave up and just brought in the Fiscal Period Start Date and Fiscal Period End Date to the rpd so I can use them in the dashboard prompt, created presentation variables for each, and used those in the report filter.

  • 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

  • Problem with passing dashboard prompts

    Hi All,
    I have a problem with passing dashboard prompts.
    Scenario:
    I have a report with country(column interaction),amount sold and two prompts.when the user selects the particular country, i need to navigate to other detailed dasboard with 2 prompts and country.
    with the column interaction, am able to navigate to other dashboard with all the prompts only when the target dashboard prompts, defaults to presentation variable.
    but when the user directly opens the target dashboard, i have to display the report with the default values which am not able to achieve.
    All the prompts are customized prompts.
    Any suggestions would be greatly helpful.
    Thnx in Advance

    Hi,
    When you drill down, corresponding filter values get added to your report. So next time when you change the prompt values It does not give you proper data.
    So before you change the prompt values, you comeback to the default report. and try changing the prompt values.
    Otherwise you can do one thing, Do not enable drill in place for the report section. So when you try to drill down in the report, it takes you to the new page.
    And in the main page even if you change prompt values, It will work perfectly.
    Regards,
    TKB

  • Passing Dashboard prompts - Need help

    Hi All,
    I have a problem with passing dashboard prompts.
    Scenario:
    I have a report with country(column interaction),amount sold and two prompts.when the user selects the particular country, i need to navigate to other detailed dasboard with 2 prompts and country.
    with the column interaction, am able to navigate to other dashboard with all the prompts only when the target dashboard prompts, defaults to presentation variable.
    but when the user directly opens the target dashboard, i have to display the report with the default values which am not able to achieve.
    All the prompts are customized prompts.
    Any suggestions would be greatly helpful.
    Thnx in Advance

    Hi Rahul,
    This is a bug in 11.1.1.3, request for patch 10381088 to resolve this issue.
    Bug 10381088: DASHBOARD PROMPT VALS NOT PRESERVED WHEN NAVIGATING TO OTHER PAGES IN DASHBOARD
    Rgds,
    Dpka

  • Getting the dashboard prompt value

    Hello,
    I there a way on how can i get the dashboard prompt value when using other operators beside equal/is in. It seems that you can only set a presentation variable using the equal/is in operator.
    Also how can i get prompt value when using multi-select control?

    Hi. Yes, presentation variable is only for is equal to/is in.
    But no need to use other operators ( is less than or equal to, etc) if you want to write data in presentation variable, use equal/is in if you want to show data that is for example less and set presentation variable and in the report instead if IS PROMPTED write advanced SQL filter like:
    TABLE.COLUMN <= '@{pv}'
    You asked also how can to get prompt value when using multi-select control?
    No way to do that. But what do you need that information for. Lets say that you are able to do that and you put multiple values from multi-select into variable, where do you need to present that data? In the report? No need for that because the report is already filtered by it.
    Also check this one:
    Using multiple values row wise session variables in dashboard prompts and requests
    http://108obiee.blogspot.com/2009/10/using-multiple-values-row-wise-session.html
    Regards
    Goran
    http://108obiee.blogspot.com

  • How to pass a form value  as a url parameter??

    I have following form and I want to pass the selected value of the drop down choice in as one of the parameter in the URL. How can I do that ??
    something like proposalid that I have done in the url, I want to pass the selected value of the variable doc_id, when I click the Link button
    <form name = "link" method="POST" enctype="multipart/form-data" action="<%= request.getScheme() %>://<%= request.getServerName() %>/webAppCore/common/add_doc.jsp">
    <table>
         <tr> <td class="tableContent"> Doc Identifier: </td>
    <td class="tableContent"> <SELECT name="doc_id">
    <%
         Vector v = iddata.getDocumentIdList(tabName);
         //out.println(v);
         if (v != null && v.size() > 0) {
              for (int i = 0; i < v.size(); i++) {
              Hashtable hash = (Hashtable) v.elementAt(i);
    %>
    <OPTION selected name="id " value="<%=(String)hash.get("DOCUMENT_ID")%>"> <%=(String)hash.get("DOCUMENT_NAME")%></OPTION>
    <% } } else {%>
         <OPTION selected name="id " value="test"> No DocIDs</OPTION>
    <%}%>
    <tr> <td colspan = "2">
         <table border="1" width="200">
              <tr> <td> <input type="text" name="link_file" size="30" value=""/></td><td> <INPUT TYPE=button VALUE="Link..." onClick="window.open('<%= request.getScheme() %>://<%= request.getServerName() %>/webAppCore/common/link.jsp?proposalid=<%=proposalID>','mywindow','toolbar=no,location=no,directories=yes,status=yes,menubar=no,scrollbars=yes,resizable=yes,width=400,height=300,left=20,top=20');"></td> </tr>
              <tr> <td colspan = "2">
                   To Create Links: <br>
                   * Select Doc Identifier
                   * Click on Link...to select file within eFile. <br>
                   * Click Add to create the Link <br>
              </td> </tr>
         </table>
         </tr>

    if - in your form declaration - you change your method to GET from POST, it will append the form data onto the URL string instead of putting it in the request header. For instance, if you have a form with an input called THE_INPUT, and you submit to a servlet (or script of some kind or whatever) when the value of that text box is "foo", the URL will be:
    http://www.yourdomain.com/yourservlet?THE_INPUT=foo
    But, if you use the POST method, the URL will just be:
    http://www.yourdomain.com/yourservlet
    Is that what you meant?

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

Maybe you are looking for

  • Returning one row in  a view(only)

    Is there any function that I can use to return just one row from a query? I tryed the old LIMIT TO from rdb, but its useless... I´m using a Oracle8

  • How to access a jar file in EAR file?

    I have a EAR file which contains EJB.jar file and util.jar file. Outside of EAR, I mean in client side, I need to reference util.jar file. How can I access it? EAR structure is |--+META-INF/ |--|---application.xml |--|---manifest.mf |--EJB.jar |--|--

  • Officejet 7000 won't recognise cartridges

    We have an Officejet 7000 wide format inkjet which we have been using for about 1 year. All 4 cartridge lights started flashing at the same time. If I try the utilities like printhead cleaning it says no cartridges are recognised. I've removed & re-s

  • Problem in setting condition for a period of time for SUMIFS

    Dear fellows, I have a list of transactions - column B is a value and column C is a date. I'm using SUMIF to calculate a total value per month. I set the date condition as column C;">="&B1;column B;"<="&EOMONTH(B1;0) it seems there is a mistake as th

  • ESR connectivity with third party systems

    Hi all As given in the documents related to PI 7.1. Services from SAP CE and SAP PI can be configured into ESR. Is it possible to configure a webservice hosted by third party into ESR and any guidlines present for the same. Any pointers will be helpf