累计金额(累进总计)
我有一个具有维度 CreatedOn (时间类型)和度量 IssueOpened 的多维数据集。我需要获取 IssueOpened 的累计金额。
例如:
2009 IssueOpened=7 OpenedOnTheEndOfPeriod=7
2010 IssueOpened=12 OpenedOnTheEndOfPeriod=19
2011 IssueOpened=2 OpenedOnTheEndOfPeriod=21
所以,我创建了计算成员:
sum([CreatedOn].[Y-Q-M].currentmember.level.members(0):[CreatedOn].[Y-Q-M].currentmember.prevmember, Measures.[IssueOpened])
但它看起来不起作用我想。维度开始:
维度末尾看起来像是事实:
可能是时间维度的第一个成员上的错误?我需要修复什么才能获得所需的结果?
I have a cube with the dimension CreatedOn (Time type) and the measure IssueOpened. I need to get the cumulative sum for IssueOpened.
For example:
2009 IssueOpened=7 OpenedOnTheEndOfPeriod=7
2010 IssueOpened=12 OpenedOnTheEndOfPeriod=19
2011 IssueOpened=2 OpenedOnTheEndOfPeriod=21
So, I have created the calculated member:
sum([CreatedOn].[Y-Q-M].currentmember.level.members(0):[CreatedOn].[Y-Q-M].currentmember.prevmember, Measures.[IssueOpened])
But it looks like it doesn't work as I want. Start of dimension:
And it looks like a truth at the end of dimension:
May be the error on the first member of Time dimension? What do I need to fix to get the desired result?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您是否看过
要计算运行总计,您应该使用如下成员:
Have you ever looked at http://www.ssas-info.com/analysis-services-articles/62-design/367-inventory-management-calculations-in-sql-server-analysis-services-2005-by-richard-tkachuk. This is a must read if you want to attemp anything like you are doing.
To calculate a running total, you should use a member like this one :