Return a Range of Value from Dashboard Prompt

From example, 'Day' column has values from 1 to 365 and I set it as a dashboard prompt. If I want to select a range of value from 'Day', I can use 'is between' operator. Then I can select a range of day value from 1 to 365.
My additional requirement is to return a fixed range of value. For example, the maximum range is 31 days. That means if I select day 1, the result should display 1-31. Also I should be allowed to select a range fewer than 31 days. In short, I need to return result from minimum 1 day to maximum 31 days. Is it possible for dashboard prompt? or there are other solutions?

Let's see. To answer your first question, yes, you will end up having two prompts that hold values 1-31. The user will select one value from the first prompt, say 2, and a value from the second prompt, say 31. Since both of these prompt values are stored in presentation variables, you can use them in the filter on the "day column" in your report (i.e., 'Day' greater than or equal to pvStartDay and less than or equal to pvEndDay). This will give you the range on your report.
The reason for the CASE WHEN 1=0 is because you are using the Day column twice in your prompt. OBI only allows you to use a column once in your report. It is also to protect the column from being affected by the prompts.
Check this link for details:
http://oraclebizint.wordpress.com/2008/02/26/oracle-bi-ee-101332-between-prompts-for-date-columns-using-presentation-variables/
Now, based on your second post, it appears your conditions are different. You are selecting actual dates, not a number from 1-31.
TomChan wrote:
Maybe I can describe my case in a simple way. I have a startDate prompt that can select all date values. If I select a date value from startDate prompt, says '20090101'(in yyyymmdd format), the endDate prompt should display maximum 31 values(i.e. 20090101 - 20090131) basing on the selected values of startDate prompt. Then I further select a value in the endDate prompt to filter the report. Is it possible?I am a bit confused. It seems that you want the first prompt to display the first day of the 12 months of the year and once selected, the second prompt would be constrained to show the days of that particular month from which the user would select the "end date"? But then you say "basing [sic] on the selected values of starDate prompt" -- you have "values" as plural. Does this mean the user can select multiple values in the first prompt?

Similar Messages

  • How to pass values to dashboard prompts from external applications

    Any idea is well appreciated.
    How can I pass values of dashboard prompts from external applications to the dashboard prompts so that the dashboard is prefiltered based on values sent by external applications.
    Thanks in Advance!
    Kris

    Kris,
    i am able to change the session variable and able to call the dashboard from external app, but i identified prompt value not changing. but Finally i am able to found a workaround for you.
    Use the following URL and it explained here
    http://localhost:9704/analytics/saw.dll?Dashboard&nquser=Administrator&nqpassword=Administrator&PortalPath=/shared/abcd/_portal/dash1&Options=rmf&DSN=madan
    PortalPath is your dashboard location. /shared/abcd is folder where i saved dashboards. dash1 is my dashboard name.
    internally this dashboard includes many reports that uses the session variable. after doing above this i am able to update the session variable to the value i have given in URL, DSN=value.
    You may observer here that calls the dashboard and passes the value but its not updating the prompt value. so workaround for this is edit your prompt,
    change the Default to - SQL Results and place the sql
    SELECT CASE WHEN 1=0 THEN Markets.Region ELSE VALUEOF(NQ_SESSION.DSN) END saw_0 FROM Paint
    again here Market.Region is column from presentation layer and Paint is subject area. After doing this step, your prompt always shows value in the session varible as default.
    Now include reports and dashboard prompt in the dashboard and run this url from external applicaitons.
    http://localhost:9704/analytics/saw.dll?Dashboard&nquser=Administrator&nqpassword=Administrator&PortalPath=/shared/abcd/_portal/dash1&Options=rmf&DSN=madan
    it worked for me and blog this soon. if it works for you mark the question as answered and mark my replies as correct.
    thanks
    - Madan

  • Constraining Values in Dashboard Prompts

    Hi,
    I have a question about constraining values in dashboard prompts. Do all fields need to come from the same table as I am finding constraining values is not working where I am selecting some values from different tables:
    For example
    Start Date - Fact Table
    End Date - Fact Table
    Salesperson - Org Dim
    Market - Org Dim
    Introducer - Org Dim
    Customer - Org Dim
    I am trying to constrain values beginning from Salesperson and so on but this does not work.
    Is this the expected behaviour? should all values be retrieved from the same table in order for this to work?
    Thanks

    Hi,
    Below is the filter I am applying in the report:
    "Agreement Fact"."Prop Creation Date" >= Evaluate('to_date(%1,%2)','@{startdate}','YYYY-MM-DD HH24:MI:SS')
    and "Agreement Fact"."Prop Creation Date2" <= Evaluate('to_date(%1,%2)','@{enddate}','YYYY-MM-DD HH24:MI:SS')
    and Organisation.Market = '@{market}'
    and Organisation."Sales Person Name" = '@{salesperson}'
    and Organisation."Introducer Name" = '@{introducer}'
    and Organisation."Customer Name" = '@{customer}'
    I have selected constrain in the report from salesperson onwards but instead when I run the dashboard report the values beginning with salesperson do not show.
    I definitely know that data exists for the date parameters(startdate and enddate) and market parameter. I have run a report in answers using the same parameters as in dashboard and do see data.
    Can anyone help?
    Thanks
    Edited by: sliderrules on 14-Mar-2011 05:57

  • Passing Values to Dashboard Prompt

    Hi Gurus,
    I have a summary Dashboard page with summary report and prompt build on Summary table , and i have a detail dashboard page contains Detail report and prompt same as Summary but these prompts are from Dimension tables and report from fact and Dimension.
    The requirement is Once i click some value in Summary dashboard it has to pass the values to Detail dashboard ( Means Passing the values to Dashboard prompt) and show the result in detail.
    As i cant use the OBIEE navigation logic to pass the values as prompts columns are not from same table. So i thought to use the GO URL this also i cant use as i am using Pivot table in Summary report. I thought to use Summary prompt in the detail Dashboard and create a dummy reports based on the prompt and resultant value pass to the Detail reports. I am able get the values but i am not getting proper answer. I dont no why .
    Is i am doing correct ? i know its not elegant way. If some one give me tip or direction that will be great help.
    Thanks in advance.
    Regards
    Ali

    If you are attempting to pass a value from one table1.column1 to another table2.column2 where the two do not match then you will need to use a presentation variable to hold the value. You can populate the variable using a hidden dashboard prompt that has the table1.table2 and read the value into a variable. You can then use this variable to filter the table2.column2

  • How to get value in dashboard prompt from database

    Hi All,
    I am using dashboard prompt (Year Prompt) to filter reports on year basis.
    fact table stores the hit date on a particular site linked with date dimension table .
    I have Datas in fact table say from year 2005 to 2009 .In dashboard Prompt it is showing me all the years 1990 to 2021(that are in date dimension).
    I hard coded the value of years in prompt now it only showing me years 2005 to 2009.
    My question is that is their any way that prompt automatically take values from database, those years which are stored in fact table ?
    Thanks in advance.

    Hi...
    Try writing query for dashboard prompt to get desired values..
    *select distinct year(FactTable.HitDate) from SubjectAreaName*
    To work this.. you should have HitDate column in presentation layer. (You can drag this column from fact in BMM and drop in any dimensions of presentation Layer, and name it as HitDate (Fact).. some thing like this...

  • How to retain the presentation variable values for Dashboard Prompt

    I've a dashboard prompt with date and two other drop down field, with default value as yesterday's date set for date and All Values set for other two drop down list. Presentation Variables are D1, P1 and P2 respectivilly
    I'm using GO URL from "Report A" and passing presentation variable to navigate to other report (Report B) that works fine. eg:
    '<a href = saw.dll?GO&path=/shared/Reports/ABC/ReportB&Action=Navigate&p0=1&p1=eq&p2="-%20Time"."Next%20Day"&p3=@{d1}>Test</a>'
    From Report B I'm using Dashoard URL to go back to Previous Report like:
    <div class="XUIPromptEntry minibuttonOn">
    Return to Previous Screen</div>
    This also works fine.
    My problem is that, when users selects different values in the Main dashboard prompt for date and other other two drop down and navigates to other report (Report B), and from Report B, when user returns to previous screen (Main Dashboard), Prompts values gets refreshed to original default values.
    Is there any way to retain the values of presentation variable in dashboard Prompt when I return to main dashboard from Report B?
    I'd appreciate your help.
    Thanks

    Change your dashboard url include the column and column value for the date column sample shown below,
    [a href=saw.dll?Dashboard&PortalPath=/shared/sample/_portal&page=pagename&Action=Navigate&col1=Dim.Date&val1=@1>Return to Previous Screen[/a>
    In my second report Date is the first column so I referenced it's value as @1 in the dashboard URL
    note: replace [ with <
    Thanks,
    Vino                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Can you control format when setting variable from dashboard prompt?

    I'm setting a session variable from a calendar date prompt in a dashboard prompt, and the variable is referenced in a calculation in the business model. I'm initializing the date prompt from another variable which returns format TIMESTAMP 'YYYY-MM-DD 00:00:00', and the initial load of the dashboard is successful. After changing the value of the date prompt, the query fails because the prompt sets the variable to 'mm/dd/yyyy'.
    My question is: Is there any way to control the formatting when setting a variable from a dashboard prompt? I would like to get the timestamp format.
    Thanks,
    Greg

    If You wants time than in dashboard prompt's coloumn formula use cast function as "cast(date as time)" if date than "cast(date_col_name as date)". But I also have that one problem.Firstly tell me, Is it possible that using two dates in using betwwen operator in dashboard. We access server variable. If not working one thing more that u should have filter on date coloumn in report layout.And in action coloumn u select prompted. Than It will must work.
    Thanks
    Haroon

  • List values from different prompts into one.

    Hi All,
    We have OBIEE 11g and building Analysis out of Essbase cube. Here is our Requirement we need to build a Dashboard prompt which shows values from different tables.
    All these tables belong to one dimension and this has about 10 tables in it. So the prompt which we build should pick specific values from each table.
    I know we can build prompt for every table which we will end up with 10 prompts which doesn't look good so we need to show all the values of these ten prompts in single drop down (One Prompt)which we can use for refreshing the dashbaord.
    Say we have table names as Gen1.Organisation, Gen2.Organisation,.........Gen10.Organisation
    Thanks,
    Shashank

    are there any dependancies on the selections e.g if you pick Gen1.Organisation1 does this mean that you can only pick Gen2.OrgA or Org B?
    if there are no dependancies and you want all possible combinations across ten tables then you are looking at one huge drop down list !!

  • Default value in dashboard prompt

    Hi,
    I have created 2 dashboard prompt one is projectnumber another one is date which is in 'MON-YYYY' format.
    My requirement is date prompt default value one month before a current month.
    Example if it is February 2012 it must displayed as JAN-2012
    Thanks in advance.

    Hi RR,
    Edit the Prompt.
    Under Default Selection select SQL Result and place the following query:
    SELECT concat(upper(CAST (MONTHname( TIMESTAMPADD(SQL_TSI_MONTH,-1, CURRENT_DATE)) AS CHAR(3))),concat('-',cast( YEAR( TIMESTAMPADD(SQL_TSI_MONTH,-1, CURRENT_DATE)) as char)))
    FROM "OBIA"
    Try this.. I think it will solve your issue.

  • Using a Sql Result in Default Value of Dashboard Prompt

    Hi,
    I Create a Dashboard Prompt, this have two dates, the initial and the last for a period to filter. I need to set the default value in the fist and last date of the previous month, for example, if today is 20th of november the default value of initial date has been 1th of October and the last date has been 31th of october.
    I used in default the option 'SQL Results' and use the next sentences:
    SELECT TRUNC(add_months(sysdate, -1), 'MM') FROM dual;
    SELECT TRUNC(last_day(add_months(sysdate, -1))) from dual;
    But when I try to use the dashboard prompt the result is:
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 27002] Near <(>: Syntax error [nQSError: 26012] . (HY000)
    SQL Issued: SELECT TRUNC(add_months(sysdate,-1),'MM') FROM dual
    When I try to use only select sysdate from dual; the result is:
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 27004] Unresolved table: "dual". (HY000)
    Thanks for your help.

    Thanks for your help. Finally I solve this issue of
    this form:
    1. I Create a Initialization Block with the next
    sentences:
    SELECT TRUNC(add_months(sysdate, -1), 'MM')
    INITIAL_DATE ,TRUNC(last_day(add_months(sysdate,
    -1))) END_DATE, To_char(TRUNC(add_months(sysdate,
    -1), 'MM'), 'YYYYMM') PERIOD FROM dual;
    2. Then I Create three Repository Variables and
    assign the Initialization Block to this
    3. In the Dashboard Prompt I use the "Server
    Variable" Option in the default and call the three
    variables.
    Thanks again
    EdwinHi: How u access server variable with two fields of date. Actually, I am doing the same work. But I can not do this work. Because this is ok when the date is greater than or less than. When i use between, in default server variable button did not show any text area for reoository variable. I also made initailization block with 2 fields.
    My Task is, I have to initialize the one date coloumn. From Date: and To Date. Pluzz help me in section
    Ali Haroon Nawaz

  • How to set the default value in dashboard prompt?

    Hi there,
    In my Dashboard prompt I'm getting values like:
    Mar 2010
    Apr 2010
    May 2010
    Jun 2010
    How to set the default value to the current month (Jun 2010). I don't want to use "specific value". I want to use the "SQL Result" for populating the default value.
    Appreciate your help

    hi,
    you can create a Repository variable current_month with the expression as
    select to_char(trunc(sysdate),'Mon')from dual
    and use this in the prompt "Default to" Server variable and use this repository variable.
    hope this helps.
    cheers,
    vineeth

  • Can I pass ID of the table instaed of value in dashboard prompts?

    HI,
    Say, I have a table QUESTION which contains 2 columns: ID, DESCRIPTION.
    sample data:
    ID DESCRIPTION
    1 TEST
    2 TEST1
    3 TEST11
    4 TEST
    Herer the DESCRIPTION is stored in the order they appear in a portal application
    Please note that the value of ID 1 & 4 are lexically same
    I now make DESCRIPTION column sorted on ID column in LOGICAL layer and use DESCRIPTION in my dashboard prompt, it will list :
    TEST
    TEST1
    TEST11
    TEST
    but once I select any of the TEST value the results will be shown against both the TEST value, what I want is that if I choose the first TEST value I get the reults against it and when I choose the fourth TEST value I get the results against it only.
    IS this feasible ? Can we pass ID instead of DESCRIPTION as filter ?
    Any other ideas are welcome.
    thanks
    Rishabh

    Maybe this solution works also for you:
    Regarding 1 prompt returning 2 values
    Regards,
    Stijn

  • Sorting a column does not result in distinct values on Dashboard prompts

    Hi,
    We have a period column, the records of which are 'JAN-02' , "FEB-02"...."DEC-09". We need sort this column in descending order in Dashboard Prompts. We have another column "Date", which has been used to sort the period column. To achieve this in descending order, we have converted Show Results from “All Values” to “SQL Results” in dashboard prmpts, then entered the below sql.
    SELECT "CODE COMBINATIONS"."LINE AC PERIOD" FROM INVOICE_PAYMENTS
    order by "CODE COMBINATIONS"."LINE AC DATE" desc
    The above sql resulted in non-distinct values as below. Using distinct in the above sql throws syntax error.
    Period
    JAN-09
    JAN-09
    JAN-09
    FEB-09
    FEB-09
    How do we get distinct values and in descending order??
    Thanks and appreciate any ideas
    Surya

    Go to advanced tab and check "Use distinct clause" that will fire a distinct to the query.
    In the rpd month logical column , there is an option called sort order in the general properties and you need to specify the date column if you need to sort it based on the date column and in the Answers you can simply enable Descending sort order on the same column. That should take care of it
    Hope it helps
    Thanks
    Prash

  • Not to show values in dashboard prompts

    hi friends,
    I have a rek suuch that .....I have a dashbaord prompt named by nameid in which it has
    NameID
    sunny
    katie
    david
    scare
    but i need only
    NameID
    sunny
    scare
    how to show these values in the dashboard prompts.any help plzzz

    Balaa give you right suggestion
    SELECT "Table"."NameID" FROM "SubjectArea" WHERE "Table"."NameID" IN ('sunny','scare')But in your case it's too hard. May be a lot of records in a "Table", for example 1000, and only getting 2 of them is too wasteful.
    What version of OBIEE do you use? 10g?

  • How to return more than one value from a  function

    hello everybody,
    Can anyone tell me how to return more than a single value from a function, the problem is i have 4 points,
    2 points form one line ,another 2 points form 2nd line ,each point is 3 dimensional(x,y,z coorinates) so i will pass these values to func(x1,y1,z1,x2,y2,z2,x3,y3,z3,x4,y4,z4), i will find the point of intersecton of two lines and i will get it as x,y,z , now how to return these 3 coordinates,usually the function returns only one value, please help me to solve it out.
    Thanks.

    I think the easiest way or trick here is (easiest isn't always the best as we know, but atleast this one will work) to create simple data array. and pass that. Create an array with:
    <code>
    class justArray {
    int x=0
    int y=0;
    int z= 0;
    ...somewhere
    justArray[] points= new justArray[4];
    points[0].x= ..
    points[0].y= ..
    points[0].z= ..
    points[1].x= ..
    return points[]
    </code>

Maybe you are looking for