我们有一个包含以下列的SharePoint列表:
Dep User Start Date End Date Status
D1 U1 03/08/2015 09/08/2015 RED
D1 U1 10/08/2015 16/08/2015 GREEN
D1 U1 17/08/2015 23/08/2015 YELLOW
D1 U1 24/08/2015 30/08/2015 BLUE
D1 U2 03/08/2015 09/08/2015 GREEN
D1 U2 10/08/2015 16/08/2015 GREEN
D1 U2 24/08/2015 30/08/2015 RED
D2 U3 03/08/2015 09/08/2015 YELLOW
D2 U3 24/08/2015 30/08/2015 YELLOW
D2 U4 17/08/2015 23/08/2015 BLUE
D2 U4 24/08/2015 30/08/2015 RED
D3 U5 10/08/2015 16/08/2015 YELLOW
D3 U6 03/08/2015 09/08/2015 BLUE
D3 U6 10/08/2015 16/08/2015 RED
D3 U6 17/08/2015 23/08/2015 BLUE
D3 U6 24/08/2015 30/08/2015 GREEN
我们希望以下列格式创建报告:
Dep User Week 1 Week 2 Week 3 Week 4
D1 U1 RED GREEN YELLOW BLUE
U2 GREEN GREEN RED
D2 U3 YELLOW YELLOW
U4 BLUE RED
D3
D3 U5 YELLOW
U6 BLUE RED BLUE GREEN
到目前为止我们所做的是:
Departments User 8/3/2015 8/10/2015 8/17/2015 8/24/2015
D1 U10 GREEN
RED
U12 RED
YELLOW
BLUE
GREEN
U13 RED
YELLOW
是否有想法将所有状态排在一行?