level 1
我的方法分三步
1.设一个时间的参数,我把它命名为选定时间这样你想选什么时候为最后一天都可以
2.写最近一周和最近上周两个字段
//最近一周
SUM(IF [Date]=[选定时间] then [Value]END)+SUM(IF [Date]=[选定时间]-1 then [Value]END)+
SUM(IF [Date]=[选定时间]-2 then [Value]END)+SUM(IF [Date]=[选定时间]-3 then [Value]END)+
SUM(IF [Date]=[选定时间]-4 then [Value]END)+SUM(IF [Date]=[选定时间]-5 then [Value]END)+
SUM(IF [Date]=[选定时间]-6 then [Value]END)
同理最近上周
3.用 最近一周/最近上周就是你要的数据。
2019年10月10日 06点10分