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.

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 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?

  • Clear default dashboard prompt values

    We have created a few dashboard prompts that are defaulted to server variables. When a user enters the dashboard page, they want to these values to be populated with a start and end date for a specific reporting period. They also want to be able to select a different reporting period (year, quarter, etc.). We have put a "Clear my Selections" button on the page, but that does not clear the prompts that have a defaulted value. The only workaround is to manually deleted the defaulted values, which makes the clear button almost useless and difficult to train the users.
    Any thoughts?

    Hi Chris,
    If you haven't tried, use the code to place a button to clear your selections.
    $div align="right" class="XUIPromptEntry minibuttonOn" $
    $a href="#" onclick="return PersonalizationEditor.removeDefaultSelection(false)"$
    Clear all criteria
    $/a$
    $/div$
    Replace $ with < or >
    Yar.

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

  • 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

  • Dashboard prompt value not carried over to report in a Link on Dashboard

    The Dashboard prompt value is not carried over to the report displayed as a link on the dashboard. The report has the 'Is Prompted' filter. It does not work in both cases:
    1. when the report in the shared folder is specified in the link.
    2. when the report in a different page on the same dashboard is specified in the link.
    Please help.

    First change column data format to HTML.
    Then use following syntax:
    '<aa href = "http://server/analytics/saw.dll?Dashboard&PortalPath=%2Fshared%2FPortal%2Ffolder&Page=pagename&Action=Navigate&P0=3&P1=eq&P2=Tablename1.column1&P3=1+'|| cast(Tablename1.column1 as varchar(30)) ||'&P4=eq&P5=tablename2.column2&P6=1+'|| cast(Tablename2.column2 as varchar(30)) ||'&P7=eq&P8=tablename3.column3&P9=1+'|| cast(Tablename3.column3 as varchar(30)) ||'" TARGET="_blank"> <ffont color = #000099>'|| cast(Tablename1.column1 as varchar(30)) ||'</ffont></aa>'
    change ffont to font and <aa to <a and </aa to </a

  • 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 (=)

  • From two given tables, how do you fetch the values from two columns using values from one column(get values from col.A if col.A is not null and get values from col.B if col.A is null)?

    From two given tables, how do you fetch the values from two columns using values from one column(get values from col.A if col.A is not null and get values from col.B if col.A is null)?

    Hi,
    Use NVL or COALESCE:
    NVL (col_a, col_b)
    Returns col_a if col_a is not NULL; otherwise, it returns col_b.
    Col_a and col_b must have similar (if not identical) datatypes; for example, if col_a is a DATE, then col_b can be another DATE or it can be a TIMESTAMP, but it can't be a VARCHAR2.
    For more about NVL and COALESCE, see the SQL Language manual: http://docs.oracle.com/cd/E11882_01/server.112/e26088/functions119.htm#sthref1310
    I hope this answers your question.
    If not, post a little sample data (CREATE TABLE and INSERT statements, relevant columns only) for all tables involved, and also post the results you want from that data.
    Explain, using specific examples, how you get those results from that data.
    Always say which version of Oracle you're using (e.g., 11.2.0.2.0).
    See the forum FAQ: https://forums.oracle.com/message/9362002

  • How to reset the iphone without being able to use the screen?

    how to reset the iphone without being able to use the screen?

    What do you mean by reset?
    Reset: Hold the Sleep/Wake and Home buttons and don’t let go until the screen goes dark and the Apple logo appears (no data will be lost)
    or wipe and restore?

  • How to reset the iphone without being able to use the screen or the sleep and awake button?

    how to reset the iphone without being able to use the screen or the sleep and awake button?

    Hey einsoccerstar,
    Thanks for the question. You can restore your iPhone in recovery mode utilizing the home button:
    If you can't update or restore your iPhone, iPad, or iPod touch
    http://support.apple.com/kb/ht1808
    Thanks,
    Matt M.

  • How do you make mobile numbers the default number used in your contacts for sending text?

    How do you make mobile numbers the default number used in your contacts for sending text?

    Go to your contacts, find the contact that you wish to text, hit 'edit', and move that contact's numbers around until the mobile number is at the top. Arduous I know, but it works. Now when you go to text that person, the mobile number should be the default.
    Best.

  • How to use Checkbox  and radio buttons in BI Reporting

    Hi BW Experts,
       My Client has given a report in ABAP format and the report has to be develop in BI.It contains Check boxes and the radio buttons. I don’t know how to use Checkboxes and radio buttons in Bex.For using this option, do we need to write a code in ABAP.Please help on this issue.
    Thanks,
    Ram

    Hi..
    Catalog item characteristic
    - Data element
    - Characteristic type
    Entry type
    List of catalog characteristics
    Designer
    Format (character)
    Standard characteristic
    Alternative: Master characteristic
    (used for automatic product
    assignment)
    Simple entry field
    Alternatives:
    Dropdown listbox or radio button
    list

  • Hide values on dashboard prompt and set defaults

    I have a prompt with 3 values,
    1) Year-Qtr
    2) Year-Qtr Start Date
    3) Year-Qtr End Date
    2 and 3 are constrained based off of what is in the Year-Qtr drop down. How can I get 2 and 3 to automatically have the values set and also be hidden to the user.
    Is this possible?

    Check this thread out for different ways of hiding dashboard prompts which is already posted in our forums:
    Hide dashboard prompts
    And regarding the populating the default values based on the value selected in the other prompt is not possible. The default value will always be a hardcoded vaule which can be in the form of presentation variable or sql results or an expression.
    Hope it helps
    Thanks
    Prash

  • How to sort dashboard prompt elements

    Hi,
    I have a group dashboard prompt in which there are two prompts: fiscal year, and month. The month prompt is contrainted, that is, if a fiscal year is chosen, the month prompt shows only those months for the fy. My question is how can the month prompt is sorted in decending order? Appreciate any input.
    May

    Hi....
    If that is the case,
    you need to made 2 different prompts..
    Assign a variable for Year prompt as year_var something like this..
    And save with any name..
    Now create other prompt. here you need to write a SQL in Show SQL part of your prompt.
    SQL look like the following...
    *SELECT month FROM SubjectAreaname WHERE YEAR = '@{year_var}' ORDER BY month DESC*
    Save this with different name..
    Now add these 2 in one dashboard page..
    But due to this.. you find 2 GO button for each prompt.
    First you need to select value from Year prompt then click on First GO button, after your month column will be populated with values corresponding to that year.. in descending order.. So again Go..
    Hope it's clear..

Maybe you are looking for