Skip to content

Text Comments Dimension

Rather than treating freeform comments as textual metrics in a fact table, they should be stored outside the fact table in a separate comments dimension with a corresponding foreign key in the fact table.

If the comments’ cardinality matches the number of unique transactions, they can also be stored as attributes in a dimension with one row per transaction (like a degenerate dimension table).

Fact Table

transaction_iddate_keycustomer_keycomment_keyamount
TXN-12320260101C-100COM-5$100

Comments Dimension

comment_keycomment_text
COM-5Customer requested expedited shipping due to holiday.