the advantage of using the date dimension.

Hi gurus,
I have a table of facts with 5 different dates as the shipping date, the order date.
My question is
Case 1. in fact, table I store date_keys (substitution integers) and create several date dimensions (alas) for each type of date as a date_dimension alias for the shipping date, an alias for the date of the order etc (in the model of declaration).

Case 2: I just avoid using the date and just store date dimension (no integers) in fact table.
In this way I will save 5 joints in 5 dimensions of different date.
Note: I have need of these 5 participates in the declaration of model that will be used to create reports, not in the model ETL in dimension model ETL that one date will be there, but we must create on alias the dimension date for each type of report date.

So, I was wondering what is the advantage of using the date dimension?

It is more a question of design/statement of a question of ETL/ODI;).

The advantage of the dimension is that you can select or aggregate data by year, weekends, quarter, month, day of the week...
If you only keep the date, you had all these complexes of the formula in logic or calculated items columns (assuming you are using OBIEE). Performances will be affected and the code will be duplicated in many places.

Hope that it answers the question.

Jerome

Tags: Business Intelligence

Similar Questions

  • Date dimension unique creating aggregation tables

    Hi guys,.

    I have a date single dimension (D1 - D) with key as date_id and the granularity is at the level of the day. I did table(F1-D) that gives daily transactions. Now, I created three tables of aggregation with F2-M(aggregated to monthly), Q(Aggregated to quarterly)-F3, F4-Y(Aggregated to yearly). As I said. I have a table of unique date with date-id as a key dimension. I have other columns month, quarter, year in the Date dimension.


    My question is: is this single dimension table is sufficient to create the joins and maintain layer MDB. I joined the date_id of all facts in the physical layer. MDB layer, I have a fact and logical table 4 sources. II have created the hierarchy of the Date dimension dimension and created the logical levels as a year, quarter, month, and day and also set their respective level keys. Now, after doing this I also put the logic levels for logic table 4 sources in the fact table.

    Here, I get an error saying:



    WARNINGS:


    BUSINESS financial model MODEL:
    [39059] D04_DIM_DATE logical dimension table has a source of D04_DIM_DATE at the level of detail of D04_DIM_DATE that connects to a source of fact level superior F02_FACT_GL_DLY_TRAN_BAL. F03_FACT_GL_PERIOD_TRAN_BAL




    Can someone tell me why I get this error.

    Reverse - your group table months must have information on the year.

    It's so she can be summarized in the parent hierarchy levels.

    In general, it is so you don't have to create a table of aggregation for each situation - your table of months can be used for aggregates of the year. Still quite effective (12 times more data than the needs, but better than 365 times).

    Think about your particular situation where you have a year AND a month group you might get away without information from parent levels - but I have not tested this scenario.

    With the second part, let's say you have a description of months and a key of the month field. When you select month and income description, obiee needs to know where to find the description of months of. You don't find it secondary date for reasons mentioned previously dimension table. So, you tell him to do it from the global table. It is a simple as you drag the respective physical column from the overall table on the existing logical column for the description of months.

    Kind regards

    Robert

  • What are the parameters? How are Variables differenet? Why we can not use variables to pass data to one sequnece to another? What is the advantage to use parameters instead of Variables?

    Hi all

    I am new to TestStand. Still in the learning process.

    What are the parameters? How are Variables differenet? Why we can not use variables to pass data to one sequnece to another? What is the advantage to use parameters instead of Variables?

    Thanks in advance,

    LaVIEWan

    I'm sorry... I discovered that... its not at all possible to pass data to another sequence using variables... it must be through settings... once again I apologize for the display of such a stupid question

  • use the date of birth of true or false

    will you please suggest me the right to use the real birth date apple ID or I can use a fake if I use the original, many people know my date of birth and they can easily forward to reset my apple id security question or I can use a birth date wrong, any help please please and tell me the advantages of using the original or fake thanks

    Don't be stupid.  You must use your real date of birth and your ID Apple is secure when you set up you have a password, so no one can pass and enter your Apple ID.

    You must use real details or some things could be cancelled if you lie on this subject on purpose.

  • Impossible to get analytical information and/or perform a data load: the 0 dimension is not valid

    Hello

    I am trying to load the first set of PSPB files using import data

    Header is:

    Budget item, Cube name of loading data, view FTES, proposed, FTE Start Date, end Date of the FTE

    And the first row of data:

    < LINEITEM ("EPT and powers of the State"), > PlanHR, 'BegBalance, Budget, Base, any year, vacancy, unspecified, U09999, POS099999', 1, 01/01/1951,.

    I get the following error when posting:

    The 0 dimension is not valid


    In addition, the dimension of the office's budget item

    and size of the drivers of accounts with members proposed FTE FTE Start Date, end Date of the selected FTE.

    Cannot find the error, please help.

    Thank you

    Just to let you know, part of the hierarchy of the dimension entity has been marked as invalid for the main Type of Plan. So that's what was causing the error.

  • Formula of writing on the Dimension of the attribute with the data type Date

    Hi all

    I have a Dimension of the employee who has Joining_Date as a Dimension attribute. I loaded the data in the format "yyyy-mm-dd".
    I have a scenario to calculate not joins in a month. For this I created a member like joinies and I tried to get the Date in the beam using @ATTRIBUTEVAL (Joining_Date) to perform the calculation on it. But when I see the essbase/planning addin data get different value.

    Ex: For an employee ' 05/10/2006' is the attribute value, but he excel make me '1147219200 '.


    Please, help us address this scenario.


    Thank you and best regards,
    Combot

    Published by: 923621 on April 3, 2013 03:57

    It is not a different value. That's how Essbase stores date. This is the number of milliseconds after January 1, 1970

    Use datepart with attributeval for the year, month, day of the week

    Concerning

    Celvin

    http://www.orahyplabs.com

    Please check the answers as useful/correct as appropriate

  • Defining the new path for the data files for restoring using the VALUE of NEWNAME FOR DATABASE

    Version: 11.2.0.3 Linux

    Today, I had to do a restore RMAN to a new server and I came across the post following RTO on the VALUE of NEWNAME FOR DATABASE

    ALTER database open resetlogs upgraded;         error to throw

    So, I thought to use it to indicate the new location of the data files to restore.

    That's what I did
    ===================

    Restore the control file and catalog items to backup using the command of CATALOGUE START WITH. Then I started the restoration
    $ rman target / cmdfile=restore.txt
    
    Recovery Manager: Release 11.2.0.3.0 - Production on Thu Jul 26 04:40:41 2012
    
    Copyright (c) 1982, 2011, Oracle and/or its affiliates.  All rights reserved.
    
    connected to target database: SPIKEY (DBID=2576163333, not open)
    
    RMAN> run
    2>  {
    3>  SET NEWNAME FOR DATABASE TO '/fnup/hwrc/oradata/spikey';
    4>  restore database  ;
    5>  }
    6>
    7>
    8>
    executing command: SET NEWNAME
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of set command at 07/26/2012 04:40:43
    RMAN-06970: NEWNAME '/fnup/hwrc/oradata/spikey' for database must include %f or %U format
    
    Recovery Manager complete.
    Don't know how it worked for Levi without %f or %U. So, I added %f
     $ vi restore.txt
     $ cat restore.txt
    run
     {
     SET NEWNAME FOR DATABASE TO '/fnup/hwrc/oradata/spikey/%f';
     restore database  ;
     }
    
    
     $ rman target / cmdfile=restore.txt
    
    Recovery Manager: Release 11.2.0.3.0 - Production on Thu Jul 26 04:45:45 2012
    
    Copyright (c) 1982, 2011, Oracle and/or its affiliates.  All rights reserved.
    
    connected to target database: SPIKEY (DBID=2576163333, not open)
    
    RMAN> run
    2>  {
    3>  SET NEWNAME FOR DATABASE TO '/fnup/hwrc/oradata/spikey/%f';
    4>  restore database  ;
    5>  }
    6>
    7>
    8>
    executing command: SET NEWNAME
    
    Starting restore at 26-JUL-12
    using target database control file instead of recovery catalog
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: SID=19 device type=DISK
    
    channel ORA_DISK_1: starting datafile backup set restore
    channel ORA_DISK_1: specifying datafile(s) to restore from backup set
    channel ORA_DISK_1: restoring datafile 00001 to /fnup/hwrc/oradata/spikey/1
    channel ORA_DISK_1: restoring datafile 00002 to /fnup/hwrc/oradata/spikey/2
    channel ORA_DISK_1: restoring datafile 00003 to /fnup/hwrc/oradata/spikey/3
    channel ORA_DISK_1: restoring datafile 00004 to /fnup/hwrc/oradata/spikey/4
    channel ORA_DISK_1: restoring datafile 00005 to /fnup/hwrc/oradata/spikey/5
    channel ORA_DISK_1: restoring datafile 00006 to /fnup/hwrc/oradata/spikey/6
    channel ORA_DISK_1: restoring datafile 00007 to /fnup/hwrc/oradata/spikey/7
    channel ORA_DISK_1: restoring datafile 00008 to /fnup/hwrc/oradata/spikey/8
    channel ORA_DISK_1: restoring datafile 00009 to /fnup/hwrc/oradata/spikey/9
    channel ORA_DISK_1: reading from backup piece /u07/bkpfolder/SPIKEY_full_01nh0028_1_1_20120725.rmbk
    channel ORA_DISK_1: errors found reading piece handle=/u07/bkpfolder/SPIKEY_full_01nh0028_1_1_20120725.rmbk
    channel ORA_DISK_1: failover to piece handle=/u07/dump/bkpfolder/SPIKEY_full_01nh0028_1_1_20120725.rmbk tag=SPIKEY_FULL
    channel ORA_DISK_1: restored backup piece 1
    channel ORA_DISK_1: restore complete, elapsed time: 00:01:56
    Finished restore at 26-JUL-12
    
    Recovery Manager complete.
    As you can see, RMAN restore data files to the desired location. But the data file names ended up as
    1
    2
    3
    .
    .      
    .
    9
    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -----------| Holy Cow |-----------------------------


    So I had to rename each file as below
    $ mv 1 /fnup/hwrc/oradata/spikey/system01.dbf
    $ mv 2 /fnup/hwrc/oradata/spikey/sysaux01.dbf
    $ mv 3 /fnup/hwrc/oradata/spikey/undotbs01.dbf
    I would have been better in execution of the order for each data below file
    SET NEWNAME FOR DATAFILE
    Now, I think, there is no advantage in using NEWNAME SET of DATABASE to. Only the disadvantages. I did anything wrong above?

    Martin;

    On the issue of the VALUE of NEWNAME FOR DATABASE, you must specify at least one of the first three of the following substitution variables to avoid collisions of names: %b f % U. see semantic entry for TO 'filename' for a description of the possible substitution variables.

    You use %f

    %b
    
    Specifies the filename without the fully qualified directory path. For example, the datafile name /oradata/prod/financial.dbf is transformed to financial.dbf. This variable enables you to preserve the names of the datafiles while you move them to different directory. During backup, it can be used for the creation of image copies. The variable cannot be used for OMF datafiles or backup sets.
    
    %f
    
    Specifies the absolute file number of the datafile for which the new name is generated. For example, if datafile 2 is duplicated, then %f generates the value 2.
    
    %U
    
    Specifies a system-generated unique filename. The name is in the following format: data-D-%d_id-%I_TS-%N_FNO-%f. The %d variable specifies the database name. For example, a possible name might be data-D-prod_id-22398754_TS-users_FNO-7.
    

    Source - E10643-01

    Backup and recovery reference

    http://docs.Oracle.com/CD/E14072_01/backup.112/e10643/rcmsynta2014.htm

    I see CKPT and I agree on that!

    Best regards

    mseberg

  • Copy data between the custom dimension members or scenario

    Dear Experts,

    I'm back with my silly question.
    Is there anyone know how to copy all the data (not only entity currency) between members in the custom dimension? Our HFM application has a different type of data because the type declaration (legal and audit). Whenever we arrived with our legal data, we copy our legal consolidated data for verification. We tried to create a formula (using hs.exp) to move data from legal to check, but apparently, this formula should be write inside Sub calculate (). Is not supposed, we do not want to run the copy data every time that the user click on calculate.

    We also perform copy data between the scenario, as actual to Budget. This activity also needs all the data consolidated and final.

    So the condition for the copy of data are:
    -data must be consolidated
    -Copy all the data, including the adjustment

    Is there a formula or a way to copy the data that can be triggered individually (click 1 rules that run only copy data) by the user?

    Thank you very much for your kind response,
    -Anna

    Hi Anna,.
    As you say, you cannot trigger different parts of rules to run in HFM. Instead, you use a condition. In your case this condition might be guided by the management of the process. You can use a combination of GetSubmissionPhase, review status , and ReviewStatusUsingPhaseID functions that returns the current process management level and presentation details: phase. To me, it seems that as soon as you have finished legal, you complete a part of your process cycle and enter another stage of verification. Here are the parts of your publishing process, if you have defined a process in HFM management or not, which means that you should consider using it.

    -Kostas

  • Display the data in dimension without a recording made

    To explain my requirement, lets say I have 3 tables
    City (Dimension presents all the information of city)
    Day (Date Dimension with all dates in recent years (past and future))
    Sales (fact table showing all measures of sales, multiple records for a day and city)

    An example query to retrieve the data I need
    Select the amount of city.name, day.name, SUM (sales.amount)
    day, city, sales
    where city.code = sales.city_code
    and day.date_value = sales.transaction_date
    City.name group, day.name

    Now if there is no transaction of sales for a particular day and the city, still I want to show day and the city with amount 0

    The solution that I can think of is a Cartesian of the city and day tables use it as a point of view online and then perform a join with the sales table.

    Is there a better way to do this, using a simple query logic or any advanced functionality?

    All entries on the above would be a great help.

    Thank you
    Murielle

    Published by: user12033529 on Sep 12, 2010 06:57

    Hi, Murielle,.

    Welcome to the forum!

    Whenever you have a proiblem, please post your version of Oracle (e.g. 10.2.0.3.0); Some examples of data in a form people can re-create the problem (for example

    CREATE TABLE     city
    (     city_id          NUMBER (6)     PRIMARY KEY
    ,     city_name     VARCHAR2 (20)     NOT NULL
    );
    
    INSERT INTO CITY (city_id, city_name) VALUES (1, 'Asheville');
    INSERT INTO CITY (city_id, city_name) VALUES (2, 'Bryson City');
    INSERT INTO CITY (city_id, city_name) VALUES (3, 'Cherokee');
    
    CREATE TABLE     day
    (     dt     DATE     PRIMARY KEY
    );
    
    INSERT INTO day (dt)
    SELECT      DATE '2010-09-10' + LEVEL
    FROM     dual
    CONNECT BY     LEVEL     <= 3;
    
    CREATE TABLE     sales
    (     sales_id     NUMBER (6)     PRIMARY KEY
    ,     city_id          NUMBER (6)
    ,     sales_dt     DATE
    ,     amount          NUMBER (9)
    );
    
    INSERT INTO sales (sales_id, city_id, sales_dt, amount) VALUES (11, 1, DATE '2010-09-01',  10);
    INSERT INTO sales (sales_id, city_id, sales_dt, amount) VALUES (12, 1, DATE '2010-09-11',  20);
    INSERT INTO sales (sales_id, city_id, sales_dt, amount) VALUES (13, 1, DATE '2010-09-12',  40);
    INSERT INTO sales (sales_id, city_id, sales_dt, amount) VALUES (14, 1, DATE '2010-09-12',  80);
    INSERT INTO sales (sales_id, city_id, sales_dt, amount) VALUES (15, 2, DATE '2010-09-11', 160);
    INSERT INTO sales (sales_id, city_id, sales_dt, amount) VALUES (16, 2, DATE '2010-09-11', 320);
    COMMIT;
    

    ) and the expected results of these data (for example

    CITY_NAME            DT          TOTAL_AMOUNT
    -------------------- ----------- ------------
    Asheville            11-Sep-2010           20
    Asheville            12-Sep-2010          120
    Asheville            13-Sep-2010            0
    Bryson City          11-Sep-2010          480
    Bryson City          12-Sep-2010            0
    Bryson City          13-Sep-2010            0
    Cherokee             11-Sep-2010            0
    Cherokee             12-Sep-2010            0
    Cherokee             13-Sep-2010            0
    

    ).

    user12033529 wrote:
    ... The solution that I can think of is a Cartesian of the city and day tables use it as a point of view online and then perform a join with the sales table.

    Is there a better way to do this, using a simple query logic or any advanced functionality?

    For this particular problem, I think it is the best way.
    There is another way: SELECT... PARTITION OF feature (also known as query interior partitions ).
    For example:

    WITH     all_cities     AS
    (
         SELECT     c.city_name
         ,     s.sales_dt
         ,     s.amount
         FROM               sales     s     PARTITION BY (city_id)
         RIGHT OUTER JOIN     city     c     ON     s.city_id     = c.city_id
    )
    SELECT     a.city_name
    ,     d.dt
    ,     NVL ( SUM (a.amount)
             , 0
             )          AS total_amount
    FROM               all_cities     a     PARTITION BY (city_name, sales_dt)
    RIGHT OUTER JOIN     day          d     ON     a.sales_dt     = d.dt
    GROUP BY     a.city_name
    ,          d.dt
    ORDER BY     a.city_name
    ,          d.dt
    ;
    

    It seems that you should be able to do this without a subquery, but I don't know how.

    Partitioning of the application is really useful when you want to include only a few dimensions that are actually present in the fact table. For example, if you want to show only the cities that actually took sale (in other words, in this example, if you do not want to include Cherokee), but you don't want that all the dates in the table of the day for each city.

    Partitioning of the query was new in Oracle 10. If you have an older version, I think that a cross join, as you initially suggested, is the only reasonable way.

    Published by: Frank Kulash, Sep 12, 2010 13:14

  • The advantage of using EPMA?

    now, I know there are many defects using EPMA if planning is very small. However, what is the advantage of using EPMA, here's what I think: 1. If there is a lot of demand and you want to develop at the centre, EPMA is bettter. 2 EPMA application can use the model and the existing dimensions, and easier to develop a new application, moreover, diemsion library is the reusable dimension please correct me, thank you!

    Hello

    I think that you have the correct idea, the advantage is easier to manage hierarchies through a gui advanced compared to the classic, you can share the dimensions across not only the planning applications but HFM and essbase (albeit with essbase when it improves the epma)

    See you soon

    John
    http://John-Goodwin.blogspot.com/

  • Using the MDX formula in the monetary Dimension

    I wrote the MDX formula for a dynamic member in the currency dimension. I want only that Member to calculate a value if the scenario is REAL. In other words, I want that the Member of the currency to return $MISSING if the user seeks to Calc this dynamic rate for a member forcast or budget.

    To do this, I used MDX with a qualifyier like this:

    When is ([SCENARIO]. CurrentMember, [ACTUAL])

    It works very well and when the scenario is real, it works perfectly. And once the BUDGET, the MP scenario returns $MISSING. Awesome!

    But when the scenario is planned, I get a result. I have concluded that it is because the forecast members also formulas MDX associated with them that populate certain periods with actuals. This surprised me, because I wasn't expecting values sitting in a forecasting scenario would be marked in a way that could identify as being the actual expenditure. But the MDX is see it this way and, therefore, he is fighting through the qualification 'When' statement above and calculate a monetary value for the actual periods sitting in the forecasting scenario.

    Anyone have any ideas on how to change the MDX formula on the Member of the currency so that it will ignore the ACTUAL data, sitting in no REAL scenarios - and give me a #MISSING? I wouldn't not rather the formula MDX sitting on members of scenario.

    I'd be surprised if it actually happens, it's what you described, but I guess you never know.
    Try to increase the resolution of your member order then it Calc after other formulas were evaluated. See what's happening.

  • Is mapping dimension AWM - possible to load the data in two tables of entry?

    Hi all

    I have two tables ProductFamily (parent level) and products (child level).

    I want to load a dimension of those tables where the parent-child relationships are maintained (I use AWM).

    I created a map with these two entry tables, but the loaded data has no relationship.
    So, how do I do that? Is it possible to load dimensions where different levels get data from multiple tables?
    Is any type of Carpenter available in AWM?

    Thank you

    ------------------------

    A few Notes:

    -I don't want to use OWB here that my data are clean
    -In AWM, when I loaded the data in a single view that contains two tables of input data, it worked fine. But it's my worst case option.

    You must use Dimension option in snowflake in the mapping screen of size for the Product Dimension (as opposed to the default style mapping - star schema dimension).

    This will modify map entries to include a separate parent for each level of hierarchy level / that is to say, for each level of hierarchy / (unless a higher level of the hierarchy), you must specify the parent level key in addition to the key current level, code/name/description/other attributes etc.

    You can make the mapping or... use the icons at the top of the map screen.
    mode drag/drop by dragging the relational column on dimension - level/hierarchy/attribute model
    -or-
    the table expression mapping mode that gives the same effect... by dragging a column on an attribute defined in the .

    . the format of .

    HTH
    Shankar

    Note1: Complete the mapping of a sudden... B & w switching mapping modes cause the mappings to reset.
    NOTE2: assumes that your data are correct foreign key table parent level: ProductFamily exists in the child level table: products.

  • Repeat the data used in the State of charge

    Hello
    I build a report and a load rule script to extract data from a cube in another. The problem is I want to use one of the fields in the extract of the report twice. The cube I'm a demension loading more than I'm extract from. I can determine the projectID in the cube, I am loading from the cost center but cost center is also a dimension. I tried modifying the script to report to display a list of the cost twice Center but am unsuccessful. If it appears only once, it seems that I can use for the cost center or ProjectID but not both. Any ideas?

    Thank you

    In the State of charge, open the data file (file-> open data file), and then select the column that you want to duplicate. Then select field-> create using the join. It will show you the a column that you selected. Click ok and it will duplicate the column, you can then move it where you want it, to replacements on it, she join other columns or columns of text, tc

  • Use of data cell after the upgrade to iOS 10.0.2 has increased dramatically

    Hello:

    I noticed a HUGE increase in mobile data usage by my phone (iPhone 6s) after the iOS to 10.0.2 update.    I had not changed anything since before the update.  A few days after my phone iOS update my more than double to 15 days prior to the cell data update!   I went under a GB to 2.2 GB for two days.  I am only allowed 2.5 GB of my company.   Assist of WiFi was interrupted. I am connected to a wifi most of the time, all day at the office and at home in the morning and in the evening.  I haven't changed my phone usage habits nor have I down loaded new applications.   I also did all the stuff reset once I downloaded the update as turning on and off, hold down home and appears on the sides until that little Apple.

    I looked in the cell parameters section and noticed a few things that consume more data:

    Facebook: I had disabled cell Facebook use.   However, there was a large amount of data used. I also, by habit, only check Facebook when I'm at a known wifi spot as the House or the office.   It was less than a MB before and near a GB of data in 2 days.

    YouTube: Idem, had turned off cell phones and only look at the House.

    Maps - never used but the use of data.

    e-mail-HUGE amount of data used.  Normal use for me. in the past, the amount of data has been a MB.  Now it's 65 MG in 2 days,

    Siri - I do not use Siri as in "Hey Siri" or by using voice commands.  I use it from time to time to the voice on texts.

    AccuWeather.  Even.

    It's just as much as the apps that I use, the rest is electronic mail and stuff systems.   I uninstalled nearly all applications except for the few that I need as my ticket train and planning aps and mail want to stop this.   I won't send any imessages anymore.

    Quite an experience of something like that?

    Yes! I have iPhone 6 - after that the update almost all my data is gone for the month! I do not have Wifi Assist on and I only use data when I'm home and can connect to Wifi!

    I see my iPhone to connect to my Wifi then bounce to the cellular network. I have no problem with my home wifi network. This problem also occurs in the work. In addition, the network at work requires the password to the network - I type in iPhone tells me it's the wrong password, and then it connects. Then it disconnects after 2 minutes.

    I tried to reset the Wifi feature. Help!

  • I want to update the verson using celluler data how is possible

    I want to update the verson using celluler data how is possible

    WiFi or iTunes > update the iOS on your iPhone, iPad or iPod touch - Apple Support software

Maybe you are looking for