Mdx 在mondrian中对同一维度内的多个层次结构使用同一视图

Mdx 在mondrian中对同一维度内的多个层次结构使用同一视图,mdx,pentaho,mondrian,Mdx,Pentaho,Mondrian,我已经定义了一个模式。我在维度内的每个层次中重复相同视图的定义。是否有一种方法可以为维度定义视图,而不是为维度中的每个层次定义视图 <Schema name="shop_cube"> <Dimension name="Product dimensions"> <Hierarchy name="gtin" hasAll="true" primaryKey="id"> <View alias="&quot;product_di

我已经定义了一个模式。我在维度内的每个层次中重复相同视图的定义。是否有一种方法可以为维度定义视图,而不是为维度中的每个层次定义视图

<Schema name="shop_cube">
  <Dimension name="Product dimensions">
    <Hierarchy name="gtin" hasAll="true" primaryKey="id">
      <View alias="&quot;product_dimension&quot;"> 
         <SQL dialect="generic"> 
            <![CDATA[SELECT * FROM product_dimension where name="my_shop"]]> 
         </SQL> 
      </View>
      <Level name="gtin" column="product_gtin" type="String" hideMemberIf="IfBlankName" uniqueMembers="false">
      </Level>
    </Hierarchy>

    <Hierarchy name="Productgroup" hasAll="true" primaryKey="id">
      <View alias="&quot;product_dimension&quot;"> 
        <SQL dialect="generic"> 
          <![CDATA[SELECT * FROM product_dimension where name="my_shop"]]> 
        </SQL> 
      </View>
      <Level name="Productgroup" column="product_group" type="String" hideMemberIf="IfBlankName" uniqueMembers="false">
      </Level>
    </Hierarchy>
 </Dimension>
  ...
  ...
 <DimensionUsage name="Product dimensions" source="Product dimensions" foreignKey="product_dimension_id"/>
</Schema>

...
...