dbTalk Databases Forums  

aliasing member names in virtual cube

microsoft.public.sqlserver.olap microsoft.public.sqlserver.olap


Discuss aliasing member names in virtual cube in the microsoft.public.sqlserver.olap forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Jay
 
Posts: n/a

Default aliasing member names in virtual cube - 01-26-2004 , 12:43 PM






We have multiple cubes in our organization (data is divided by month).
I'd like to create a virtual cube to query across all the cubes but my
problem is that the measure names from cube to cube change, e.g.
volume-oct in one and volume-nov in another.

Is there some way to alias the measure names so I can have a single
virtual measure, e.g. volume?

Thanks,
Jay

Reply With Quote
  #2  
Old   
Tom Chester
 
Posts: n/a

Default Re: aliasing member names in virtual cube - 01-26-2004 , 01:03 PM






Sure, just create a calc member equal to the member.

public @ the domain below
www.tomchester.net

"Jay" <googlegroups (AT) jayritchie (DOT) com> wrote

Quote:
We have multiple cubes in our organization (data is divided by month).
I'd like to create a virtual cube to query across all the cubes but my
problem is that the measure names from cube to cube change, e.g.
volume-oct in one and volume-nov in another.

Is there some way to alias the measure names so I can have a single
virtual measure, e.g. volume?

Thanks,
Jay



Reply With Quote
  #3  
Old   
Jay
 
Posts: n/a

Default Re: aliasing member names in virtual cube - 01-27-2004 , 12:20 PM



Tom,

Thanks for the reply. I've been to your site after I came across your
Time Dimension article. I actually didn't do the calculated member
because I erronously thought it wouldn't honor the time dimension, but
apparently it does, so that works. Thanks.

However, along the same vein, not only do our cubes change the name of
the measures from cube to cube, but one of the dimensions, e.g.
customers_dec and customers_jan. So if I return my calulated member on
columns and the dimensions on rows, I only get half the value of my
calculated member for each row.

How do I create a dimension (or calculated member) that encompasses
all the members of multiple dimensions, i.e. a union of dimensions,
that could be returned as a row in a MDX statement.

Thanks again for your help.
-Jay A. Ritchie

"Tom Chester" <publicNOSPAM (AT) tomchester (DOT) net> wrote

Quote:
Sure, just create a calc member equal to the member.

public @ the domain below
www.tomchester.net

"Jay" <googlegroups (AT) jayritchie (DOT) com> wrote in message
news:dccfa262.0401261043.1cbc36d1 (AT) posting (DOT) google.com...
We have multiple cubes in our organization (data is divided by month).
I'd like to create a virtual cube to query across all the cubes but my
problem is that the measure names from cube to cube change, e.g.
volume-oct in one and volume-nov in another.

Is there some way to alias the measure names so I can have a single
virtual measure, e.g. volume?

Thanks,
Jay

Reply With Quote
  #4  
Old   
Tom Chester
 
Posts: n/a

Default Re: aliasing member names in virtual cube - 01-27-2004 , 02:07 PM



I assume there is a good reason why you don't have a single Customers
dimension...?

In your scenario how are the customer dimensions sliced?

public @ the domain below
www.tomchester.net

"Jay" <googlegroups (AT) jayritchie (DOT) com> wrote

Quote:
Tom,

Thanks for the reply. I've been to your site after I came across your
Time Dimension article. I actually didn't do the calculated member
because I erronously thought it wouldn't honor the time dimension, but
apparently it does, so that works. Thanks.

However, along the same vein, not only do our cubes change the name of
the measures from cube to cube, but one of the dimensions, e.g.
customers_dec and customers_jan. So if I return my calulated member on
columns and the dimensions on rows, I only get half the value of my
calculated member for each row.

How do I create a dimension (or calculated member) that encompasses
all the members of multiple dimensions, i.e. a union of dimensions,
that could be returned as a row in a MDX statement.

Thanks again for your help.
-Jay A. Ritchie

"Tom Chester" <publicNOSPAM (AT) tomchester (DOT) net> wrote

Sure, just create a calc member equal to the member.

public @ the domain below
www.tomchester.net

"Jay" <googlegroups (AT) jayritchie (DOT) com> wrote in message
news:dccfa262.0401261043.1cbc36d1 (AT) posting (DOT) google.com...
We have multiple cubes in our organization (data is divided by month).
I'd like to create a virtual cube to query across all the cubes but my
problem is that the measure names from cube to cube change, e.g.
volume-oct in one and volume-nov in another.

Is there some way to alias the measure names so I can have a single
virtual measure, e.g. volume?

Thanks,
Jay



Reply With Quote
  #5  
Old   
Jay
 
Posts: n/a

Default Re: aliasing member names in virtual cube - 01-28-2004 , 09:19 AM



Hmmm... good reason? I don't know, I wasn't here when they did this.
The customer dimension is never really sliced, except to perhaps
select a single customer. There's a hierarchy in the customer
dimension, so there are a couple other ways to slice it, but nothing
that would explain the need to create a new dimension each month. It
could be that the hierarchy of customers can change from month to
month, but we ususally roll things up based on how they rollup today,
so the current customer dimension is the one I would want to use in
any scenario, regardless if the cube I'm getting the measure from has
it's own customer dimension.


"Tom Chester" <publicNOSPAM (AT) tomchester (DOT) net> wrote

Quote:
I assume there is a good reason why you don't have a single Customers
dimension...?

In your scenario how are the customer dimensions sliced?

public @ the domain below
www.tomchester.net

"Jay" <googlegroups (AT) jayritchie (DOT) com> wrote in message
news:dccfa262.0401271020.75817dff (AT) posting (DOT) google.com...
Tom,

Thanks for the reply. I've been to your site after I came across your
Time Dimension article. I actually didn't do the calculated member
because I erronously thought it wouldn't honor the time dimension, but
apparently it does, so that works. Thanks.

However, along the same vein, not only do our cubes change the name of
the measures from cube to cube, but one of the dimensions, e.g.
customers_dec and customers_jan. So if I return my calulated member on
columns and the dimensions on rows, I only get half the value of my
calculated member for each row.

How do I create a dimension (or calculated member) that encompasses
all the members of multiple dimensions, i.e. a union of dimensions,
that could be returned as a row in a MDX statement.

Thanks again for your help.
-Jay A. Ritchie

"Tom Chester" <publicNOSPAM (AT) tomchester (DOT) net> wrote in message
news:<ZvdRb.19Tom.$vR3.67947 (AT) news (DOT) uswest.net>...
Sure, just create a calc member equal to the member.

public @ the domain below
www.tomchester.net

"Jay" <googlegroups (AT) jayritchie (DOT) com> wrote in message
news:dccfa262.0401261043.1cbc36d1 (AT) posting (DOT) google.com...
We have multiple cubes in our organization (data is divided by month).
I'd like to create a virtual cube to query across all the cubes but my
problem is that the measure names from cube to cube change, e.g.
volume-oct in one and volume-nov in another.

Is there some way to alias the measure names so I can have a single
virtual measure, e.g. volume?

Thanks,
Jay

Reply With Quote
  #6  
Old   
Tom Chester
 
Posts: n/a

Default Re: aliasing member names in virtual cube - 01-28-2004 , 10:00 AM



Jay, there's no way to union the dims together. What you can do is write
conditional formulas that sum your measures across all customer dimensions
(if not sliced); it's pretty gnarly though, espeicially since you have N
Customer dimensions and presumably N grows over time. Here it is half-baked:

IIF (Cust1.CurrentMember is Cust1.[All Cust1],
(MyMeasure, Cust1.[All Cust1]) + (MyMeasure, Cust2.[All Cust2]),
MyMeasure )

public @ the domain below
www.tomchester.net

"Jay" <googlegroups (AT) jayritchie (DOT) com> wrote

Quote:
Hmmm... good reason? I don't know, I wasn't here when they did this.
The customer dimension is never really sliced, except to perhaps
select a single customer. There's a hierarchy in the customer
dimension, so there are a couple other ways to slice it, but nothing
that would explain the need to create a new dimension each month. It
could be that the hierarchy of customers can change from month to
month, but we ususally roll things up based on how they rollup today,
so the current customer dimension is the one I would want to use in
any scenario, regardless if the cube I'm getting the measure from has
it's own customer dimension.


"Tom Chester" <publicNOSPAM (AT) tomchester (DOT) net> wrote

I assume there is a good reason why you don't have a single Customers
dimension...?

In your scenario how are the customer dimensions sliced?

public @ the domain below
www.tomchester.net

"Jay" <googlegroups (AT) jayritchie (DOT) com> wrote in message
news:dccfa262.0401271020.75817dff (AT) posting (DOT) google.com...
Tom,

Thanks for the reply. I've been to your site after I came across your
Time Dimension article. I actually didn't do the calculated member
because I erronously thought it wouldn't honor the time dimension, but
apparently it does, so that works. Thanks.

However, along the same vein, not only do our cubes change the name of
the measures from cube to cube, but one of the dimensions, e.g.
customers_dec and customers_jan. So if I return my calulated member on
columns and the dimensions on rows, I only get half the value of my
calculated member for each row.

How do I create a dimension (or calculated member) that encompasses
all the members of multiple dimensions, i.e. a union of dimensions,
that could be returned as a row in a MDX statement.

Thanks again for your help.
-Jay A. Ritchie

"Tom Chester" <publicNOSPAM (AT) tomchester (DOT) net> wrote in message
news:<ZvdRb.19Tom.$vR3.67947 (AT) news (DOT) uswest.net>...
Sure, just create a calc member equal to the member.

public @ the domain below
www.tomchester.net

"Jay" <googlegroups (AT) jayritchie (DOT) com> wrote in message
news:dccfa262.0401261043.1cbc36d1 (AT) posting (DOT) google.com...
We have multiple cubes in our organization (data is divided by
month).
I'd like to create a virtual cube to query across all the cubes
but my
problem is that the measure names from cube to cube change, e.g.
volume-oct in one and volume-nov in another.

Is there some way to alias the measure names so I can have a
single
virtual measure, e.g. volume?

Thanks,
Jay



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.