Is it a Dimension, a Fact, or Both?

KimballGroup

Matt Floyd‘s insight:

Is it a fact or a dimension? When starting out in dimensional modeling, this can be tricky. Well, this likely continues to be tricky sometimes. Facts are generally regarded as measures of the core business, and dimensions are usually descriptors of those facts. Good reference article from the Kimball Group.

Joy Mundy of the Kimball Group says:

For must subject areas, it’s pretty easy to identify the major dimensions: Product, Customer Account, Student, Employee, and Organization are all easily understood as descriptive dimensions. A store’s sales, a telecommunication company’s phone calls, and a college’s course registrations are all clearly facts.

However, for some subject areas, it can be challenging – especially for the new dimensional modeler – to identify whether an entity is a dimension or a fact. For example, an insurance company’s claims processing unit wants to analyze and report on their open claims. “Claim” feels like a dimension, but at the same time, it can behave like a fact table. A similar situation arises with software companies with extended sales cycles: is the sales opportunity a dimension, a fact, or both?

In most cases, the design puzzle is solved by recognizing that the business event you’re trying to represent in the fact table is actually a long-lived process or lifecycle. Often, the business users are most interested in seeing the current state of the process. A table with one row per process – one row per claim or sales opportunity, for example – sounds like a dimension table. But if you distinguish between the entity (claim or sales opportunity) and the process (claim settlement or sales pipeline), it becomes clearer. We need a fact table to measure the process. And many dimension tables to describe the attributes of the entity measured in that process…

 

See on www.kimballgroup.com

Follow

Get every new post delivered to your Inbox

Join other followers: