MDX 查询中Where 子句的比较
在 MDX 查询中,如何比较级别值是否小于某个值。 例如,
SELECT NON EMPTY
[Sales Territory].[Sales Territory Country].Members ON 0,
[Product].[Category].[Clothing] ON 1
FROM
[Adventure Works]
WHERE
([Measures].[LowGPM] > 120)
此 MDX 查询不起作用。
另外,我也尝试过WITH子句。
WITH Member [Measures].[Calculated Measures] as
IIF ([Measures].[LowGPM] < 120, [Measures].[LowGPM], null)
SELECT NON EMPTY
[Sales Territory].[Sales Territory Country].Members ON 0,
[Product].[Category].[Clothing] ON 1
FROM
[Adventure Works]
WHERE
([Measures].[LowGPM] > 120)
它显示 Mondrian 错误:在多维数据集中找不到 MDX 对象“[Measures].[Calculated Measures]”
。
In MDX Queries, How can i compare whether a level value is less than a certain value or not.
e.g.
SELECT NON EMPTY
[Sales Territory].[Sales Territory Country].Members ON 0,
[Product].[Category].[Clothing] ON 1
FROM
[Adventure Works]
WHERE
([Measures].[LowGPM] > 120)
This MDX query didn't work.
Also, i tried WITH Clause also.
WITH Member [Measures].[Calculated Measures] as
IIF ([Measures].[LowGPM] < 120, [Measures].[LowGPM], null)
SELECT NON EMPTY
[Sales Territory].[Sales Territory Country].Members ON 0,
[Product].[Category].[Clothing] ON 1
FROM
[Adventure Works]
WHERE
([Measures].[LowGPM] > 120)
It shows Mondrian Error:MDX object '[Measures].[Calculated Measures]' not found in cube
.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以像这样过滤轴:
You can filter the axis like this: