我正在开发一个sales
必须具有以下事实的维度模型:和per Gross Sales
、和。Gross Revenue
Quantity of Sold Coupons
Sales Executive
City
Coordinator
Manager
问题是对于这个层次结构的每个级别(、 和Sales Executive
)City
都有自己的目标,但它们不能相加。Coordinator
Manager
例子:
Manager Goal: 1000
- Coordinator 1 Goal: 400
-- City 1 Goal: 150
--- SalesExecutive 1 Goal: 80
--- SalesExecutive 2 Goal: 50
-- City 2 Goal: 150
--- SalesExecutive 1 Goal: 100
--- SalesExecutive 2 Goal: 20
- Coordinator 2 Goal: 400
-- City 1 Goal: 350
--- SalesExecutive 1 Goal: 80
--- SalesExecutive 2 Goal: 200
1)这意味着子级别的目标总和不等于它的父级别,但事实是总和。
2)我需要计算每个级别的成就,为此我需要根据其总收入划分每个级别的目标(总收入可以相加,因此如果两个销售执行总收入为 500,则城市的总收入为 500 )
我的问题是我无法弄清楚将目标值放在哪里。我不能把它放在员工维度上,如果我把它放在事实中,我就不能创建向下钻取。
顺便说一句,当然,目标价值每个月都会发生变化。
有人可以帮我找到一种方法来设计这个数据模型吗?我实在想不通。
在此先感谢大家。