I'm currently setting up a bi-solution, and having difficulties by defining the cube and its hierarchies.
A part of the schema definition looks like this:
<Dimension foreignKey="user" highCardinality="false" name="user">
<Hierarchy name="user" hasAll="true" allMemberName="all" primaryKey="ID">
<Table name="user" />
<Level name="timezone" column="timezone"/>
<Level name="locale" column="locale"/>
<Level name="gender" column="gender"/>
</Level>
</Hierarchy>
</Dimension>
Now I want to access the gender level directly.
SELECT
{[user].[gender].Members} ON COLUMNS,
{[Measures].[Fact Count]} ON ROWS
FROM [cube]
Results in something like [user].[zone3].[de_DE].[male] = 10, [user].[zone1].[en_US].[male] = 30
and so on. I want a total for each sex: [user].[male] = 20
and [user].[female] = 30
.
In summary, I need a flexible ordering of the levels. Is this possible? I know there are parallel hierarchies but i cannot create one for every possible order...
I also tried to put all attributes in properties instead of levels but I could not figure out to get a simple total amount of male/female users.
And it has to be quite simple because the whole thing will be part of a dynamic bi-tool...