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.

Similar Messages

  • How to translate text on a page into actual data on another page?

    I would like to translate (parse and replace) the words that are on one page into their actual values on another page. These words are in a text area box that are displayed as the following:  [[type name]] and [[start date]].  Again, I'm trying to show their actual values on a different page.  Any help will be greatly appreciated.

    They are in a text area.  I'm basically trying to get what is in the Problem Description text area  translated into actual data from the database i.e. EVENT TYPE NAME=EVENT.EVENT_TYPENAME. 
    Please click on the following click to see the code I would like translated:  http://pastebin.com/imfuSTbT
    Please click on this link to see code for the page where the translation occurs:  http://pastebin.com/m2t9Vp7w

  • Split period into different date ranges

    Hi,
    Can someone let me know if there is any standard Function module that can split up the periods? For example I have a total period 01.01.2008 to 31.12.2008 and I have a split period of 01.04.2008 to 30.04.2008.
    Now my resultant period should be,
    1. 01.01.2008 to 31.03.2008
    2. 01.04.2008 to 30.04.2008
    3. 01.05.2008 to 31.12.2008
    Thanks,
    Prasath N

    Are there no programmers around your site?  This really is tremendously basic.
    PARAMETERS: p_dat TYPE d.
    CONSTANTS: c_start_of_all_periods TYPE d VALUE '20080101',
               c_end_of_all_periods   TYPE d VALUE '20081231'.
    DATA: start_of_first_period TYPE d,
          end_of_first_period   TYPE d,
          start_of_split_period TYPE d,
          end_of_split_period   TYPE d,
          start_of_2nd_period   TYPE d,
          end_of_2nd_period     TYPE d.
    IF p_dat LT c_start_of_all_periods OR p_dat GT c_end_of_all_periods.
      WRITE: / 'Outside range'.
      EXIT.
    ENDIF.
    start_of_split_period = p_dat.
    start_of_first_period = c_start_of_all_periods.
    end_of_2nd_period = c_end_of_all_periods.
    * Get first day of supplied month
    start_of_split_period+6(2) = '01'.
    * Get day before the first day of supplied month
    end_of_first_period = start_of_split_period - 1.
    start_of_2nd_period = start_of_split_period.
    start_of_2nd_period+6(2) = '28'. " Get 28th of supplied month
    ADD 4 TO start_of_2nd_period. " Get 4 days later - this will be in next month
    start_of_2nd_period+6(2) = '01'. " Get first day of next month
    end_of_split_period = start_of_2nd_period - 1. " Get day before start of 2nd period
    WRITE: / start_of_first_period,
             end_of_first_period,
             start_of_split_period,
             end_of_split_period,
             start_of_2nd_period,
             end_of_2nd_period.
    If you are a programmer, I hope this sample is sufficient to show how to deal with all kinds of date handling coding problems.
    matt

  • 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 set the fiscal year period as default in variables

    Hi All,
    How to set the fiscal year period as default it shoud take previous period when the report is executed.
    And also I need to do the same changes in reporting agent.
    Could you please any one help me.
    Points will be given.
    Thanks!
    Best regards,
    Ajay.

    Hi Ajay,
    Create a customer exit variable.Write the code in the include 'zxrsru01' using system date.
    take the system date from the system date variable and using that you can get the current fiscal year period.use this value and using string commands, you can get period.
    subtract 1 from this value.Using this you can get the previous fiscal period..
    Please let us know, if you need the coding part
    Hope it helps
    Thanks,
    Teja

  • [Oracle 8i] How to convert a string (time stamp) into a date?

    I'm having difficulty figuring out how to convert a time stamp string into a date (or possibly a number).
    The time stamp is 20 positions, character (NOT NULL, CHAR(20))
    in the format: YYYYMMDDHHMMSSUUUUUU
    where Y = Year, M = Month, D = Day, M = Minutes, S = Seconds, and U = Microseconds
    The reason I want to convert this is so that I can compare one time stamp to another (i.e. I want to be able to find the MIN(timestamp), MAX(timestamp), and do inequality comparisons).
    Is this at all possible?
    Thanks in advance for help on this!

    Hi,
    As Damorgan said, if all you want to do is find which is the earliest or latest, then you can just compare the strings: they happen to be in a format where that works.
    If you need to do other things, such as compare them to today's date, or see the difference between two of your rows in days, then you have to convert them to DATEs. (There's no point in converting them to NUMBERs).
    A new data type, TIMESTAMP, which handles fractions of a second, was introduced in Oracle 9.
    Since you're using Oracle 8 (according to your subject line), you either have to
    (1) ignore the microseconds, or
    (2) use a separate NUMBER column for the microseconds.
    Either way, use TO_DATE to convert the first 14 characters to a DATE:
    TO_DATE ( SUBSTR (txt, 1, 14)
            , 'YYYYMMDDHH24MISS'
            )where txt is your CHAR column.
    To convert the microseconds to a number (between 0 and 999999):
    TO_NUMBER (SUBSTR (txt, 15))

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

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

  • How to give the Fiscal year period in RSA3 for checking the data.

    Hi BW Experts, good morning.
      We have loaded the data monthlywise with selection parameters as Fiscal Year Period(FISCPER).
      While checking the data consistency in both R/3 and BI, the selection parameter which i have given  is in the format of         001.2005   
      I got the records in BI side.
      But if we give the same format In RSA3 in the Fiscal Year Period tab , we r getting 0 records.
      So kindly help me how to  enter the selection parameters for 1 month.
        Thanks
                  Anjali

    Hi sanyam ,
       Thanks for the help.
      I got it now.
      Thank you so much
      Bye
                   Regards
                         Anjali

  • How to fill a prompt in webi with current date?

    A webi report is being generated on BEx Query.
    IN BEx query variables are defined for some date fields to prefill them with current date.
    Foe ex. there is license start date. For this field variable is defined so that in variable screen License start date is automatically filled with greater than or equal to current date(which is system date). WHich is a mandatory variable.
    On BO side, a webi report is being developed on a Universe (based on this BEx query).
    When the webi report is run, the license start date(mandatory variable in BEx) is automatically prompted, but date is not getting prefiiled with current date.
    How to prefill this prompt with current date?
    the prompt should be like
    LIcense start date >= <current date>

    Hi,
    Yes, it isn't possible to reference anything like 'Current Date' in the universe (like you would with a SQL data source).
    The solution I have seen recently goes like this, I don't know the exact details (so I might have some terminology wrong), but someone with ABAP skills should get what I mean.
    Assuming you want to filter on 0CALDAY.
    In ABAP, create a customer EXIT that calculates the current date as a number (so today might be 40651). Do the same for 0CALDAY.
    In the BEx create a formula variable that references each of those, then a Formula Key Figure (I forget the exact name of them) that's just the current day number minus the 0CALDAY number. This gives you the 'age' of that row of data.
    Your Webi report can then have a built in filter (or prompt with a default value) of, say Age <= 30. The report can be scheduled and will always run with the last 30 day's data.
    We actually did the customer exists to show the 'age' in months.
    Sorry I can't explain it any better, but it's working great for us.
    Hope that helps.

  • How to advoid Pdf attached files turning into winmail.dat file causing incovinience opening them? And why does the phone automatically changes the file???

    The first time i opened the mail, the mail loaded the attactment as pdf file and i was able to open it without any problems. But then when i tried to open it again, i watched the phone automatically turned the pdf file into winmail.dat without any of my control. Since then, i werent able to open the file anymore! And this was lucky that i was able to see it as pdf file - all other attachments i have recieved since using my new ip6 all turn into winmail.dat
    this is really incovinient and frustrating for work. i cant believe i cannot just open a pdf file as a pdf file on my ip6 in the emails i recieve. I was on ip4 before this and never have anything like this happened.
    Solution needed asap please.
    Thankyou!

    Hi Jnkm,
    I'm sorry to hear you are having issues with your new iPhone 6. If you are getting a winmail.dat file instead of a PDF, you may want to see if it may be the issue noted in the following article:
    iPhone, iPad, or iPod touch does not display attachment in email - Apple Support
    Regards,
    - Brenden

  • How to get the weekends days for a specific date range

    I want to select list of only weekend dates from a given date range. Is it possible in SQL?
    For example if the range is '08/01/2011' and '08/30/2011'
    I want a list
    08/06/2011
    08/07/2011
    08/13/2011
    08/14/2011
    08/20/2011
    08/21/2011
    08/27/2011
    08/28/2011Thank You, Naveen email:[email protected]

    First and easy to do is having a Calendar table, which over there you can have those information.
    http://arbibaghdanian.blogspot.com/2011/05/calendar-table.html
    Declare @beginDate Date, @EndDate Date
    Select @beginDate = '08/01/2011', @EndDate = '08/31/2011'
    Declare @Calendar Table
    (CalendarDate Date Primary key, IsWeekend Bit, YearNo SmallInt, QuarterNo TinyInt, MonthNo TinyInt, DayOfYearNo SmallInt, DayNo TinyInt, WeekNo TinyInt, WeekDayNo TinyInt)
    While @beginDate <= @endDate
    Begin
    Insert Into @Calendar
    Select
    @beginDate As CalendarDate
    ,(Case When DATEPART(Weekday, @beginDate) In (7, 1) Then 1 Else 0 End) As IsWeekend
    ,DATEPART(Year, @beginDate) As YearNo
    ,DATEPART(QUARTER, @beginDate) As QuarterNo
    ,DATEPART(MONTH, @beginDate) As MonthNo
    ,DATEPART(DayOfYear, @beginDate) As DayOfYearNo
    ,DATEPART(Day, @beginDate) As DayNo
    ,DATEPART(Week, @beginDate) As WeekNo
    ,DATEPART(WEEKDAY, @beginDate) As WeekDayNo
    Set @beginDate = DateAdd(Day, 1, @beginDate)
    End
    Select * From @Calendar Where IsWeekend = 1
    Best Wishes, Arbi --- MCC 2011; Please vote if you find this posting was helpful or Mark it as answered.

  • Parameter prompts-  Displaying task details between date range

    Hi all,
    I have created a report ( Crystal reports 2008) which lists task related details( distinct count) by region, customer and work type. I created two parameters to let the users specify the date ranges. Based on the user inputs, the title of the report would be " there are -- tasks between the user specified date ranges//-- and -//".  I am not sure how to go about displaying the title in the format specified.
    It would be great if you guys could give me your suggestions on this.
    Thanks a lot,
    Vinne
    Edited by: Vinnie_uic on Jun 8, 2010 9:32 AM

    Hi, I don't have 2008, but this should still work.
    You can add your text as shown.
    " there are   tasks between the user specified date ranges and  "
    Add your parameters to the report, also add a counter for your tasks.
    then you just drag and drop those into the title.
    When you edit the title it "May" look like this.
    "There are {@Count_of_Tasks}  tasks between the user specified date ranges {?Start_date} and {?End_Date} "
    but it should display as
    "There are 15  tasks between the user specified date ranges 5/20/2010  and 5/17/2010 "
    If that does not work for you, use the & sign, and create your formula like this.
    There are &" "& {@Count_of_Tasks}&" "&  tasks between the user specified date ranges &" "&{?Start_date} and&" "& {?End_Date}
    I hope the formatting is correct for 2008

  • How do I prevent prompt to log into the cloud?

    Everytime I start iTunes (and my iPOD) I get prompted to enter my password to log into the cloud. I don't want to be asked. I don't use the cloud and don't intend to. How do I stop this prompt from showing up? It is a big annoyance.

    CRANEFISH wrote:
    Why is no answer given?
    This can happen when the original question is obscured by others before someone who thinks they have an answer notices it. At a guess a year ago the forums were quite busy with a different topic.
    KB1VCC wrote:
    Everytime I start iTunes (and my iPOD) I get prompted to enter my password to log into the cloud. I don't want to be asked. I don't use the cloud and don't intend to. How do I stop this prompt from showing up? It is a big annoyance.
    iPod touch (5th generation)
    Use Ctrl+B if needed to enable the menu bar.
    Under Edit > Preferences > Store uncheck any entries in the Automatic Downloads section and also untick Show iTunes in the Cloud purchases.
    tt2

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

Maybe you are looking for

  • I am trying to make a main menu for my project but I don't know where IDVD is located?

    I am trying to make a main menu but I read some info. and said I have to do it through IDVD and I tried it but can not find IDVD anywhere so I wanted to know if I have to purchase it or something and I also wanted to know how to create a main menu?

  • Any way to override default printer settings into a PDF

    Hi -- I work for a large organization that has lots of computers and printers and prints a lot of forms and documents.  We are moving towards more digitization of documents and records including printing forms as needed as opposed to having large set

  • Which socket to use in amavisd.conf for clamav??

    Hi! I just updated clamav and amavisd with the help of Alex' excellent tutorials. Everything worked as expected, mails also get received, but regarding the logfiles there is an error with the clamav socket in the amavisd.conf file. Jul 28 09:41:20 kn

  • Logical measure column

    I created new flag in informatica to identify a service request which fall for certain conditions. If the service request fall under conditions and then i will mark as 1. If not then 0. I defined this as INT in physical layer. and my new logical colu

  • CS4 upgrade to CS6: where did Version Cue go?

    Ok, please pick up your jaw and clear out the cobwebs. Yes, I'm moving from CS4 to CS6. Searching has drawn no results, and guess-and-click is killing time. How does CS6 version files? Is there a utility to get CS4 Version Cue projects into CS6? I wo