从父表 olap 多维数据集继承字段
我有一个 OLAP 多维数据集,其中包含一个数字度量,该度量表示针对父表的外键。我想显示父表中的“名称”字段,而不是报告中的度量。有可能吗?
I have an OLAP cube containing a numeric measure that represent a foreign key against a parent table. I would like display the 'name' field from the parent table instead of the measure in my reports. it is possible?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您有基于此表的尺寸吗?如果您有一个,那么它应该按设计工作(尽管不是作为度量,而是作为维度属性成员名称)
如果您没有维度,则该信息(名称属性)不会包含在多维数据集中。
还要考虑到典型的 MDX 查询不在事实表的粒度级别上,因此对于特定坐标(例如包含每月数据的事实表中的 2007 年),该度量中可能有 n 值,默认行为是使用一些可用的聚合公式来聚合该度量。
另一方面,如果它是维度键,则您可以显示 2007 年事实记录的计数,或与事实表中 2007 年交叉连接的不同维度成员。
你的问题能说得更具体一些吗?
问候,
赫尔沃耶
Do you have a dimension based on this table? If you have one than it should work by design (though not as a measure but as a dimension attribute member name)
If you do not have a dimension that that information (name attribute) is not included in the cube.
Also consider that a typical MDX query is not on the granularity level of the fact table, so for a specific coordinate, say Year 2007 in a fact table that contains monthly data there would probably be n-values in that measure and the default behavior is to aggregate that measure using some of the available aggregation formulas.
If on the other hand it was a dimension key then you could display the count of fact records in Year 2007, or different dimension members that crossjoin with Year 2007 in the fact table.
Could you be more specific in your question?
Regards,
Hrvoje