Table MD_UnitOfMeasurement

Card of table MD_UnitOfMeasurement

Name

MD_UnitOfMeasurement

Dimensional Type

Dimension

Comment

Unit of measurement used for a reading. Note that it is important to refactor measurements taken at different granularities so that they are compatible. So if all the units here are being regularly used, probably something is being done wrong. The fewer the better.

For example, we should not have entries here for PSI (lbs per square inch) and KPI (kilograms per square inch). The one unit should be converted into the other, particularly if the same thing is being measured. They can be converted back again in reports or crosstabs.

Some measurements may not have units, so it will be necessary to generate an 'Unknown' unit, to ensure that there is something in this table for every measurement.

No data type is available here (although source systems may have it) because they may choose to implement units to varying levels of precision. Here we want to consolidate everything into as few units as possible, and in the associated fact tables we'd like to jam everything into a single 'long float' data type, so we don't end up with type mismatches when aggregating.

Note that conversion factors are given here for various units. These COULD HAVE BEEN BROKEN OUT INTO A SEPARATE unit-to-unit conversion table and properly normalized. This WAS NOT DONE HERE because this table is largely static and is maintained by hand, and it's therefore easier to have a denormalized table with extra columns for each conversion, and simply leave them blank where they don't apply. The fact is that there is a small/finite set of units we want to convert to (feet, square feet, cubic feet, watts, BTUs, etc.), so we only need enough columns to handle those units.


Check constraint name of the table MD_UnitOfMeasurement

CKT_MD_UNITOFMEASUREMENT


List of incoming references of the table MD_UnitOfMeasurement

Name

Child Table

Foreign Key Columns

Relationship_97

MF_ReadingByHourNoAggregations

MD_Unit_SurrogateKey

Relationship_102

MF_UnitCost

MD_Unit_SurrogateKey

Relationship_111

MF_ReadingByHourSnapshot

MD_Unit_SurrogateKey

Relationship_224

MF_ReadingByHourAccumulating

MD_Unit_SurrogateKey


List of diagrams containing the table MD_UnitOfMeasurement

Name

StarsEnergyDiagram


List of columns of the table MD_UnitOfMeasurement

Name

Comment

Domain

Data Type

Length

MD_Unit_SurrogateKey

 

<None>

numeric

 

MD_Unit_Name

 

DW_CommonName

nvarchar(64)

64

MD_Unit_AlternateName1

Do not expose to users unless absolutely necessary. Holds an alternate name for a unit. It's maintained solely to give the ETL process multiple things to look for, when trying to find a unit here.

DW_CommonName

nvarchar(64)

64

MD_Unit_AlternateName2

Do not expose to users unless absolutely necessary. Holds an alternate name for a unit. It's maintained solely to give the ETL process multiple things to look for, when trying to find a unit here.

DW_CommonName

nvarchar(64)

64

MD_Unit_Symbol

 

<None>

nvarchar(16)

16

MD_Unit_AlternateSymbol1

Do not expose to users unless absolutely necessary. Holds an alternate symbol for a unit. It's maintained solely to give the ETL process extra material for lookups.

<None>

nvarchar(16)

16

MD_Unit_AlternateSymbol2

 

<None>

nvarchar(16)

16

MD_Unit_Category

General type of measurement, e.g., Volume, Speed, Power, etc. Values here are only for general reference, and are not rigorously maintained or defined.

DW_CodeDesc

varchar(32)

32

MD_Unit_BtuConversionFactor

 

<None>

double precision

 

MD_Unit_WattConversionFactor

 

<None>

double precision

 

MD_Unit_FootConversionFactor

 

<None>

double precision

 

MD_Unit_SquareFootConversionFactor

 

<None>

double precision

 

MD_Unit_CubicFootConversionFactor

 

<None>

double precision

 

MD_Unit_AuditKey

 

DW_AuditKey

bigint

 

MD_Unit_Timestamp

 

<None>

timestamp

 


List of indexes of the table MD_UnitOfMeasurement

Name

Unique

Cluster

Primary

Foreign Key

Alternate Key

Table

MD_UNITOFMEASUREMENT_PK

TRUE

TRUE

TRUE

FALSE

FALSE

MD_UnitOfMeasurement

MD_UNITOFMEASUREMENT_AK

TRUE

FALSE

FALSE

FALSE

TRUE

MD_UnitOfMeasurement


List of keys of the table MD_UnitOfMeasurement

Name

Identifier_1

AltKey