Mondrian MDX 查询,避免在多维数据集中找不到成员时出现致命错误

发布于 2024-08-22 07:12:20 字数 490 浏览 5 评论 0原文

我想知道当定义的多维数据集中没有任何成员时是否可以避免蒙德里安的致命错误。例如我有这个 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

谜泪 2024-08-29 07:12:20

您应该尝试在 mondrian.properties 文件中进行设置,并确保在服务器启动期间加载该文件。

mondrian.rolap.ignoreInvalidMembers=true

上述设置的说明:“布尔属性,指示错误是否与不存在的成员相关
在架构加载期间应被忽略。如果是这样,则该不存在的成员是
被视为空成员。”

you should try setting this in mondrian.properties file and make sure this file loaded during server start.

mondrian.rolap.ignoreInvalidMembers=true

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."

橘虞初梦 2024-08-29 07:12:20

将“galleria.classic.css”中的“.galleria-stage”类替换为“galleria.classic.css”,

.galleria-stage {
    position: absolute;
    top: 10px;
    bottom: 60px;
    left: 10px;
    right: 10px;
    overflow:hidden;
    width:100%;
    height:100%;
}

您将在 IE 和其他浏览器中看到正确的输出。

REPLACE YOUR ".galleria-stage" CLASS IN "galleria.classic.css" WITH

.galleria-stage {
    position: absolute;
    top: 10px;
    bottom: 60px;
    left: 10px;
    right: 10px;
    overflow:hidden;
    width:100%;
    height:100%;
}

and you will see the right output in IE and other browsers.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文