2017-03-24 12 views
0

集計テーブルをスキーマに持つモンドリアンキューブでJPivotビューを作成する際に生成された以下のクエリを確認してください。Pentaho集計デザイナで作成された集計テーブルがクエリのfrom句に存在しない

select 
    `Dim_Time`.`Time_Id` as `c0`, 
    `Dim_Time`.`month_no` as `c1` 
from 
    `Dim_Time` as `Dim_Time` 
where 
    `Dim_Time`.`Time_Id` = `AggTable1`.`Dim_Time_Month_(Key)` 
group by 
    `Dim_Time`.`Time_Id`, 
    `Dim_Time`.`month_no` 
order by 
    ISNULL(`Dim_Time`.`Time_Id`) ASC, `Dim_Time`.`Time_Id` ASC 

なぜ、from句にAggTable1が存在しないのですか?テーブル&の特定の列がデータベースに存在します。

答えて

0

集計テーブルを利用するには、mondrian.propertiesファイルの以下のプロパティを有効にする必要があります。

mondrian.rolap.aggregates.Read=true 
mondrian.rolap.aggregates.Use=true 

はまた、あなたがあなたのスキーマファイルに集計テーブルを定義する必要がありモンドリアンバージョンに基づいて

モンドリアン4

<MeasureGroup table='aggregate_table' type='aggregate'> 

モンドリアン3.xの

<AggName name="aggregate_table"> 
関連する問題