SlideShare une entreprise Scribd logo
1  sur  8
Télécharger pour lire hors ligne
DATA WAREHOUSING
Multi Dimensional
Data Modeling.
Date Dimension
2
   One row for every day for which you expect to have
        data for the fact table




3
   Usually use a meaningful integer surrogate key (such
        as yyyymmdd 20060926 for Sep. 26, 2006).
         Note: this order sorts correctly.




4
   Include rows for missing or future dates to be added
        later.




5
Fiscal Year          Calendar Year



                                         Calendar
              Fiscal Quarter
                                          Quarter



                                         Calendar
                  Fiscal Month
                                          Month



                  Fiscal Week



                                                       Calendar
    Type of Day
                                                        Week



    Day of Week                  Day                    Holiday




6
Attribute Nam e              Attribute Description                      Sam ple Values
Day                 The specific day that an activity took place. 06/04/1998; 06/05/1998
Day of Week         The specific name of the day.                  Monday; Tuesday
Holiday             Identifies that this day is a holiday.         Easter; Thanksgiving
Type of Day         Indicates w hether or not this day is a    Weekend; Weekday
                    w eekday or a w eekend day.
Calendar Week       The w eek ending date, alw ays a Saturday. WE 06/06/1998;
                    Note that WE denotes w eek ending.         WE 06/13/1998
Calendar Month      The calendar month.                            January,1998; February, 1998
Calendar Quarter    The calendar quarter.                          1998Q1; 1998Q4
Calendar Year       The calendar year.                                                     1998
Fiscal Week         The w eek that represents the corporate        F Week 1 1998;
                    calendar. Note that the F in the data value    F Week 46 1998
Fiscal Month        indicates that thiscomprised time period.
                    The fiscal period is a fiscal of 4 or 5        F January, 1998;
                    w eeks. Note that the F in the data value      F February, 1998
Fiscal Quarter      indicates that of 3 is a fiscal time period.
                    The grouping this fiscal months.               F 1998Q1; F1998Q2
Fiscal Year         The grouping of 52 fiscal w eeks / 12 fiscal F 1998; F 1999
                    months that comprise the financial year.
   The Data Warehouse Toolkit.Second
    Edition.The Complete Guide to Dimensional
    Modeling.Ralph Kimball.Margy Ross

Contenu connexe

Plus de Claudia Gomez (18)

Diseño fisico particiones_3
Diseño fisico particiones_3Diseño fisico particiones_3
Diseño fisico particiones_3
 
Diseño fisico indices_2
Diseño fisico indices_2Diseño fisico indices_2
Diseño fisico indices_2
 
Diseño fisico 1
Diseño fisico 1Diseño fisico 1
Diseño fisico 1
 
Agreggates iii
Agreggates iiiAgreggates iii
Agreggates iii
 
Agreggates ii
Agreggates iiAgreggates ii
Agreggates ii
 
Agreggates i
Agreggates iAgreggates i
Agreggates i
 
Dw design hierarchies_7
Dw design hierarchies_7Dw design hierarchies_7
Dw design hierarchies_7
 
Dw design fact_tables_types_6
Dw design fact_tables_types_6Dw design fact_tables_types_6
Dw design fact_tables_types_6
 
Dw design 4_bus_architecture
Dw design 4_bus_architectureDw design 4_bus_architecture
Dw design 4_bus_architecture
 
Dw design 3_surro_keys
Dw design 3_surro_keysDw design 3_surro_keys
Dw design 3_surro_keys
 
Dw design 2_conceptual_model
Dw design 2_conceptual_modelDw design 2_conceptual_model
Dw design 2_conceptual_model
 
Dw design 1_dim_facts
Dw design 1_dim_factsDw design 1_dim_facts
Dw design 1_dim_facts
 
3 dw architectures
3 dw architectures3 dw architectures
3 dw architectures
 
2 dw requeriments
2 dw requeriments2 dw requeriments
2 dw requeriments
 
1 dw projectplanning
1 dw projectplanning1 dw projectplanning
1 dw projectplanning
 
0 dw process
0 dw process0 dw process
0 dw process
 
Clase2 introdw
Clase2 introdwClase2 introdw
Clase2 introdw
 
Intro bi
Intro biIntro bi
Intro bi
 

Dernier

Dernier (20)

Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of Brazil
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation Strategies
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 

Dw design date_dimension_1_1

  • 1. DATA WAREHOUSING Multi Dimensional Data Modeling. Date Dimension
  • 2. 2
  • 3. One row for every day for which you expect to have data for the fact table 3
  • 4. Usually use a meaningful integer surrogate key (such as yyyymmdd 20060926 for Sep. 26, 2006).  Note: this order sorts correctly. 4
  • 5. Include rows for missing or future dates to be added later. 5
  • 6. Fiscal Year Calendar Year Calendar Fiscal Quarter Quarter Calendar Fiscal Month Month Fiscal Week Calendar Type of Day Week Day of Week Day Holiday 6
  • 7. Attribute Nam e Attribute Description Sam ple Values Day The specific day that an activity took place. 06/04/1998; 06/05/1998 Day of Week The specific name of the day. Monday; Tuesday Holiday Identifies that this day is a holiday. Easter; Thanksgiving Type of Day Indicates w hether or not this day is a Weekend; Weekday w eekday or a w eekend day. Calendar Week The w eek ending date, alw ays a Saturday. WE 06/06/1998; Note that WE denotes w eek ending. WE 06/13/1998 Calendar Month The calendar month. January,1998; February, 1998 Calendar Quarter The calendar quarter. 1998Q1; 1998Q4 Calendar Year The calendar year. 1998 Fiscal Week The w eek that represents the corporate F Week 1 1998; calendar. Note that the F in the data value F Week 46 1998 Fiscal Month indicates that thiscomprised time period. The fiscal period is a fiscal of 4 or 5 F January, 1998; w eeks. Note that the F in the data value F February, 1998 Fiscal Quarter indicates that of 3 is a fiscal time period. The grouping this fiscal months. F 1998Q1; F1998Q2 Fiscal Year The grouping of 52 fiscal w eeks / 12 fiscal F 1998; F 1999 months that comprise the financial year.
  • 8. The Data Warehouse Toolkit.Second Edition.The Complete Guide to Dimensional Modeling.Ralph Kimball.Margy Ross