如果存在WHERE,我发现mondrian不使用聚合表进行平均测量。如何与它相处?
SELECT [Measures].[Avg measure] on COLUMNS,
VisualTotals(Hierarchize({Set of dimension #1})) om ROWS
FROM [Cube name]
WHERE {set of dimension #2}
答案 0 :(得分:1)
我不确定,但你可以尝试一下子查询:
SELECT [Measures].[Avg measure] on COLUMNS,
VisualTotals(Hierarchize({Set of dimension #1})) om ROWS
FROM [Cube name]
WHERE (select from [Cube name] where {set of dimension #2})