Agile Dimensional Modeling: Event and Fact Table Types General Column Types

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 4

BEAM✲ Event and Fact Table Types General Column Types

[DE] Discrete Event. Point in time or short MD Mandatory. Value is present under normal
duration (completed) transaction. conditions. Can be nullable to handle errors.
[EE] Evolving Event. (multi-verb) process that NN Not Null. Column does not allow nulls. All SK
Business Event Analysis & Modeling takes time to complete. and FK columns are NN by default.
Agile Dimensional Modeling [RE] Recurring Event. Measurements taken at ND No Duplicates . Numbered to define
predictable regular intervals. NDn combinations of column values that must be
Who does what? unique. PK columns are ND by default.
When and where? [TF] Tr a n s a c t i o n F a c t t a b l e . P h y s i c a l
How much / how many? equivalent of DE. Typically maintained by Xn Exclusive. Column is not valid in
Why and how? insert only. combination with other X columns. Numbered
[AS] Accumulating Snapshot . Physical to identify mutually exclusive groups and
When How Who equivalent of EE. Maintained by insert and identify the specific DC which controls validity.
update. Typically contains multiple milestone
Date Transaction Type Customer
date/time dimensions and duration facts. DC Defining Characteristic. Column value
Time Transaction # Employee
DCn,n dictates which X columns are valid. E.g.,
[PS] Periodic Snapshot. Physical equivalent of Product Type DC defines which exclusive
Time Zone Partner RE. Typically contains semi-additive facts. product dimension attributes are valid. Number
Period How Many list relates multiple defining characteristics in
[AG] Aggregate. Fact table that pre-summarizes
Facts an existing detailed fact table. the same table to specific Xn exclusive
Measures columns or groups.
KPIs
Where What [DF] Derived Fact table. Fact table constructed
[UoM, Additivity] by merging, slicing, or pivoting existing fact [W type] Dimension type or name. The W type
Location Product
tables. [dimension] (who, what, when, where, why, how) of an
Facility Why Service event detail or the dimension name when a
detail is a role; e.g., Salesperson
Channel
Reason
Resource
Dimension Types [Employee] where Salesperson is a role
URL
Causal Event
[CV] Current Value. Contains current value only of the Employee dimension. Also used to
dimensional attributes. Type 1 SCD. describe recursive relationships.

Event Table Table Code(s) Verb [HV] Historic Value. Contains at least one
historical value dimensional attribute. Type 2
Name
Object Preposition
slowly changing dimension (SCD).
Event and Fact Table Column Types
(Responsible) CUSTOMER ORDERS [EE] Detail/
Subject
CUSTOMER
Orders
PRODUCT
on
ORDER DATE
Dimension [RP] Role-Playing. Used to play multiple roles. DD Degenerate Dimension . Dimensional
Name
Column attribute stored in a fact table. Typically used
KEY
[RU] Roll-Up. Derived from a more granular
Name [who] [what] MD [when] SK
Column for transaction IDs (how details).
Type
dimension.
Column
Codes Detail Type
[SD] Swappable Dimension. Part of a set of GD Granularity Dimension . Dimension
dimensions with a common surrogate key that GDn combination that defines the granularity of a
Table
Example Complete
can be used in place of each other. fact table. Numbered when alternative
Data
Indicator [ML] Multi-Level. Dimension containing additional combinations exist.
members representing higher levels in the
dimension’s hierarchy. MV Multi-Valued. Event detail contains multiple
7W Details: Who, What, When, Where, How Many, Why, How
values that must be resolved using a bridge
[HM] Hierarchy Map. Table used to resolve a table. Fact table FK that references a multi-
Example Data

Typical normal, popular, average recursive relationship. Represents a variable- value bridge table.
Themes

Different explore group and range, exceptional values


Missing mandatory details depth hierarchy.
Repeat discover uniqueness
Group organisation, bundle, multi-level, multiple values
[MV] Multi-Valued. Bridge table used to resolve a ML Multi-Level. Event detail can represent
Range low/high, old,new, near/far, large/small, min/max many-to-many relationship between a fact various levels in a hierarchy; e.g., individual
table and a multi-valued dimension. employee or teams/branches. Fact table FK
that points to a multi-level dimension and
[PD] Pivoted Dimension. Contains column flags
© DecisionOne Consulting +44 (0)7971 964794 makes use of the additional levels.
built from the row values of another dimension.
www.decisionone.co.uk information@decisionone.co.uk 2 BEAM✲ RC 2.0 3
Fact Types Dimensional Attribute Types Key Types
FA Fully Additive. Fact that produces a correct CV Current Value. Attribute records current PK Primary Key. A column or group of columns
total when summed across any combination of CVn values only. Changes overwrite previous that uniquely identifies each row in a table.
its dimensions. For a fact to be (fully) additive values. Supports “as is” reporting. Also known
it must be expressed in a single unit of as a type 1 slowly changing dimension (SCD).
FK Foreign Key. A column that references the
primary key of another table.
measure. Percentages and unit prices are not Combined with HV to define hybrid CV/HV
additive. attributes with default CV behavior listed first. SK Surrogate Key . Anonymous integer
Implemented as separate CV & HV attributes. assigned by the data warehouse as the
primary key for a dimension table.
Combined with PV to define hybrid CV/PV
SA Semi-Additive. Fact that can be correctly Dimensional foreign key in fact tables.
attributes or numbered to relate separate CVn
SAn totaled by some dimensions but not by at least Denotes that example data will be replaced by
attributes to matching PVn attributes.
one non-additive (NA) dimension: e.g., an integer keys.
account balance cannot be summed over time:
its NA dimension. SA facts are often averaged
BK Business Key. Source system key.
HV Historic Value. Attribute records historical
over their NA dimension.
values. Changes cause new versions of
NK Natural Key. Key used in the real world.
HVn
SA is always used in conjunction with at least dimension members to be created: preserving RK Recursive Key. Foreign key that references
one NA dimension to relate the semi-additive their historically correct values. Supports “as the primary key of its own table. Often used to
fact to its non-additive dimension(s). was” reporting. Also known as a type 2 SCD. represent variable-depth hierarchies. Used to
Numbering relates multiple SAn facts in the Combined with CV to define hybrid HV/CV build [HM] hierarchy maps.
same table to their specific NAn dimension(s). attributes with default HV behavior listed first.
Implemented as separate HV & CV attributes.
Numbering defines conditional HVn attributes
Data Types
NA Non-Additive. Fact that cannot be aggregated groups: combinations of attributes that only act
NAn using sum; e.g., Temperature NA. Non- as HV when every member of their n group Cn Character. Number defines the maximum
additive facts can be aggregated using changes at the same time. Used in length, overriding any default length.
functions such as min, max, average. combination with CV to treat small changes or DTn Date/Time. Number is used in duration
Non-additive dimension of a semi-additive fact. corrections as CV; e.g., Street CV, HV1 formulas for derived facts; e.g., Delivery
Numbering relates multiple non-additive and Zip Code CV, HV1 will be treated as Delay DF=DT2-DT1. Number can denote
dimensions in the same table to specific semi- CV individually but as HV if both change at default order of milestones within an [EE].
additive (SAn) facts. once.
Dn Date. Number is used in duration formulas for
derived facts. Number can denote default
DF Derived Fact. Value can be derived from FV Fixed Value. Attribute values do not change order of milestones within an [EE].
DF= other columns within the same table. May be over time; e.g., Date of Birth FV. Nn.n Numeric . Number defines precision,
formulae followed by a simple formula referencing other Corrections overwrite previous incorrect overriding the default precision.
facts or date/time details by number; values: behaves like a CV attribute. Also know
e.g., Unit Price DF=Revenue/Quantity. as a type 0 SCD. Tn Text. Long character data used to hold free
format text. Number defines the maximum
length, overriding any default length.
[UoM] Unit of Measure. Unit of measure symbol or PV Previous Value. Attribute records previous B Blob . Binary long object used to hold
[U1, U2… ] description; e.g., Order Revenue [$] or PVn values. Supports “as previously” or “as at” documents, images, sound, objects, etc.
Delivery Delay [days]. reporting. Also known as a type 3 SCD.
List denotes that multiple units can be Combined with CV to define hybrid CV/PV
recorded for a quantity. They must be attributes or numbered to relate separate PVn Data Profile Annotation
converted into a standard unit (U1) to produce attributes to their matching CVn attributes;
an additive fact. Can also be use to document e.g., Previous Territory PV1 and {Source} Data source. system, table, column or file,
the list of conversion factors required at Territory CV1. field source name. / delimited choices.
reporting time. PV attributes can also hold initial or “as at Unavailable Unavailable or incorrect. Data source for
date” values; e.g., Initial Territory MD table or column is unavailable or does not
PV1 or YE2010 Territory PV1. comply with the column type code.
© DecisionOne Consulting +44 (0)7971 964794
www.decisionone.co.uk information@decisionone.co.uk 5 BEAM✲ RC 2.0 6
BEAM✲
Event and Fact Table Types General Column Types
[DE] Discrete Event. Point in time or short MD Mandatory. Value is present under normal
duration (completed) transaction. conditions. Can be nullable to handle errors.
[EE] Evolving Event. (multi-verb) process that NN Not Null. Column does not allow nulls. All SK
Business Event Analysis & Modeling takes time to complete. and FK columns are NN by default.
Agile Dimensional Modeling [RE] Recurring Event. Measurements taken at
predictable regular intervals.
ND No Duplicates . Numbered to define
NDn combinations of column values that must be
Who does what? unique. PK columns are ND by default.
When and where? [TF] Tr a n s a c t i o n F a c t t a b l e . P h y s i c a l
How much / how many? equivalent of DE. Typically maintained by Xn Exclusive. Column is not valid in
Why and how? insert only. combination with other X columns. Numbered
[AS] Accumulating Snapshot . Physical to identify mutually exclusive groups and
When How Who equivalent of EE. Maintained by insert and identify the specific DC which controls validity.
update. Typically contains multiple milestone
Date Transaction Type Customer date/time dimensions and duration facts. DC Defining Characteristic. Column value
DCn,n dictates which X columns are valid. E.g.,
Time Transaction # Employee
[PS] Periodic Snapshot. Physical equivalent of Product Type DC defines which exclusive
Time Zone Partner RE. Typically contains semi-additive facts. product dimension attributes are valid. Number
How Many list relates multiple defining characteristics in
Period [AG] Aggregate. Fact table that pre-summarizes
Facts an existing detailed fact table. the same table to specific Xn exclusive
Measures columns or groups.
Where KPIs What [DF] Derived Fact table. Fact table constructed
[UoM, Additivity] by merging, slicing, or pivoting existing fact [W type] Dimension type or name. The W type
Location Product
tables. [dimension] (who, what, when, where, why, how) of an
Facility Why Service event detail or the dimension name when a
detail is a role; e.g., Salesperson
Channel Resource
Reason Dimension Types [Employee] where Salesperson is a role
URL of the Employee dimension. Also used to
Causal Event
[CV] Current Value. Contains current value only describe recursive relationships.
dimensional attributes. Type 1 SCD.

Event Table Table Code(s) Verb


[HV] Historic Value. Contains at least one
Name historical value dimensional attribute. Type 2
(Responsible) CUSTOMER ORDERS [EE]
Object Preposition
Detail/
slowly changing dimension (SCD). Event and Fact Table Column Types
Subject
CUSTOMER
Orders
PRODUCT
on
ORDER DATE
Dimension [RP] Role-Playing. Used to play multiple roles. DD Degenerate Dimension . Dimensional
Name
Column
Name [who] [what] MD
KEY
[when] SK
[RU] Roll-Up. Derived from a more granular attribute stored in a fact table. Typically used
Column dimension. for transaction IDs (how details).
Type
Column [SD] Swappable Dimension. Part of a set of
Codes Detail Type
dimensions with a common surrogate key that GD Granularity Dimension . Dimension
Table can be used in place of each other. GDn combination that defines the granularity of a
Example
Data
Complete fact table. Numbered when alternative
Indicator [ML] Multi-Level. Dimension containing additional combinations exist.
members representing higher levels in the
dimension’s hierarchy. MV Multi-Valued. Event detail contains multiple
7W Details: Who, What, When, Where, How Many, Why, How [HM] Hierarchy Map. Table used to resolve a values that must be resolved using a bridge
recursive relationship. Represents a variable- table. Fact table FK that references a multi-
Example Data

Typical normal, popular, average depth hierarchy. value bridge table.


Themes

Different explore group and range, exceptional values


Missing mandatory details [MV] Multi-Valued. Bridge table used to resolve a ML Multi-Level. Event detail can represent
Repeat discover uniqueness
Group organisation, bundle, multi-level, multiple values
many-to-many relationship between a fact various levels in a hierarchy; e.g., individual
Range low/high, old,new, near/far, large/small, min/max table and a multi-valued dimension. employee or teams/branches. Fact table FK
[PD] Pivoted Dimension. Contains column flags that points to a multi-level dimension and
built from the row values of another dimension. makes use of the additional levels.
© DecisionOne Consulting +44 (0)7971 964794
www.decisionone.co.uk information@decisionone.co.uk
2 BEAM✲ RC 2.0 3
Fact Types Dimensional Attribute Types Key Types
FA Fully Additive. Fact that produces a correct CV Current Value. Attribute records current PK Primary Key. A column or group of columns
total when summed across any combination of CVn values only. Changes overwrite previous that uniquely identifies each row in a table.
its dimensions. For a fact to be (fully) additive values. Supports “as is” reporting. Also known
it must be expressed in a single unit of as a type 1 slowly changing dimension (SCD).
FK Foreign Key. A column that references the
primary key of another table.
measure. Percentages and unit prices are not Combined with HV to define hybrid CV/HV
additive. attributes with default CV behavior listed first. SK Surrogate Key . Anonymous integer
Implemented as separate CV & HV attributes. assigned by the data warehouse as the
primary key for a dimension table.
Combined with PV to define hybrid CV/PV
SA Semi-Additive. Fact that can be correctly Dimensional foreign key in fact tables.
attributes or numbered to relate separate CVn
SAn totaled by some dimensions but not by at least Denotes that example data will be replaced by
attributes to matching PVn attributes.
one non-additive (NA) dimension: e.g., an integer keys.
account balance cannot be summed over time:
its NA dimension. SA facts are often averaged
BK Business Key. Source system key.
HV Historic Value. Attribute records historical
over their NA dimension.
values. Changes cause new versions of
NK Natural Key. Key used in the real world.
HVn
SA is always used in conjunction with at least dimension members to be created: preserving RK Recursive Key. Foreign key that references
one NA dimension to relate the semi-additive their historically correct values. Supports “as the primary key of its own table. Often used to
fact to its non-additive dimension(s). was” reporting. Also known as a type 2 SCD. represent variable-depth hierarchies. Used to
Numbering relates multiple SAn facts in the Combined with CV to define hybrid HV/CV build [HM] hierarchy maps.
same table to their specific NAn dimension(s). attributes with default HV behavior listed first.
Implemented as separate HV & CV attributes.
Numbering defines conditional HVn attributes
Data Types
NA Non-Additive. Fact that cannot be aggregated groups: combinations of attributes that only act
NAn using sum; e.g., Temperature NA. Non- as HV when every member of their n group Cn Character. Number defines the maximum
additive facts can be aggregated using changes at the same time. Used in length, overriding any default length.
functions such as min, max, average. combination with CV to treat small changes or DTn Date/Time. Number is used in duration
Non-additive dimension of a semi-additive fact. corrections as CV; e.g., Street CV, HV1 formulas for derived facts; e.g., Delivery
Numbering relates multiple non-additive and Zip Code CV, HV1 will be treated as Delay DF=DT2-DT1. Number can denote
dimensions in the same table to specific semi- CV individually but as HV if both change at default order of milestones within an [EE].
additive (SAn) facts. once.
Dn Date. Number is used in duration formulas for
derived facts. Number can denote default
DF Derived Fact. Value can be derived from FV Fixed Value. Attribute values do not change order of milestones within an [EE].
DF= other columns within the same table. May be over time; e.g., Date of Birth FV. Nn.n Numeric . Number defines precision,
formulae followed by a simple formula referencing other Corrections overwrite previous incorrect overriding the default precision.
facts or date/time details by number; values: behaves like a CV attribute. Also know
e.g., Unit Price DF=Revenue/Quantity. as a type 0 SCD. Tn Text. Long character data used to hold free
format text. Number defines the maximum
length, overriding any default length.
[UoM] Unit of Measure. Unit of measure symbol or PV Previous Value. Attribute records previous B Blob . Binary long object used to hold
[U1, U2… ] description; e.g., Order Revenue [$] or PVn values. Supports “as previously” or “as at” documents, images, sound, objects, etc.
Delivery Delay [days]. reporting. Also known as a type 3 SCD.
List denotes that multiple units can be Combined with CV to define hybrid CV/PV
recorded for a quantity. They must be attributes or numbered to relate separate PVn Data Profile Annotation
converted into a standard unit (U1) to produce attributes to their matching CVn attributes;
an additive fact. Can also be use to document e.g., Previous Territory PV1 and {Source} Data source. system, table, column or file,
the list of conversion factors required at Territory CV1. field source name. / delimited choices.
reporting time. PV attributes can also hold initial or “as at Unavailable Unavailable or incorrect. Data source for
date” values; e.g., Initial Territory MD table or column is unavailable or does not
PV1 or YE2010 Territory PV1. comply with the column type code.
© DecisionOne Consulting +44 (0)7971 964794
www.decisionone.co.uk information@decisionone.co.uk 5 BEAM✲ RC 2.0 6

You might also like