1
我正在使用olap4j查詢mondrian多維數據集。我在我的XML模式定義的標準TimeDimension:使用mondrian和olap4j查詢日期範圍
<Dimension name="DateTime" type="TimeDimension">
<Hierarchy hasAll="true" primaryKey="DateId">
<Table name="event_date" />
<Level name="Year" column="Year" type="Numeric" uniqueMembers="true" levelType="TimeYears" />
<Level name="Quarter" column="Quarter" captionColumn="QuarterLabel" uniqueMembers="false" levelType="TimeQuarters" />
<Level name="Month" column="Month" captionColumn="MonthLabel" uniqueMembers="false" type="Numeric" levelType="TimeMonths" />
<Level name="Week" column="Week" uniqueMembers="false" levelType="TimeWeeks" />
<Level name="Day" column="Day" uniqueMembers="false" type="Numeric" levelType="TimeDays">
<Property name="DayISO" column="DateIso" dependsOnLevelValue="true" />
<Property name="DayOfWeek" column="DayOfWeek" dependsOnLevelValue="true" />
</Level>
</Hierarchy>
</Dimension>
我不能理解的是,我該如何使用olap4j查詢日期範圍上有日期時間爲共享維度的多維數據集。
有沒有人有任何可以共享的例子?
Yosi