Time Dimension - holiday flag

Hi,
Does anyone have good idea how to implement holiday_flag in time dimension?
I wondered if I added "holiday_flag" attribute,
however, our universe is global and holiday date is different between each countries.
Some ideas has come up as below, but I don't think those are good idea.
1. To create holiday_flag variable which is dimensioned by time and country.
2. To create holiday_flag_XXX attribute for each country.
3. To create holiday function which returns flag which indicates holiday or not.( to do that, kind of holiday cube would be required?)
The holiday_flag would be used to count business day or check for NAFILL.
Any help would be appreciated.
Thanks in advance,
Yukari.

Thanks for your reply. Did you use the dimension wizard of OWB to create pure relational dimensions (Not owb/oracle dimensional structures) ?
How did you work out week, financial years pieces upon using this OWB dimension wizard?
Thanks for your help.

Similar Messages

  • Populte "holiday" column of time dimension

    hi,
    i am creating time dimension.
    I want to populate the time dimension table.
    How do i populate the "holiday column".
    structure of my table is:
    create table schema_owner.dimension_time (
    calendar_date date,
    day_of_year_number number,
    day_of_week varchar2(9), -- day name.
    week_number number, -- accounting week number(also known as period).
    week_ending date, -- ends on friday.
    accounting_month_end date, -- last friday of month.
    calendar_month_end date, -- last day of month.
    month_day_number number, -- day of month.
    month varchar2(9), -- month name.
    month_number number, -- number of month in year.
    quarter_number number, -- ends on accounting month end.
    holiday varchar(1) -- flag 'Y' is holiday, 'N' is no holiday.
    ) tablespace time_data ;
    i am not able to populate the "holiday" column.
    Please help me on this .

    Hi,
    You can use a CASE expression to return one thing for Sundays, and something else for every other day, like this:
    CASE
        WHEN  TO_CHAR ( sd + rn
                      , 'fmDay'
                , 'NLS_DATE_LANGUAGE=ENGLISH'     -- If necessary
                ) = 'Sunday' 
           THEN  'Holiday'
           ELSE     'Work Day'     -- or NULL
    ENDIf you want to include other holidays, either fixed dates (such as Juanaury 1) or variable dates (such as the 4th Thursday in November), then see this thread:
    Re: retrieving 7 business days
    I hope this answers your question.
    If not, post a little sample data (CREATE TABLE and INSERT statements, relevant columns only) for all tables, and also post the results you want from that data.
    If you're asking about a DML statement, such as INSERT, the sample data will be the contents of the table(s) before the DML, and the results will be state of the changed table(s) when everything is finished.
    Explain, using specific examples, how you get those results from that data.
    Always say which version of Oracle you're using.

  • How to create a working day/holiday attribute in Time Dimension with OWB ?

    Hello everybody,
    I am trying with no success to create a Time Dimension (with the wizard it would be easier...) with a working day or holiday attribute (0 or 1) to be able to calculate measures only on working time !!! I am totally sure it's possible, obviously, but I found nothing on forums... Could you help me ??
    I use OWB 11g, I need all fiscal year/quarter/month/week and all calendar year/quarter/month/week attributes so without any wizard it would be quite impossible... thank you for your help !
    NB: of course I know how to define if a day is a working one or not, but I currently can't add any columns in Time dim created with wizard...
    Francois
    Edited by: [email protected] on Jun 15, 2009 8:24 AM

    Hi,
    First of all, thanks everyone for your help.
    I did several tests this morning.
    First of all, i've tried with time_from = 000000 and time_to = 235959 (23:59:59 CET) and the activity has been created with Time From = 04:00:00 and Time To = 03:59:59
    Strange no ??
    I've also tried with 230000 for time from and time to but the activity has been created with Time From = 03:00:00 and Time to = 03:00:00
    I cannot understand the logic behind....
    Thanks,
    Johnny Baillargeaux

  • Time dimension population

    Hi
    I am taking "clndr" as source and populate time dimension table.Time dimension table ( granularity is an hourly basis) will be populated with date with 24 intervals and based on the cln_dt whether it falls in weekened or holiday ,If falls in weekened or holiday , populate 'Y' Else 'N' .Please see the below example
    clndr(source table)
    cln_dt cldr_day busday cldr_yr
    1/05/2006 monday y 2005
    2/5/2006 Tuesday y 2005
    Expected data
    ==========
    Time_dim(Target table)
    Time_dt interval holidy ind
    1/05/2006 0 N
    1/05/2006 1 N
    1/05/2006 2 N
    1/05/2006 3 N
    1/05/2006 23 N
    2/5/2006 0 N
    2/5/2006 1 N
    2/5/2006 23 N
    Thanksinadvance
    MR

    Try this, Modified Dnikiforov's solution:
    SQL> ed
    Wrote file afiedt.buf
      1  select date#, hour, decode(busday,'Fri','Y','Sat','Y','Sun','Y','N') flag
      2  from ( select to_date('06-MAY-06') date#, to_char(to_date(
      3  '06-MAY-06'),'Dy') busday from dual
      4  union all
      5  select to_date('07-MAY-06') date#, to_char(to_date(
      6  '07-MAY-06'),'Dy') from dual
      7  union all
      8  select to_date('08-MAY-06') date#, to_char(to_date(
      9  '08-MAY-06'),'Dy') from dual ) calendar,
    10  (select rownum-1 hour from dict where rownum <=24) hours
    11* order by 1,2
    SQL> /
    DATE#        HOUR F
    06-MAY-06       0 Y
    06-MAY-06       1 Y
    06-MAY-06       2 Y
    06-MAY-06       3 Y
    06-MAY-06       4 Y
    06-MAY-06       5 Y
    06-MAY-06       6 Y
    06-MAY-06       7 Y
    06-MAY-06       8 Y
    06-MAY-06       9 Y
    06-MAY-06      10 Y
    06-MAY-06      11 Y
    06-MAY-06      12 Y
    06-MAY-06      13 Y
    06-MAY-06      14 Y
    06-MAY-06      15 Y
    06-MAY-06      16 Y
    06-MAY-06      17 Y
    06-MAY-06      18 Y
    06-MAY-06      19 Y
    06-MAY-06      20 Y
    06-MAY-06      21 Y
    06-MAY-06      22 Y
    06-MAY-06      23 Y
    07-MAY-06       0 Y
    07-MAY-06       1 Y
    07-MAY-06       2 Y
    07-MAY-06       3 Y
    07-MAY-06       4 Y
    07-MAY-06       5 Y
    07-MAY-06       6 Y
    07-MAY-06       7 Y
    07-MAY-06       8 Y
    07-MAY-06       9 Y
    07-MAY-06      10 Y
    07-MAY-06      11 Y
    07-MAY-06      12 Y
    07-MAY-06      13 Y
    07-MAY-06      14 Y
    07-MAY-06      15 Y
    07-MAY-06      16 Y
    07-MAY-06      17 Y
    07-MAY-06      18 Y
    07-MAY-06      19 Y
    07-MAY-06      20 Y
    07-MAY-06      21 Y
    07-MAY-06      22 Y
    07-MAY-06      23 Y
    08-MAY-06       0 N
    08-MAY-06       1 N
    08-MAY-06       2 N
    08-MAY-06       3 N
    08-MAY-06       4 N
    08-MAY-06       5 N
    08-MAY-06       6 N
    08-MAY-06       7 N
    08-MAY-06       8 N
    08-MAY-06       9 N
    08-MAY-06      10 N
    08-MAY-06      11 N
    08-MAY-06      12 N
    08-MAY-06      13 N
    08-MAY-06      14 N
    08-MAY-06      15 N
    08-MAY-06      16 N
    08-MAY-06      17 N
    08-MAY-06      18 N
    08-MAY-06      19 N
    08-MAY-06      20 N
    08-MAY-06      21 N
    08-MAY-06      22 N
    08-MAY-06      23 N
    72 rows selected.

  • Time Dimension Consistency Error in RSRV - Need Help

    Hello,
    I am having a problem when I run RSRV on our 0ECCS_C01 cube.  We have extended the time characteristics to include posting period (0FISCPER3).  The only problems RSRV finds is when 0FISCPER is period 0 and 0FISCPER3 is 0.  For some reason, these are being flagged as inconsistent.  I think this is causing negative performance on our queries because I feel partitioning may not be getting used from some research I've done due to this inconsistency.
    Here are the errors I am getting from RSRV:
    1.  Record with the DIMID 410 contains non-fitting time characteristics
    Message no. RSCV053
    Diagnosis
    The data record of the time dimension table with the described DIMID contains values for time characteristics that do not fit together.
    2.  This DIMID is used by 9860 records of the fact tables
    3.  No master data found for characteristic of test described subsequently
    Message no. RSCV083
    Diagnosis
    No master record exists for a characteristic used in the time dimension. The characteristic is one of the characteristics described in the following message with one of the SIDs named there or it is the fiscal year variant that was derived from one of the characteristics.
    4.  Time characteristic 0FISCPER value 132000000 does not fit with time char 0FISCPER3 val 0
    Message no. RSCV054
    Diagnosis
    The described values of the specified time characteristics do not fit together.
    How exactly can I get these time characteristics to "fit" properly?  Will it require a data reload?

    hi,
    did u get answer to ur problem.
    thanks.
    Raju

  • Time Dimension Working Days

    Hi i have a calendar table
    Has Year , Month, Week, Date and a flag for a working day or not..
    Is there anyway i can use this working day flag in my Time Dimension Hierarchy so that under Date i can have another drill Working Days ...
    (Non working day is where flag = 'Y')
    Year - Month - Week - Day - Working Day
    or Even
    Year - Month - Week - Working Day
    Cheers
    Bibi

    Year - Month - Week - Working Day
    You could acheive this by putting a filter on your logical table source to exclude non-working days. Or maybe just remove the non working days from the source table
    The trouble with trying to put an extra level in beneath Day is that your primary key, I.e. your lowest level for the date dimension in this case is Day. Working Days won't roll up into Days as they are at the same level.

  • Time Dimension as Sparse

    Hi All
    Thought I would ask for some feedback on a change i am checking on.
    Currently have a cube with Accounts and Time set as dense. But this creates a block size of around 400k.
    I have created a test app and changed time dim to sparse and the block size has dropped to around 40k. Its a very new cube so there arent a lot of calculations currently written for it.
    My test calc ran for 3 hours on the cube prior to changing the Time dimension and after changing the Time dimension to sparse, now completes in 12 seconds. The aggregated numbers look good.
    What are the Cons to implementing Time as sparse?
    Simon

    You didn't state if you planned on using DTS for your time dimension. If so, the dynamic members would need to grab multiple blocks in order to calculate your QTD or YTD members. It's not a huge deal if your hardware is up to the task, but the users may experience a little slowness when pulling those members. If you are not using DTS, don't flag the time dimension as "Time" at all because that will affect how the default calc will work (Accounts, Time, Dense members, Sparse members). Most people don't use the default calc anyways, but if you're not using DTS, there is no reason to flag the time dim as "Time".

  • Populating the Time Dimension

    Ok, the Oracle Enterprise Manager was kind enough to automatically create the often used Time dimension for me. It even created the associated look up table for me.
    Question:
    Is there a facility/function/feature that populates the weeks - month - year levels in this new lookup table or do I have to do it "by hand"?
    Thanks for your time.
    GGA

    Reposted.

  • How to build the time dimension in Essbase with Fiscal Year (July thru Jun)

    Hi,
    In a recent project i have a situation where i need the time dimension to have some thing like this Fiscal Year (July - June) using BSO need to achieve DTS (YTD and QTD) functionality also.
    And also my reports should also be able to drill through and needs comparison years(Prev Year Vs Current Year), months(Prev Year Vs Current Year) and Qtrs(Prev Year Vs Current Year).
    How can i achieve this using BSO?.

    Hi there,
    This forum is for Oracle OLAP. The Essbase forum can be found here:- Essbase
    Thanks,
    Stuart Bunby
    OLAP Blog: http://oracleOLAP.blogspot.com
    OLAP Wiki: http://wiki.oracle.com/page/Oracle+OLAP+Option
    OLAP on OTN: http://www.oracle.com/technology/products/bi/olap/index.html
    DW on OTN : http://www.oracle.com/technology/products/bi/db/11g/index.html

  • Advice needed: join fact to time dimension with between clause

    Hi All,
    I've got 1 dimension and two fact tables. The 1 dimension could serve as a time dimension.(not specifically marked as this is a time dimension)
    My Tables look like this (simplified)
    Dim1:
    date_pk (unique identifier)
    date
    month
    year
    fact1:
    iid_date (foreign key to date_pk)
    fact1_amount
    Fact2:
    begin_date
    end_date
    fact2_amount
    In the physical layer i have a complex join between fact 1 and dim1 (date_pk = idd_date) and a complex join between fact2 and dim1 (dim1.date between fact2.begin_date and fact2.end_date and dim1.date <= CURRENT_DATE). In the business model i have complex joins between fact1 and dim1 and a complex join between fact2 and dim1 without further specification.
    What I would like to achieve in Answers is that I select a Year and a Month from dim1 and add fact1_amount and fact2_amount to the same report and that the report shows both amounts. I would like some advice on how to set this up. Further more how to add a drill from year to month to date and what should I do when I'm willing to add more facts joined to the same Dim1
    Any Advice is greatly appreciated
    Gilles

    Hello MMA1709,
    You're right, this setup works!
    But...
    When you add an hierarchy and mark it as a time dimension it doesn't work anymore. It gives the following error in the consistency checker:
    [38086] Physical table Dim1 in the time dimenison table source Dim1 is part of a complex join condition
    And that means you cannot use any timebased calculations (AGO and TODATE). When I just create an hierarchy and do not mark it as a time dimension the hierarchy works well.
    Any suggestions?

  • Slicer Time Dimension Issue with Cube Functions

    Hi,
    Hoping someone can help me figure out right approach here.
    Summary:
    Using Excel 2013 connected to a SSAS cube as data source, and cube functions with slicers to create a dashboard.
    Have following time dimension slicers; Fiscal Year, Fiscal Quarter, Fiscal Month, Fiscal Week & Date, that are used to slice data based on user selection, along
    with a sales measure.
    Below is example of Slicer name and CubeMember function for each:
    Slicer_Fiscal_Year: 
    =CUBEMEMBER("Cube","[Date].[Fiscal Year].&[2015]")
    Slicer_Fiscal_Quarter: 
    =CUBEMEMBER("Cube","[Date].[Fiscal Quarter].[All]")
    Slicer_Fiscal_Month: 
    =CUBEMEMBER("Cube","[Date].[Fiscal Month].&[201408]")
    Slicer_Fiscal_Week: 
    =CUBEMEMBER("Cube","[Date].[Fiscal Week].&[201509]")
    Slicer_Date: 
    =CUBEMEMBER("Cube","[Date].[Date].[All]")
    Problem:
    What I am trying to do is to build a table with cube functions that takes the lowest grain of the slicer time dimension selected, shows the current member, plus
    the prior 7 so I can have an 8 period trending view table that I will build a chart from. In the above example that would mean that it would look at Slicer_Fiscal_Week since that is lowest grain that has an attribute other than All, and then show me the prior
    7 periods. In this case 201509 means Week 9, so I would want to show in table Week 9 back to Week 2. But if Slicer_Fiscal_Week was set to All, along with Slicer_Date, then Fiscal Month would be lowest grain, so I would want to show Fiscal Months from August
    (201408) back to January 2014. I know how to use CubeRankedMember to pull the value from what is selected in the slicer, the problem is figuring out how to pass the lowest grain time dimension so that I can use lag or some other MDX function to get the previous
    periods.
    Any help on this would be greatly appreciated.
    <object height="1" id="plugin0" style=";z-index:1000;" type="application/x-dgnria" width="1"><param name="tabId" value="{28593A5C-70C0-4593-9764-80C76B51795C}"
    /></object>

    Hello,
    Thank you for your question.
    I am trying to involve someone familiar with this topic to further look at this issue.
    George Zhao
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • Fiscal Year Time Dimension - Month Time Span

    I have a need to create a fiscal year time dimension and I created using Time Wizard in OWB. When I was developing BI Reports, I found some inconsistencies in Time dimension as it was showing figures in all the months of my first quarter of new financial year that Apr 2009 – Mar 2010. On close inspection of Time Dimension table I found that fiscal_month_time_span value varies from 35 to 28 to 29 for different months. i.e. it’s not matching with corresponding Calendar month. This means I am unable to plot data correctly using fiscal year dimension.
    Maybe this is how it works in Oracle, but this does not solve my problem. Could anyone give me some solution for this ? My Fiscal year is from ‘1- Apr – 09’ to ’31-Mar-10’. In my reports I would like to see transactions for April month when I use month attribute of time dimension like it happens in Calendar time dimension.

    May be someone from
    Forum: Business Intelligence Suite Enterprise Edition can answer this .
    Please post it there.

  • Multiple Fiscal Calendars Displayed in Subject Area Time Dimension

    Hi all,
    Thanks for taking the time to review my post.
    Environment
    Oracle BI Applications 7.9.6 Financial Analytics
    Oracle E-Business Suite 11.5.10
    Query
    The Time dimension on my Subject Areas (Financial Analytics) are showing more period data than I expected.
    I have configured one Enterprise Calendar (WPG_Calendar) that I set in the DAC parameters - $$GBL_CALENDAR_ID (WPG_Calendar~Month) and $$GBL_DATASOURCE_NUM_ID (4). The warehouse Enterprise Calendar table W_ENT_PERIOD_D is populating with the periods as configured in EBS for that calendar(Jan-09, Feb-0, Mar-09, etc). I noticed that the Multiple Fiscal W_MCAL_PERIOD_D table is also been populated with the Enterprise Calendar data PLUS, the Seeded EBS calendar (JEBE_MONTH_VAT) and a generated Calendar that appears to be a 5-4-5-4 Calendar (Jan-01-09, Jan-02-09, Jan-03-09, etc). The trouble is these W_MCAL_PERIOD_D periods and dates are all coming through in my Time dimensions and make it confusing for the Answers Users when choosing a Time dimension.
    Also, for columns W_CURRENT_MCAL_PERIOD_CODE, W_CURRENT_MCAL_QTR_CODE, W_CURRENT_MCAL_YEAR_CODE there are rows with Current, Previous and Next populated that span these different periods as you would expect, but I'm concerned these return multiple rows for Filters Current Fiscal Quater, Current Fiscal Year.
    Funnily enough, W_CURRENT_MCAL_MONTH_CODE has nothing populated (NULLs for all rows).
    Your comments are most welcome.
    Kind Regards,
    Gary.

    The filtering of the calendar can be done directly on the logical layer.
    for the logical dimension "Dim - Date Fiscal Calendar", Logical Table Source "Dim_W_MCAL_PERIOD_D_Fiscal_Period"
    set the content as :
    "Oracle Data Warehouse".Catalog.dbo.Dim_W_MCAL_PERIOD_D_Fiscal_Period.MCAL_CAL_WID = VALUEOF("MY_MCAL_WID")
    and setup the repository variable MY_MCAL_WID to match with your calendar wid.
    If your calendar depends on any context then you can use session variable instead of repository variable

  • Date and Time dimensions

    After reading the following article, I have decided to use SSAS dimension wizard for generating our Date dimension, which creates a DATETIME PK.
    http://www.made2mentor.com/2011/05/date-vs-integer-datatypes-as-primary-key-for-date-dimensions/ 
    I have also created a separate Time dimension as granularity of an hour is required.
    The Time dimension is very simple and only contains a surrogate key (INTEGER) and actual time in hours (VARCHAR).
    DimTime(TimeKey, TimeInHours)
    Our Fact table will now have a link to both the Date and Time dimension using the PK's.
    Our analysis is required by hour, day, week, month and year.
    My query is; Will this current structure cause any problems when creating MDX scripts to analyse our data (i.e. drilldown and rollup queries) Hour - Day - Week - Month - Year

    Hi Darren,
    According to your description, there a day and hour granularity in your fact table, so you want to a hierarchy like Hour - Day - Week - Month - Year, right?
    In your scenario, you created a time table that only contains a surrogate key (INTEGER) and actual time in hours (VARCHAR). We cannot create a Hour - Day - Week - Month - Year hierarchy without ant relationship between date table and time table. As per my understanding,
    you need create a foreigner key in time table, and join those table in the data source view, then you can create such a hierarchy. Here are some links about create time dimension, please see:
    http://www.ssas-info.com/analysis-services-articles/59-time-dimension/1224-date-and-time-dimensions-template
    http://www.codeproject.com/Articles/25852/Creating-Time-Dimension-in-Microsoft-Analysis-Serv
    Regards,
    Charlie Liao
    TechNet Community Support

  • Getting error while deploying a cube with time dimension

    Hi,
    I created a time dimension using WB with Cal yr and day heirarchy. Designed a cube using both and tried to deploy it. I got the following error.
    Appreciate your help..
    Name
    Type
    Status
    Log
    TIME_CUB1
    Cube
    Success
    VLD-0001: Validation completed successfully.
    TIME_CUB1
    Description : Runtime User : OWB_REP_OWNER Started : 2006-12-13 15:37:17.0
    Name
    Action
    Status
    Log
    TIME_CUB1
    Create
    Error
    ORA-06510: PL/SQL: unhandled user-defined exception
    ORA-06512: at "OLAPSYS.CWM2_OLAP_CUBE", line 394
    ORA-06512: at line 5

    Hi,
    I'm having problems to deploy this cube (this was the origin of my problem), when I change it to "Deploy Data Object Only", It don't generate code and the cube is not created. This is what I get:
    -- Product : Oracle Warehouse Builder
    -- Generator Version : 11.1.0.6.0
    -- Created Date : Wed May 12 08:41:59 CST 2010
    -- Modified Date : Wed May 12 08:41:59 CST 2010
    -- Created By : edennis
    -- Modified By : edennis
    -- Generated Object Type : TABLE
    -- Generated Object Name : FACT_TMP_SALDOS
    -- Comments :
    -- Copyright © 2000, 2007, Oracle. All rights reserved.
    WHENEVER SQLERROR EXIT FAILURE;
    Ideas?
    Thanks for your help!

Maybe you are looking for

  • Need forward button to only appear after slide is viewed

    For Education purposes I dont want my students to be able to forward through the course without viewing all of the information. So I remove the forward button on the skin editor. This creates a problem if the student clicks return on accident or only

  • FLASH PLAYER ON MEW IMAC

    Sorry if this is in the wrong place. I think i have downloaded Flash Player for my new iMac but when i go to sites that require flash player it still does not work. I am sure i am doing something wrong as this is my first mac. Regards Phil

  • Imap Folders give I/O error when accessing from Outlook

    I have several "generic" accounts for the administration to manage incoming emails. Using IMAP they connect from Outlook and process the emails as a team. Several of my users have complained that Subfolders that they have created no longer are able t

  • Error running startup framework

    Hi, We are running EP 6 Sp2 p4 hf 8 on hp-ux 11.11 operating system, and We installed startup framework according to document "Installing and Configuring the 6.40 Startup Framework to Use with SAP J2EE Engine 6.20 (Last update: 23.09.2004)", we insta

  • How to search in the deletedItem area by "type= Account"

    Hi everybody; I´d like you help me about a query I´m doing to oracle crm on demand DeletedItem API through the web method deletedItemQueryPage. I want to get all records which are in the deletedItem area and belong to a specific type ="Account" or Ty