dbTalk Databases Forums  

Can virtual cube give e subset of data ?

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


Discuss Can virtual cube give e subset of data ? in the microsoft.public.sqlserver.olap forum.



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

Default Can virtual cube give e subset of data ? - 01-05-2004 , 12:46 PM






Hi,
My fact table contains 1 year's data. But the first 6 months needs one
set of dimensions and the next 6 monthts need a different set of
dimensions. So, if I build a cube containing the 1 year's data and all
the dimensions, can I build two virual cubes, one with the first 6
months and the other with last 6 months of data ? How ?

I have not been able to figure out how to restrict data. Can we do
this at all (like the view of a relational table ?)

Thanks a lot.

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

Default Re: Can virtual cube give e subset of data ? - 01-05-2004 , 01:03 PM






This can be accomplished by defining dimension security on top of the
virtual cube(s).

public @ the domain below
www.tomchester.net

"mangaraju venuturupalli" <mangaraju (AT) yahoo (DOT) com> wrote

Quote:
Hi,
My fact table contains 1 year's data. But the first 6 months needs one
set of dimensions and the next 6 monthts need a different set of
dimensions. So, if I build a cube containing the 1 year's data and all
the dimensions, can I build two virual cubes, one with the first 6
months and the other with last 6 months of data ? How ?

I have not been able to figure out how to restrict data. Can we do
this at all (like the view of a relational table ?)

Thanks a lot.



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

Default Re: Can virtual cube give e subset of data ? - 01-06-2004 , 12:51 PM



This brings up an excellent question - I know virtual cubes can be used to allow the particular cubes to contain a subset of the measures, but can it be used to allow different cubes to contain a subset of dimensions?

i.e., Measures M1, M2, M3, M4 and M5. Dimensions D1, D2, D2, D3, D4, and D5.

I know its easy to have 2 cubes

Cube1: M1, M2 + D1, D2, D3, D4, and D5
Cube2: M3, M4, M5 + D1, D2, D3, D4, and D5

Then, if you bring them together its the same as if you just had everything in one cube.

Now - what I want to do is have:

Cube1: M1, M2 + D1, D2, D3
Cube2: M3, M4, M5 + D3, D4, and D5.

I've found the statement "Virtual cubes must have one dimension in common". So, what if we add a primary key to the fact table, and use that as a 'fake dimension' to link the two? The fake dimension would be a single dimension with the numbers 1 to a million or however many rows are in the fact table. So, then we would have:

Cube1: M1, M2 + DPK, D1, D2, D3
Cube2: M3, M4, M5 + DPK, D3, D4, D5

Thus each 'event' (like a sale at a store) would have a primary key and the dimensions (salesperson, storeid, etc.) and the facts (price, totalprice, etc.) which would all be linked through the primary key which identifies this as a 'single event'.

What do you think?

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

Default Re: Can virtual cube give e subset of data ? - 01-06-2004 , 05:01 PM



It's not true that VCs must have a dim in common, fyi.

public @ the domain below
www.tomchester.net


"OlapGuy" <anonymous (AT) discussions (DOT) microsoft.com> wrote

Quote:
This brings up an excellent question - I know virtual cubes can be used to
allow the particular cubes to contain a subset of the measures, but can it
be used to allow different cubes to contain a subset of dimensions?
Quote:
i.e., Measures M1, M2, M3, M4 and M5. Dimensions D1, D2, D2, D3, D4, and
D5.

I know its easy to have 2 cubes

Cube1: M1, M2 + D1, D2, D3, D4, and D5
Cube2: M3, M4, M5 + D1, D2, D3, D4, and D5

Then, if you bring them together its the same as if you just had
everything in one cube.

Now - what I want to do is have:

Cube1: M1, M2 + D1, D2, D3
Cube2: M3, M4, M5 + D3, D4, and D5.

I've found the statement "Virtual cubes must have one dimension in
common". So, what if we add a primary key to the fact table, and use that
as a 'fake dimension' to link the two? The fake dimension would be a single
dimension with the numbers 1 to a million or however many rows are in the
fact table. So, then we would have:
Quote:
Cube1: M1, M2 + DPK, D1, D2, D3
Cube2: M3, M4, M5 + DPK, D3, D4, D5

Thus each 'event' (like a sale at a store) would have a primary key and
the dimensions (salesperson, storeid, etc.) and the facts (price,
totalprice, etc.) which would all be linked through the primary key which
identifies this as a 'single event'.
Quote:
What do you think?



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.