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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T11:21:14+00:00 2026-05-23T11:21:14+00:00

I new to OLAP, and still not sure how to create a relationship between

  • 0

I new to OLAP, and still not sure how to create a relationship between 2 or more entities.

I am basing my cube on views. For simplicity sake let’s call them like this:

viewParent (ParentID PK)

viewChild (ChildID PK, ParentID FK)

these views have more fields, but they’re not important for this question.

in my data source, i defined a relationship between viewParent and viewChild using ParentID for the link.

As for measures, i was forced to create separate measures for Parent and Child.

in my MDX query however, the relationship does not seem to be enforced. If i select record count for parent, child, and add some filters for the parent, the child count is not reflecting it..

SELECT {
    [Measures].[ParentCount],[Measures].[ChildCount]
} ON COLUMNS
FROM [Cube]
WHERE {
    (
    {[Time].[Month].&[2011-06-01T00:00:00]}
    ,{[SomeDimension].&[Foo]}
    )
}

the selected ParentCount is correct, but ChildCount is not affected by any of the filters (because they are parent filters). However, since i defined a relationship, how can i take advantage of that to filter children by parent using a WHERE clause?

Facts:

viewParent, viewChild

Dimensions:

ParentDimension (contains attributes from parent view that i’d aggregate on)
ChildDimension (contains attributes from child view that i’d aggregate on)

This is just an idea i came up with, but maybe my design/relationship is off.

  • 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-23T11:21:14+00:00Added an answer on May 23, 2026 at 11:21 am

    Figured it out.

    Looking at the dimensions tab of the cube in vs2008 it became obvious.

    my relationship between dimension and the measures was not set-up correctly. My dimension was keyed on uniqueID which corresponded to parentView uniqueID.

    I changed the relationship (of SomeDimension) to key on a different ID field (shared by both parentView and childView) let’s call it ViewID.

    and my MDX queries started working as expected. Meaning, WHERE clause affected both measure groups: parent and child.

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

Sidebar

Related Questions

New to MonoTouch and MonoTouch.Dialog, but I'm sure it's possible to create a tab
I am new to OLAP, and figured out how to make a cube and
New to WPF so I'm sure it's an easy one this; for every control
As I am new to SSAS, have been reading an article on Multi-Dimension OLAP
New to rails and trying to get a one to many relationship up and
I'm new to Oracle Warehouse Builder 11gR2, but already not loving it! I'm using
new to ruby, and rails... but not to the amp stack. my preferred method
New formtastic user here. I have a relationship user has_many clients In formtastic ,
New Android developer here; well versed in Java. I'm looking to create a playlist
I'm new to the MDX/OLAP and I'm wondering if there is any ORM similar

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.