库存周转:库存周转率
我正在尝试计算库存周转率 =(从当前日期算起的过去 12 个月的 COGS)/过去 12 个月的平均库存成本)
。所以我的第一步是计算过去 12 个月的 COGS(成本卖得好)。我正在使用以下查询:
SUM( ClosingPeriod([日期].[日历].[月份], [日期].[日历].[全部 期间]).Lag(12):ClosingPeriod([日期].[日历].[月份], [日期].[日历].[所有期间]),[措施].[齿轮金额])
但计算成员给我的结果为空。
请帮忙。!!
干杯 鲁希尔
I am trying to Calculate Stock Turn = (COGS for last 12 months from Current date)/Average Inventory Cost for last 12 months)
.So my 1st step is to Calculate COGS for last 12 months(Cost of Good Sold). I am using the following Query:
SUM( ClosingPeriod([Date].[Calendar].[Month], [Date].[Calendar].[All
Periods]).Lag(12):ClosingPeriod([Date].[Calendar].[Month],
[Date].[Calendar].[All Periods]), [Measures].[Cogs Amount])
But the Calculated Member is giving me Null results.
Please help.!!
Cheers
Rushir
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您正在使用[所有期间]。您不应该使用该成员,因为它是根。
[所有周期] 的 Lag(12) 不存在。
尝试使用特定成员,如下所示:
或者如下所示:
SUM({[Date].[Calendar].CurrentMember.Lag(12):[Date].[Calendar].CurrentMember}, [Measures].[Cogs数量])
You are using [ALL Periods]. You should not use that member because it is the root.
The Lag(12) of [All Periods] doesn't exist.
Try using an specific member, something like this:
Or something like this:
SUM({[Date].[Calendar].CurrentMember.Lag(12):[Date].[Calendar].CurrentMember}, [Measures].[Cogs Amount])