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 6005219
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T01:22:09+00:00 2026-05-23T01:22:09+00:00

2 hierarchical dimensions (for location and time) are defined on a cube. My question

  • 0

2 hierarchical dimensions (for location and time) are defined on a cube. My question is about possibility of writing a single MDX query for retrieving following structure. I mean writing a single query for obtaining values V1, V2, V3 and V4:

enter image description here

The obvious way is to use multiple MDX queries. Just wondering if there is some magic syntax in MDX.

  • 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-23T01:22:09+00:00Added an answer on May 23, 2026 at 1:22 am

    Try:

    SELECT
    {
        [Measures].[Some Measure]
    } ON 0,
    {
        [Location].[Level 1].[Level 1].Members*
        [Date].[Year].[Year].Members*
        [Location].[Level 2].[Level 2].Members
    } ON 1
    FROM [Your Cube]
    

    You can also get the totals with:

    SELECT
    {
        [Measures].[Some Measure]
    } ON 0,
    {
        [Location].[Level 1].Members*
        [Date].[Year].Members*
        [Location].[Level 2].[Level 2].Members
    } ON 1
    FROM [Your Cube]
    

    No magic here – just crossjoining the attribute hierarchies as needed. Please note that if you place the two Location hierarchies next to each other the excution will be faster.

    No idea if this completely answers your question but at least may help a bit…

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

Sidebar

Related Questions

I have the following hierarchical table: Table Category: CategoryId, ParentCategoryId, CategoryName 1, null, SomeRoot
When retrieving a hierarchical structure from MySQL (table with one ID column and one
I have a hierarchical relationship defined for one of my tables where the relationship
My application configuration is very hierarchical and fits nicely into a single XML. Soon
Hi i'm struggling with adding time dimension to OLAP cube. I can get everything
Having the following hierarchical text data input (JunOS-like, in fact) I need to parse
I got a Hierarchical table with following structure As you can see, ParentGroupUserID refers
I have a hierarchical query to track a reporting structure. This almost works, except
I have a hierarchical query in Oracle 10 SQL that used to work. However,
I have hierarchical data (right) in table in following manner which creates Hierarchy as

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.