维度级别的累计计数错误
我有一个像这样的维度层次结构:年份 ->月份名称 ->日期。
我正在尝试获取项目的累积计数,因此我使用以下表达式创建了一个计算度量:
SUM(null:[Dim Date].[Hierarchy], [Measures].[ParentCount])
它对于年份级别非常有效,但我不明白为什么我得到的月份和日期值错误。
我已经发布了恢复问题的图像(抱歉,我无法将其包含在帖子中,因为我是 stackoverflow 上的新用户)
就像我说的,年级的计数很好。另一位有什么问题吗? SSAS/MDX 对我来说是新的..我想我的计算度量中缺少某些内容,或者可能是我的层次结构..
谢谢!
I have a dimension hierarchy like this: Year -> Month Name -> Date.
I'm trying to get a cumulative count of items, so I created a calculated measure using this expression:
SUM(null:[Dim Date].[Hierarchy], [Measures].[ParentCount])
It works great for the year level, but I don't understand why i'm getting wrong value for Month and Date.
I've post an image resuming the problem (Sorry I can't include it on the post because i'm a new user on stackoverflow)
Like I said, the count for the Year Level is good. What's wrong with the other one? SSAS/MDX is new to me.. I guess something is missing in my calculated measure, or maybe it's my hierarchy ..
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
不确定您在寻找什么,但请尝试:
要了解此函数在做什么,请尝试:
甚至更好地使用 SetToStr MDX 函数
但是,实际上是一个 MDX 调试器,抱歉,不适用于 SSAS,它将帮助您了解发生了什么:-)
Not sure about what you're looking for, but try :
To get an idea what this function is doing try :
and even better using the SetToStr MDX function
But, actually an MDX Debugger, sorry not for SSAS, would help you understanding what is going on :-)