要填充堆叠和分组的高图,我需要在我的数据中添加一些 0 值。我尝试过使用数字表,但无法弄清楚如何为每个日期缺失的每个员工添加 0。所以我有:
表(基准、员工、编号、堆栈)
2012-10-13 00:00:00.000 Nick 3 corporate
2012-10-14 00:00:00.000 Jack 1 private
2012-10-15 00:00:00.000 Yannick 1 corporate
2012-10-15 00:00:00.000 Jack 2 corporate
我需要:
2012-10-13 00:00:00.000 Nick 3 corporate
2012-10-14 00:00:00.000 Nick 0 corporate
2012-10-15 00:00:00.000 Nick 0 corporate
2012-10-13 00:00:00.000 Jack 0 private
2012-10-14 00:00:00.000 Jack 1 private
2012-10-15 00:00:00.000 Jack 0 private
2012-10-13 00:00:00.000 Yannick 0 corporate
2012-10-14 00:00:00.000 Yannick 0 corporate
2012-10-15 00:00:00.000 Yannick 1 corporate
2012-10-13 00:00:00.000 Jack 0 corporate
2012-10-14 00:00:00.000 Jack 0 corporate
2012-10-15 00:00:00.000 Jack 2 corporate
我需要使用光标还是有更好的技巧?