Quantcast
Channel: Pentaho Community Forums
Viewing all articles
Browse latest Browse all 16689

Columndef with Pentaho 5.2 CE

$
0
0
Hi,

I have this cube :
<Cube name="Indicateur" cache="true" enabled="true">
<Table name="indic_dpr3_ccou" schema="public">
<ColumnDefs>
<CalculatedColumnDef name="IdRegul">
<ExpressionView>
<SQL dialect="postgres">
CASE WHEN difference_date &lt; 2 THEN 1 ELSE 0 END
</SQL>
</ExpressionView>
</CalculatedColumnDef>
</ColumnDefs>
</Table>
<DimensionUsage source="Services" name="Services" foreignKey="platefccou_id">
</DimensionUsage>
<DimensionUsage source="Plates-formes" name="Plates-formes" foreignKey="platef_id">
</DimensionUsage>
<DimensionUsage source="Regularisation" name="Regularisation" foreignKey="regul_id">
</DimensionUsage>
<DimensionUsage source="Periode" name="Periode" foreignKey="dp_bline_date_id">
</DimensionUsage>
<Measure name="Nb DP" column="id_dp" formatString="###,###,###" aggregator="count" visible="true">
</Measure>
<Measure name="Delai" column="difference_date" formatString="##0.00" aggregator="avg" visible="true">
</Measure>
<Measure name="Nb Regul" column="IdRegul" formatString="###,###,###" aggregator="sum" visible="true">
</Measure>
</Cube>

I don't get any error when importing the schema, but when I try to display (with JPivot or Pivot4J) the measure "Nb Regul", I get an error "the column indic_dpr3_ccou.IdRegul doesn't exist" : I guess that I use a feature of Mondrian 4.0 ; if so, what is the way to achieve it with mondrian 3.8?
If the error is not due to Mondrian's version, explanation will be welcomed too!:)

Thank you

Benoit

Viewing all articles
Browse latest Browse all 16689

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>