Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6940767
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T12:47:43+00:00 2026-05-27T12:47:43+00:00

I’m currently setting up a bi-solution, and having difficulties by defining the cube and

  • 0

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…

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T12:47:44+00:00Added an answer on May 27, 2026 at 12:47 pm

    You are using the wrong function for what you want.

    The Member MDX function get all members containing the constraint on the MDX, and not all values ​​of a Level.
    You want all the values ​​of the level.

    For this you have to use the Children MDX function. It takes all the values ​​(or children) of the associated level.
    Try this:

    SELECT {[user].[gender].children} ON COLUMNS,
      {[Measures].[Fact Count]} ON ROWS
    FROM [cube]
    

    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…

    Create a hierarchy containing only one level. I see that really has nothing to their hierarchy so strong, that would be recommended, and not lose flexibility. This prevents erroneous OLAP operation of the data cube, like drill-down and roll-up (that use hierarchies). Getting something like this:

    <Dimension foreignKey="user" highCardinality="false" name="user">
       <Hierarchy name="TIMEZONE" hasAll="true" allMemberName="all" primaryKey="ID">
         <Table name="user" />
         <Level name="timezone" column="timezone"/>
       </Hierarchy>
       <Hierarchy name="LOCALE" hasAll="true" allMemberName="all" primaryKey="ID">
         <Table name="user" />
         <Level name="locale" column="locale"/>
       </Hierarchy>
       <Hierarchy name="GENDER" hasAll="true" allMemberName="all" primaryKey="ID">
         <Table name="user" />
         <Level name="gender" column="gender"/>
       </Hierarchy>
    </Dimension>
    

    Hope this help.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
For some reason, after submitting a string like this Jack’s Spindle from a text
I've got a string that has curly quotes in it. I'd like to replace
I want use html5's new tag to play a wav file (currently only supported
I am currently running into a problem where an element is coming back from
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
We're building an app, our first using Rails 3, and we're having to build
I'm having trouble keeping the paragraph square between the quote marks. In firefox the
I would like to count the length of a string with PHP. The string
I have some data like this: 1 2 3 4 5 9 2 6

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.