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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T10:05:49+00:00 2026-05-13T10:05:49+00:00

I am looking to aggregate values for all versions of a slowly changing dimension.

  • 0

I am looking to aggregate values for all versions of a slowly changing dimension. Here is a simplified explanation of the problem.

I have a Product dimension and this dimension has an attribute called ProductGroup.
Products from time to time change ProductGroups.

The Product dimension is a slowly changing dimension, and the change being when it moves between ProductGroups. The Product dimension has a ProductKey and a ProductBusinessKey.

The ProductKey is the unique key within the dimension and ProductBusinessKey is the key from main booking system.
The ProductBusinessKey(PBK) is unique to a product and will never change.

A simplified structure of the dimension and fact tables are

I’ve used the following abbreviations

PK – ProductKey

PBK – ProductBusinessKey

PG – ProductGroup

Dimension Table

PK PBK Name  PG

1   1      Prod1  ProductGroup1

2   1      Prod1  ProductGroup2

3   2      Prod2  ProductGroup1

Fact Table

PK Revenue

1  100

2  100

3  100

I want to generate a report that will display total revenue for all version of the product dimension
i.e.

Prod1 Prod2

200   100

At the the moment he mdx I am using is

SELECT

[ProductDimension].[Product].Children On Columns

FROM

TheCube

WHERE

[Measures].[Revenue]

And this is generating the following results

Prod1 Prod1 Prod2

100   100    100

I was wondering how I could structure a query to return the results as

Prod1 Prod2

200   100

Any help is much appreciated.

  • 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-13T10:05:50+00:00Added an answer on May 13, 2026 at 10:05 am

    The easiest way would be to create an attribute that has a key of either the ProductBusinessKey, then use that in your query.

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

Sidebar

Related Questions

Looking to do a bit of refactoring... Using NHibernate I have this query currently
Looking for best advice on how to do this: I have an insert like
Well here is an interesting problem. Suppose I have a table on an sql
I'm looking for a dead simple example on how to use aggregate and calculate
Looking for a perl one-liner what will find all words with the next pattern:
say I have a postgresql table with the following values: id | value ----------
I need to aggregate some array values from APIs in a background processing job
So I have a query that is a Top Nth aggregate query, and I
I have been thinking about this for a while and cannot come up with
Database is MySQL. I am looking to implement a trigger that updates an aggregate

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.