Setting date ranges when Time dimension includes Period instead of Month

I hope I am missing something simple here - we are on OBIEE 10g, and I have a Time dimension defined as follows:
Year > Quarter > Period > Week > Day
A "period" is not equivalent to a calendar month - a period can include either 4 or 5 weeks, and always starts on a Sunday. Fiscal years start on the first Sunday in July.
I need to create a graph that shows Total Sales for the previous 13 periods (not including the current period). This needs to be a rolling 13 periods based on the current period.
Since this is Period and not Month, I am unable to use the Month(CURRENT_DATE) functionality. Do I need to have repository variables defined for the current period? Is there another way to calculate what the current Period in my Time dimension is in a filter SQL?
So I want to do something like "Where period between [current_period - 14] and [current_period -1] as the filter for Period.
Thanks in advance for any assistance.
Rhonda

Sorry about that...
Periods are 1-12 (numeric).
Period 4 of FY 2012 for example has a begin date of 10/02/2011 and end date of 11/05/2011.
Right now we do not have unique combos created (like 4/2012, 5/2012, etc) so to get a unique value I have to specify both a year and period.
So on my dashboard today I will need to create a graph that covers FY2011 periods 6-12 and FY2012 periods 1-6 (translates to 12/5/2010 - 12/31/2011).
I haven't created repository variables before, but as the Period parameter will be used often I guess I will find out how.
Thanks in advance for the help.
Rhonda

Similar Messages

  • Primary Key Data type in Time Dimension????

    I have to create a Time dimension with day grain in a Datawarehouse system and I don’t know what is the best data type for the primary key...
    For example
    1) I could put Number(8) datatype, then the dates will be: 20050114, 20050115, 20050116.... Then in the fact tables I put the Number(8) datatype in the date fields... But in my reporting tools I have to put the to_date function to show the dates in the right format.
    2) Or I could put Date datatype, then the dates will be: 01/14/2005, 01/15/2005, 01/16/2005.... Then in the fact tables I put the Date datatype in the date fields...
    It’s the Date primary key a bad datatype? (Very slow)
    What is the best Primary Key Data type in Time Dimension???
    Thanks!

    <quote>I have to create a Time dimension with day grain</quote>
    OK.
    <quote>But in my reporting tools I have to put the to_date function to show the dates in the right format</quote>
    Why? ... if you’ve decided to have a Day dimension table what is stopping you from having the day represented as a DATE column in there? (plus all the other "right formats" you may need). The join keys should only be used for … joining.
    <quote> It’s the Date primary key a bad datatype? (Very slow)</quote>
    No … DATE or NUMBER won’t make any noticeable difference when used as the join key between the time dimension and the fact table.
    Some see advantages in having the DATE FK in the fact table …
    1. One can have range partitioning in the fact using real DATEs
    2. One can get Day-derived info right from the fact table … that is, the join to the Day dimension is not needed
    I don’t (see them as advantages) … for #1, range partitioning by some measure of time is still achievable as long as the PK values on the Day dimension are immutable (as they should) … and I don’t see #2 as an advantage for the DW end-users.
    Personally, I prefer a surrogate numeric PK … but not things like 20050129.
    <William>If you need dates then use dates. They are more robust, you can never accidentally have November 43rd</William>
    Of course this can not be about the fact table … since there the column is constrained … so this is about accidentally getting "November 43rd, 2004" into the Day dimensions when the PK is numeric 20041143; true, but is a DATE PK more robust in this case? … No … one could accidentally insert to_date('29-Jan-2005','DD-Mon-YYYY') and to_date('29-Jan-2005 00:00:01','DD-Mon-YYYY HH24:MI:SS') and that won't be very good, would it? In both cases, one would need something extra to 100% protect the integrity of the Day dimension (mind you, loading the Day dimension probably happens once a year under the supervision of the most technical people on the project).
    There is no best PK data type for the Day dimension (between NUMBER and DATE) … they are both workable solutions ... go with what you’re comfortable.

  • How do I change the default "date range" when searching in the forums?

    Hi all,
    New to the SAP forums...  How do I change the default date range when searching in the forums?  I am getting a 90 day search by default.  Then I have to change it and search again.  Argh!
    Thanks,
    --Amy Smith

    Hi Amy,
    the default date range cannot be changed by users. It is defined system-wide.
    Regards,
    Michael

  • Creating P&L report with Time dimension view  ( Period , HTD, YTD )

    Hi
    I have a requirement to create P&L report that will Time dimension view  ( Period , HTD, YTD ). I guess the original report was created with hyperion tool now they want the same in BO report.
    Is this technically possible with BEX since there is no standard time object for YTD and HTD. I know in BPC there are ready made objects.
    does any one know how I can create this solution with BEX.
    thanks
    Bhat

    Hi,
    It is possible in BEx. You would need to create variables of type customer exit and write code to realize YTD, etc. Check the forums for documents and sample code.

  • Which BW variable is used for date(range) when creating a portal service

    Hi,
    Can any one please let me know which BW variable is to be used for date(range) when creating a portal service for searching based on dates.
    Thanks
    Abhai

    Hi Arun,
    its just a portal service which would be called when  searching a document created on a particular date or betwwen a range of date.so what i require is which BW variable to be used when handling range.As for variable technical name we use VAR_NAME_I  and for single value variable we VAR_VALUE_EXT_I
    in the similar manner i want BW variable to be used for range of values.
    Thanks
    Abhai

  • BPC Time Dimension  - 13 periods NOT Calendar

    My client reports 13 periods in a year (4 weekly).
    Quarter two contains 4 periods (periods 4, 5, 6, 7).
    I was reading a post about how to set this up properly using the UserTimeId property. They had a situation where they needed to put their 13th period in Qtr 4, and they discussed using this property, but the answer didn't go into exactly what settings to put in the UserTimeid property.
    Could someone explain how to set this up in BPC so that it calculates properly - my system is a YearToDate system (not periodic),
    regards
    scott Farrington

    Hi Scott,
    Have you tried just putting these 4 periods in Quarter 2 on your time dimension hierarchy?  I believe the hierarchy (not the properties) is what drives QTD reporting, so theoretically that should work.  I have not tried your specific scenario however as it is a fairly uncommon setup.
    If that doesn't work and you can explain exactly what kind of issues you are seeing, then it might be easier for others to come up with helpful solutions.
    Thanks,
    Ethan

  • Can not set data range for a numerical control

    I want to set the maximum of data range to 5000, but it always went back to default value of 127.
    WHy I can not change the data range? Thanka for explanations.
    Message Edited by Dejun on 11-14-2007 11:47 PM
    Attachments:
    datarange.jpg ‏74 KB

    So hit the 'Representation' button.
    Ton
    Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
    Nederlandse LabVIEW user groep www.lvug.nl
    My LabVIEW Ideas
    LabVIEW, programming like it should be!

  • How to get the date range for a given fiscal period.

    Hi All,
    There is two fields (select options) on my selection screen
    1. Fiscal Year
    2. Fiscal Period.
    I just want the date range between the given year and period on selection screen.
    Thanks,
    Gaurav Mittal

    Check FM's FIRST_DAY_IN_PERIOD_GET and LAST_DAY_IN_PERIOD_GET.

  • Time Dimension displays End_Date instead of Long_Description in Analysis

    I am importing an analytical workspace into a BI repository. At first I was doing it by exporting it from AWM (wherein it was built) with its Export to OBIEE plugin--doing this resulted in the Time dimension properly displaying its Long Description field in an analysis in BI.
    Now I am trying to import it into BI following the instructions in the Oracle Business Intelligence 11g Developer's Guide (pg. 315 - pg.324). However, instead of displaying the Long Description field in an analysis, it displays the End Date field for all Time Levels. Is there something in the Admin Tool that sets what to display for a given Level?

    Okay, I finally stumbled on the answer.
    Under the Presentation Layer -> Time Dimension -> Time Hierarchy, I needed to double-click on every Level and go to the Display Columns tab and increment Long Description to the top in order for it to display the Long Description.

  • Time Dimension _ Report on Current month and previous year.TOTAL

    Hi,
    My Time dimension is as under .
    July2013, Aug2013 ,......Jan2014,,,. June2014  = 2014.TOTAL
    My requirement is to report based on context view along with previous period total (.TOTAL) values.
    For example :      If i am using CV as : 2013.JUL my report should show 2013.JUL & 2013.TOTAL
                                If i am using CV as : 2014.JUN my report should show 2014.JUN & 2013.TOTAL
    Can anyone provide some direction to build the above scenario
    Regards
    Krishna

    Hi,
    do you have the property YEAR in your time dimension filled out? If so, you could use EPMDIMENSIONOVERRIDE function together with an Excel cell.
    Let me build an example:
    Assuming your report has two columns, one for the current month and one for the total year. I would split this into two, one report per month, i.e. column. The first report will show the current period, the second the total. Somewhere in the header of your sheet use:
    EPMDimensionOverride("001";"TIME";EPMMemberProperty(;EPMContextMember(;"TIME");"YEAR")&".TOTAL")
    001 is the default ID of the second report.
    BR,
    Arnold

  • Date range mapping for dimension

      
    Hi Guys,
    I am looking for a way where I can provide DATE as a range for dimension , Any such possibilities anyone is aware of ?? Please suggest
    For string or number I have used something like 
    Country
    A - B
    C - D
    etc
    Salary
    10000$ - 50000$
    51000$ - 99000$
    etc
    What I want now is something similar for dates
    Date
    This Week
    This Month
    etc
    Please suggest
    Thanks In Advance
      

    The pattern here is to convert the dates to numerics.
    For example, your record could have as properties in YYYYMMDD format and be configured for filtering:
    p_start_date = 20140325
    At run time, you take the date as entered from the UX and convert it to YYYYMMDD format and create your filter for dates between Jan 1, 2014 and March 31, 2014:
    Nf=p_start_date|BTWN+20140101+20140331

  • Setting date and especially time

    Automatically setting the current time in a document seems clumsy.
    I prefer ‘am’ or ‘pm’ in lower case, but up to now I have been unsuccessful.  There appears to be no way to set preferences to display other than AM or PM in caps. Under AutoCorrection Preferences (Symbol and text substitution) there is an option to allegedly choose upper or lower case for this. However it doesn’t work. Ticking the box to change caps to lower case has no effect.
    Is there any way around this?

    This is because Pages most probably takes the information from the OS. You could try this:
    1. Go to your System preferences panel (Apple in the upper left-hand corner of the screen>System Preferences...)
    2. In the topmost row in the Personal section, click on Language and text
    3. Click on the Formats tab
    4. in the Times section click on the Customize button
    5. In the next window at the bottom are the two "culprits" - just change them to whatever you would like.
    This should solve your issue.

  • How to set Date range for a input parameter in a report

    Hi,
    I have 2 parameters start and end date. I want users to select the end date only 3 days from which ever start date they select. How to achieve this in parameter validation in SSRS?
    Thanks,
    Preetha

    Just make default value of Enddate parameter as below
    =DateAdd(DateInterval.Day,3,Parameters!StartDate.Value)
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • Extra bytes in data transfer when using VISA and C++ instead of LABVIEW

    Hello,
    I've a problem when I try to download the capture buffer from a spectrum analyzer with C++Builder and VISA.
    If I do that with LABVIEW (with VISA read and write) everything is fine. Instead, with C I get extra bytes in
    the stream. In particular whenever there is a '0A' in the stream I get also a '0D' before it. I'm using a GPIB-USB-B card from National. I know I could easily get rid of those extra bytes in my code, but I'd like a cleaner solution.
    Does anybody know the difference between the following code and LABVIEW VISA read and write routines?
    Is there some attributes I have to set in C which is automatically set in LABVIEW?
    Thanks a lot in advance!!
    Simone
    ViSession defaultRM, vi;
    viOpenDefaultRM (&defaultRM);
    viOpen (defaultRM, "GPIB0::10::INSTR", VI_NULL,VI_NULL, &vi);
    ViStatus err = viSetAttribute(vi, VI_ATTR_IO_PROT, VI_NORMAL);
    ViUInt32 retCount;
    err = viWrite(vi, "CGET?0,0\n", strlen("CGET?0,0\n"), &retCount);
    ViByte* buffer = new ViByte[100000];
    err = viRead(vi, (ViByte*)buffer, 100000, &retCount);
    FILE *fp;
    fp = fopen("data", "w");
    fwrite (buffer, retCount, sizeof(ViByte), fp);
    fclose(fp);
    viClose(defaultRM);
    viClose(vi);
    delete []buffer;

    Simone,
    this has to do with LabVIEW running on multiple platforms with different End-of-line signals.
    With Windows this is usually 0x0d0a, which is the ASCII control code for . Other platforms use typically just one of those characters; I believe with MacOS there used to be just a 0x0a and with Unix this might have been 0x0d.
    In order to avoid hazzles, the LabVIEW develloper decided to convert the platform-specific End-of-line signals into a LabVIEW-internal character (which is 0x0a) when reading strings and back when sending strings out of LabVIEW.
    So, your device sends out 0xd0a and LabVIEW removes the 0x0d. Everything is OK.
    Greetings from Germany!
    Uwe

  • Automatically set date and time in PDF file

    Good Day to all
    I use LiveCycle to create a PDF template so my users can fill up reports with out printing, the problem is the "time/date" field changes every time the supervisor open the file, so there is no way to track the date the report was created.
    I'm looking for a way (any trick) to make the automatically set but only when I save the document instead when I open it, I hope I'm explaining myself.
    Or maybe I just need to use another software, if you can recomend me one, or a trial just to be sure is the one I need.
    Any help would be great!!!...
    Thanks!!!

    You probably might have placed the code to populate the Data/ time value on the initialize event. Before you assign the current system date, check if the field has a value already. If it has then do not assign a new value.
    Thanks
    Srini

Maybe you are looking for