Mdx 查询问题
你好 我正在处理 mdx 查询,我以为我解决了问题,但是...... 我创建了一个计算成员
iif(
isleaf([DimensionArtikujDG].[DimensionArtikujDG].CurrentMember),
([Measures].[Sasia])*(1/[Measures].[Koeficienti]),
Sum(
Descendants(
[DimensionArtikujDG].DimensionArtikujDG].CurrentMember,,LEAVES),
([Measures].[Sasia])*(1/[Measures].[Koeficienti])
)
)
当 [DimensionArtikujDG].[DimensionArtikujDG]
位于数据透视表内时, 效果很好。 当我在报告过滤区域和过滤器中获取此维度时 报告区域中的两个或三个元素的总数不会改变。 在不应用过滤器的情况下,它仍然是总数。 不知道我解释是否正确。 会感谢任何形式的帮助
Hi
I m working on mdx query ,and i thought i solved a problem but....
I ve created a calculated member
iif(
isleaf([DimensionArtikujDG].[DimensionArtikujDG].CurrentMember),
([Measures].[Sasia])*(1/[Measures].[Koeficienti]),
Sum(
Descendants(
[DimensionArtikujDG].DimensionArtikujDG].CurrentMember,,LEAVES),
([Measures].[Sasia])*(1/[Measures].[Koeficienti])
)
)
When [DimensionArtikujDG].[DimensionArtikujDG]
is inside the pivot table
it works fine.
When i take this dimension at the reports filter area and filter
two or three elements the total in report area does not change.
It remains the total without the filters being applied.
Don t know if i explained it correctly.
Would apprceiate any kind of help
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
问题是评估表达式时 currentMember 的值。了解正在发生的情况的一种方法是将表达式更改为:
[DimensionArtikujDG].[DimensionArtikujDG].CurrentMember.name
当您在切片器中使用集合时(又名 WHERE),currentMember 没有明确定义(在 icCube 中,我们抛出一个错误)。也许您正在使用的服务器正在采用默认成员(可能是[全部])。
解决方案:这取决于您使用的 Olap 服务器。作为提示,请查看如何为您的维度定义特殊汇总。
The issue is the value of your currentMember when evaluating the expression. A way to understand what is going on is changing your expression to :
[DimensionArtikujDG].[DimensionArtikujDG].CurrentMember.name
As you're using a set in your slicer (aka WHERE) currentMember is not well defined (in icCube we throw an error). Maybe the server you're using is taking the defaultmember (likely [All]).
Solution: this will depend on the Olap Server you're using. As a hint look how to define a special rollup for your dimension.