I'm try to create simple Mondrian schema with OLAP connection, but I have a problem.
I have two Measures
. But when I called it, it just call one measures
. I'm new on Mondrian and OLAP.
My schema look like this.
<Schema name="Test">
<Cube name="Report1" visible="true" cache="true" enabled="true">
<Table name="mstjobs" schema="public">
</Table>
<Dimension type="StandardDimension" visible="true" foreignKey="regionid" highCardinality="false" name="Reg">
<Hierarchy name="hiReg" visible="true" hasAll="true" allMemberName="All Region" primaryKey="code1">
<Table name="mstlov" schema="public" alias="">
</Table>
<Level name="Category" visible="true" table="mstlov" column="cat" type="String" uniqueMembers="false" levelType="Regular" hideMemberIf="Never">
</Level>
<Level name="ListRegion" visible="true" table="mstlov" column="desc1" type="String" uniqueMembers="false" levelType="Regular" hideMemberIf="Never">
</Level>
</Hierarchy>
</Dimension>
<Dimension type="StandardDimension" visible="true" foreignKey="titleid" highCardinality="false" name="Title">
<Hierarchy visible="true" hasAll="true" allMemberName="All Title" primaryKey="code1">
<Table name="mstlov" schema="public">
</Table>
<Level name="Category" visible="true" column="cat" type="String" uniqueMembers="false" levelType="Regular" hideMemberIf="Never">
</Level>
<Level name="Title" visible="true" column="desc1" type="String" uniqueMembers="false" levelType="Regular" hideMemberIf="Never">
</Level>
</Hierarchy>
</Dimension>
<Measure name="mtot" column="mantotal" datatype="Integer" aggregator="sum" visible="true">
</Measure>
<Measure name="wtot" column="womantotal" aggregator="sum" visible="true">
</Measure>
</Cube>
</Schema>`
I'm just called it with simple MDX query
Select
Reg.[All Region].region on COLUMNS,
Title.[ALl Title].titlekhas on ROWS
from Report1
And the output look like this, with mtot
measures.
| |City1 |City2 |City3 |
| |20 |30 |30 |
|Job1 |10 |20 |10 |
|Job2 |10 |10 |20 |
But I want to call all measures together. so, the output should look like.
| |City1 |City2 |City3 |
| |20 |10 |30 |20 |30 |25 |
|Job1 |10 |10 |20 |10 |10 |10 |
|Job2 |10 |0 |10 |10 |20 |15 |
What should I do? Should I change the schema?