MDX 到 SSAS 计算
我编写了一个 MDX 查询,它在 SQL Server Management Studio 中运行良好。我的查询如下:
SELECT [Measures].[Item Count]
ON 0
FROM [Inventory]
where [DateDiscontinued].[Date].[Discontinued Cal Year].&[0].&[0]
此查询为我提供了所有已停止的项目。现在的问题是,当我将查询复制粘贴到 BIDS(SSAS 立方体计算)中作为计算成员时,我收到错误。它说它无法读取 select 语句。我是否需要编写不同的 MDX 来支持 SSAS 计算成员或支持 SSAS 计算成员的不同函数?
I have written a MDX query which works fine in SQL Server Management Studio. My query is as follows:
SELECT [Measures].[Item Count]
ON 0
FROM [Inventory]
where [DateDiscontinued].[Date].[Discontinued Cal Year].&[0].&[0]
This query gives me all the items which are Discontinues.Now the problem is that when I copy paste the query in BIDS(SSAS Cube Calculation) as a calculated Member I get an error. It says it can't read the select statement. Do I need to write different MDX to support SSAS Calculated member or different function which supports SSAS Calculated Memeber?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
创建成员权限语法是:
那么,您的创建成员应该像:
The create member right syntax is:
Then ,your create member should be like: