简体   繁体   English

立方体尺寸问题

[英]Problem in cube's dimensions

I've got the following question. 我有以下问题。

I have 3 dimensions: 我有3个维度:
Dim1 昏暗1
Dim2 暗淡2
Dim3 昏暗3

And a fact table, let's say: 还有一个事实表,可以这样说:
FACT 事实

After processing the cube, I run a query which is to obtain the values filtered by dimension Dim1. 处理多维数据集后,我运行查询以获取按维度Dim1过滤的值。 However, I only get values for one member of Dim1 但是,我只获得Dim1的一个成员的值

select [Measures].[Volume] on columns,
[Dim1].[ID].[ID].members on rows
from [Cube]

Dim1ID  | Volume
  A     |  10
  B     | (NULL)
  C     | (NULL)

But when I run the following SQL: 但是当我运行以下SQL时:

select d.id, f.volume
from fact f, dim1 d
where d.id=f.id

Dim1ID  | Value
  A     |  10
  B     |  20
  C     |  30

When processing the cubes do you have any errors or warnings? 处理多维数据集时,您是否有任何错误或警告? If there are attribute key errors some of the fact rows may be ignored or converted to Unknown member. 如果存在属性键错误,则某些事实行可能会被忽略或转换为未知成员。 If that happens your data warehouse won't agree with your cube results. 如果发生这种情况,您的数据仓库将与您的多维数据集结果不一致。

An attribute key error is when a fact has a key value that is not in the dimension. 属性键错误是指事实具有不在维度中的键值时。 This applies to ALL dimensions so you may have all keys correct for dim1 but if you have facts relating to keys not in Dim2 and Dim3 then the fact row will drop out. 这适用于所有尺寸,因此您可能具有对dim1正确的所有键,但是如果您有与Dim2和Dim3中不存在的键有关的事实,那么事实行将丢失。

Depending on your error configuration even if you have Errors and Warnings reporting problems the Process can still report success. 即使您有错误和警告报告问题,也要根据您的错误配置,该过程仍可以报告成功。 In the Process Progress window in Visual Studio check for "Red" rows when it's processing a measure group and drill down on these to find the source of the error. 在Visual Studio的“处理进度”窗口中,在处理度量值组时检查“红色”行,并对其进行深入研究以查找错误源。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM