I am building a data warehouse using the famous facts/dimensions star scheme. Currently implementing employee performance data.
I have two sources:
- The ticket system where I get
fact: spent time, billed amount dimension: Employee, Date, Customer, type-of-time (billed, not-billed, internal, service, driving-time ...)
- The time clocking system, where i get
fact: worked hours dimension: Employee, Date
What would be the "correct" approach:
A. Add the Worked hours as separate fact?
B. Just have a "time spent" fact and add the worked hours as a dimension to the type-of-time dimension?
The goal is to create a dashboard with info such as billed time vs worked time, amount of not-billed time etc.