lmflores
08-09-2005, 04:12 AM
Hi I have the next problem:
I have two tables : vtascont (master of sales) and vtacontd (details of sales). They are in a postgresql databse in one schema called yucatan.
I need to extract information from them. vtacontd has fields referencing to the product saled, the amount of the money among other things.
Both tables are in one schema called yucatan (ie). So i acces them as yucatan.vtascont or yucatanvtacontd.
I put here my cube definition file :
<?xml version="1.0" encoding="UTF-8"?>
<Schema >
<Cube name="Ventas">
<Table alias="" name="vtacontd" schema="yucatan"/>
<Dimension foreignKey="foliovta" name="Datos Ventas">
<Hierarchy allMemberName="Todos los folios" defaultMember="" primaryKey="foliovta">
<Table name="vtascont" schema="yucatan"/>
<Level column="id" name="Dependencia" nameColumn="" nullParentValue="" ordinalColumn="" parentColumn="" type="Numeric"/>
<Level column=" rfc_clie" name="Cliente" nameColumn="" ordinalColumn="" table=""/>
</Hierarchy>
</Dimension>
<Measure column="prec_vta" formatString="#,###.00" name="Importe"/>
</Cube>
</Schema>
And this is my query :
<mondrian:query id="pruebaQuery" jdbcDriver="org.postgresql.Driver" jdbcUrl="jdbc:postgresql://zeus.org:5432/SUE_PG" jdbcUser="admin" jdbcPassword="s739admin" catalogUri="/WEB-INF/querys/SUE.xml">
SELECT
{[Measures].[Importe]} on columns,
{([Datos Ventas].descendants)} ON rows
FROM [Ventas]
</mondrian:query>
I get the following error:
MDX cube 'Ventas' not found or not processed
Do you know why???
Thanks in advanced
I have two tables : vtascont (master of sales) and vtacontd (details of sales). They are in a postgresql databse in one schema called yucatan.
I need to extract information from them. vtacontd has fields referencing to the product saled, the amount of the money among other things.
Both tables are in one schema called yucatan (ie). So i acces them as yucatan.vtascont or yucatanvtacontd.
I put here my cube definition file :
<?xml version="1.0" encoding="UTF-8"?>
<Schema >
<Cube name="Ventas">
<Table alias="" name="vtacontd" schema="yucatan"/>
<Dimension foreignKey="foliovta" name="Datos Ventas">
<Hierarchy allMemberName="Todos los folios" defaultMember="" primaryKey="foliovta">
<Table name="vtascont" schema="yucatan"/>
<Level column="id" name="Dependencia" nameColumn="" nullParentValue="" ordinalColumn="" parentColumn="" type="Numeric"/>
<Level column=" rfc_clie" name="Cliente" nameColumn="" ordinalColumn="" table=""/>
</Hierarchy>
</Dimension>
<Measure column="prec_vta" formatString="#,###.00" name="Importe"/>
</Cube>
</Schema>
And this is my query :
<mondrian:query id="pruebaQuery" jdbcDriver="org.postgresql.Driver" jdbcUrl="jdbc:postgresql://zeus.org:5432/SUE_PG" jdbcUser="admin" jdbcPassword="s739admin" catalogUri="/WEB-INF/querys/SUE.xml">
SELECT
{[Measures].[Importe]} on columns,
{([Datos Ventas].descendants)} ON rows
FROM [Ventas]
</mondrian:query>
I get the following error:
MDX cube 'Ventas' not found or not processed
Do you know why???
Thanks in advanced