Mondrian MDX 查询,避免在多维数据集中找不到成员时出现致命错误
我想知道当定义的多维数据集中没有任何成员时是否可以避免蒙德里安的致命错误。例如我有这个 MDX 查询
选择 {[Measures].[Unit_Sales], [Measures].[Quantity], [Measures].[Total]} ON COLUMNS, Hierarchize({([Country.CountryHeirarchy].[所有国家/地区].[美国], [Products.ProductHeirarchy].[所有产品])}) ON ROWS 来自 [SALES] 的
数据,假设数据库没有 USA 成员,我想获得零(0)或空值。在蒙德里安身上有可能做到这一点吗?
中尝试使用此属性,
我一直在 mondrian.property 文件mondrian.rolap.ignoreInvalidMembersDuringQuery=true
但现在仍然不幸运。
提前致谢。
i want to know if is it possible to avoid mondrian´s fatal error when it doesn't have any member in defined cube. for instance i have this MDX Query
select {[Measures].[Unit_Sales], [Measures].[Quantity], [Measures].[Total]} ON COLUMNS,
Hierarchize({([Country.CountryHeirarchy].[All Countries].[USA], [Products.ProductHeirarchy].[All Products])}) ON ROWS
from [SALES]
and lets say, the DataBase doesn't have the USA member, i want to get a zero(0) or null value. is it possible to do that on mondrian.
i have been trying with this property in mondrian.property file
mondrian.rolap.ignoreInvalidMembersDuringQuery=true
but not lucky still now.
Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您应该尝试在 mondrian.properties 文件中进行设置,并确保在服务器启动期间加载该文件。
上述设置的说明:“布尔属性,指示错误是否与不存在的成员相关
在架构加载期间应被忽略。如果是这样,则该不存在的成员是
被视为空成员。”
you should try setting this in mondrian.properties file and make sure this file loaded during server start.
Description for above setting: "Boolean property indicating whether errors related to non-existent members
should be ignored during schema load. If so, the non-existent member is
treated as a null member."
将“galleria.classic.css”中的“.galleria-stage”类替换为“galleria.classic.css”,
您将在 IE 和其他浏览器中看到正确的输出。
REPLACE YOUR ".galleria-stage" CLASS IN "galleria.classic.css" WITH
and you will see the right output in IE and other browsers.