良好的 MDX 默认查询
我已经构建了一个 MDX 编辑器,现在需要一个良好的默认查询,该查询可以执行并且已经具有二维。我想将度量放在第一个维度上(不知道它们的名称),并将任何其他多维数据集维度放在第二个结果维度上。目前我已经实现了这一点:
select {[Measures].members} ON COLUMNS
from [mycubename]
但我不知道如何填充第二列......有什么想法吗?
类似的内容将适用于任何多维数据集。
select {[Measures].members} ON COLUMNS,
{[Dimensions].[first].members} ON ROWS
from [mycubename]
如果在 from 子句中给出了多维数据集名称,则
I have build an MDX editor and now need a good default query which executes and already has two dimensions. I would like to place the measures on the first dimension (without knowing their names), and any other cube dimension on the second result dimension. Currently I have achived this:
select {[Measures].members} ON COLUMNS
from [mycubename]
But I don't know how to populate the second column... Any Ideas?
Something like
select {[Measures].members} ON COLUMNS,
{[Dimensions].[first].members} ON ROWS
from [mycubename]
which would work against any cube if the cube name is given in the from clause.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这适用于 Microsoft SSAS,因此您可能需要调整 Mondrian 的语法:
This works in Microsoft SSAS, so you may need to tweak the syntax for Mondrian: