Nicolep Posted April 3, 2007 Share Posted April 3, 2007 Hi, I'm trying to run my own cube with jasperServer. It is really simple, here is my schema : <?xml version="1.0" encoding="UTF-8"?><Schema name="rentabilite"> <Cube name="rentabilite"> <Table name="tbrentabilite_test"/> <Dimension name="Temps" foreignKey="idTemps"> <Hierarchy name="Temps" hasAll="false" primaryKey="id_temps"> <Table name="temps_test"/> <Level name="Annee" TABLE="temps_test" COLUMN="annee" uniqueMembers="true"/> <Level name="Trimestre" TABLE="temps_test" COLUMN="trimestre" uniqueMembers="false"/> <Level name="Mois" TABLE="temps_test" COLUMN="mois" uniqueMembers="false"/> </Hierarchy> </Dimension> <measure name="Taux_rentabilite" column="tauxRentabilite" aggregator="sum" datatype="String" formatString="Standard"/> </Cube></Schema> So, just one measure and one dimension. I put this query in my analysis view, very simple too :SELECT {[Measures].[Taux_rentabilite]} ON COLUMNSFROM [rentabilite] It doesn't work, I 've got the error :not valid MDX query : null have you got an idea? Thanks Nicolep Link to comment Share on other sites More sharing options...
jens_noering Posted April 3, 2007 Share Posted April 3, 2007 If you are using jpivot interface you will have to define a query that uses to axis, Columns and Rows. So you have to put one dimension on columns and another on rows. for example you can put the measures on columns and your temps dimension on rows. hth, Jens Nöring Link to comment Share on other sites More sharing options...
Nicolep Posted April 3, 2007 Author Share Posted April 3, 2007 Thanks. I already tried with my time dimension on rows but it's the same. Don't you see any error in my schema? Nicolep Link to comment Share on other sites More sharing options...
Nicolep Posted April 3, 2007 Author Share Posted April 3, 2007 Thanks. I already tried with my time dimension on rows but it's the same. Don't you see any error in my schema? Nicolep Link to comment Share on other sites More sharing options...
swood Posted April 8, 2007 Share Posted April 8, 2007 Post your changed schema and MDX. ShermanJasperSoftPost edited by: swood, at: 2007/04/08 14:13 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now