我有三个维度表。一个以厘米为单位的测量值(dim_cm), 另一个包含图形的数据x,y(dim_data), 和其他用户个人数据(dim_patient)。我构建了事实表(facts_data), 将dim_cm.cm与dim_data.x和dim_data.y进行比较, 结果id_cm用于设置列facts_data.id_cm_x和facts_data.id_cm_y
+----------+ +---------------+ +---------------------+ +---------------+
| dim_cm | | dim_data | | dim_patient | | facts_data |
|----------| |---------------| |---------------------| |---------------|
|id_cm INT | |id_data INT | |id_patient INT | |id_data INT |
|cm DOUBLE | |id_patient INT | |firstName VARCHAR(30)| |id_patient INT |
+----------+ |x DOUBLE | +---------------------+ |id_cm_x INT |
|y DOUBLE | |id_cm_y INT |
+---------------+ +---------------+
架构工作台
<Schema name="Serie Schema">
<Dimension type="StandardDimension" visible="true" name="dim_cm">
<Hierarchy visible="true" hasAll="true" allMemberName="All" primaryKey="cm_id">
<Table name="dim_cm" alias=""></Table>
<Level name="centimeter" visible="true" column="cm" nameColumn="cm"
type="Numeric" uniqueMembers="false" levelType="Regular" hideMemberIf="Never">
</Level>
</Hierarchy>
</Dimension>
<Dimension type="StandardDimension" visible="true" name="dim_patient">
<Hierarchy visible="true" hasAll="true" primaryKey="id_patient">
<Table name="dim_patient" alias=""></Table>
<Level name="FirstName" visible="true" column="firstName" nameColumn="firstName"
type="String" uniqueMembers="false" levelType="Regular" hideMemberIf="Never">
</Level>
</Hierarchy>
</Dimension>
<Cube name="Serie Cube 1" visible="true" cache="true" enabled="true">
<Table name="facts_data" alias=""></Table>
<DimensionUsage source="dim_cm" name="cm_X" visible="true" foreignKey="id_cm_x"></DimensionUsage>
<DimensionUsage source="dim_cm" name="cm_Y" visible="true" foreignKey="id_cm_y"></DimensionUsage>
<DimensionUsage source="dim_patient" name="Patient" visible="true" foreignKey="id_patient"></DimensionUsage>
<Measure name="Measure" column="id_cm_x" datatype="Integer" aggregator="sum" visible="true"></Measure>
</Cube>
</Schema>
多维数据集未正确呈现
提前致谢!!