SSAS / MDX 查询 - 显示 2 个日期之间的数据
我有一个查询:
select non empty
order ([Item].Children
,([Measures].[Total Line Value]
,[January 2010])
,DESC)
on Columns,
non empty
[January 2010]
on Rows
from [Sales Analysis]
where [Measures].[Total Line Value]
此查询按从最高到最低的顺序显示特定商品在 2010 年 1 月的总销售额。我想要做的是显示商品在 2 个指定日期之间的总销售额,例如 2010 年 1 月 - 2011 年 3 月。它只需是总值,而不是每个月的值。任何帮助将不胜感激,谢谢。
I have a query:
select non empty
order ([Item].Children
,([Measures].[Total Line Value]
,[January 2010])
,DESC)
on Columns,
non empty
[January 2010]
on Rows
from [Sales Analysis]
where [Measures].[Total Line Value]
This query shows, in order from highest to lowest, the total sales a particular item has made for the month January 2010. What I would like to do is show the total sales an item has made between 2 specified dates, say January 2010 - March 2011. It just has to be the total value and not the value for each month. Any help would be appreciated, thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
使用“WITH”语句声明新度量
在轴 Rows 上使用此新度量并删除 WHERE 子句。
ps我现在无法测试它,所以我可能会犯错误:)。
Use "WITH" statement to declare new measure
Use this new measure on the axis Rows and remove WHERE clause.
p.s. I can't test it now, so I can make a mistake :).