zoukankan      html  css  js  c++  java
  • mondrian schema学习(3)

    The 'all' member 

    By default, every hierarchy contains a top level called '(All)', which contains a single member called '(All {hierarchyName})'. This member is parent of all other members of the hierarchy, and thus represents a grand total. It is also the default member of the hierarchy; that is, the member which is used for calculating cell values when the hierarchy is not included on an axis or in the slicer. The allMemberName and allLevelName attributes override the default names of the all level and all member.

    If the <Hierarchy> element has hasAll="false", the 'all' level is suppressed. The default member of that dimension will now be the first member of the first level; for example, in a Time hierarchy, it will be the first year in the hierarchy. Changing the default member can be confusing, so you should generally use hasAll="true".

    The <Hierarchy> element also has a defaultMember attribute, to override the default member of the hierarchy:

    <Dimension name="Time" type="TimeDimension" foreignKey="time_id">
     <Hierarchy hasAll="false" primaryKey="time_id" defaultMember = "[Time].[1997].[Q1].[1]"/>

  • 相关阅读:
    02-05 flutter provider的使用
    02-04 flutter 构造函数总结
    02-03 flutter异步
    02-02dart语法
    02-01dart语法
    01-01 iOS内存对齐、内存对齐算法
    01-02 iOS kvo、kvc
    01-03 category 原理概述
    多线程编程 (2) -NSOperation
    IOS基本控件属性
  • 原文地址:https://www.cnblogs.com/iammatthew/p/1803875.html
Copyright © 2011-2022 走看看