dbTalk Databases Forums  

Virtual Dimension

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


Discuss Virtual Dimension in the microsoft.public.sqlserver.olap forum.



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

Default Virtual Dimension - 02-13-2006 , 10:13 AM






I have a "real" Time dimensions with levels:
Year, Month, Day, Shift, Hour

The Shift level is built from a table (tShifts) in SQL. This table has a
field called StartOfWeek. I have created a virtual Week dimension based on
the StartOfWeek field in tShifts and it works ok. This dimension has a single
level - Week.

I now need to add Day, Shift, and Hour levels to the Week dimension. I tried
just adding the Day level, taking the expressions for Key and Name from the
Day level of my Time dimension. When I tried to save it I get an error msg:
"Virtual dimension week is invalid.\n The source for a level in the virtual
dimension was not found. <number of reasons why it may have failed...>"

Any suggetions on how to use the aggregations from the existing Time
dimension for my enhanced Week dimension? If the details provided are not
sufficient, I can provide more details.

Existing Required
Time Dim Week Dim
---------------------------
Year
Month
Week
Day Day
Shift Shift
Hour Hour

Thanks,

Les McPhee

Reply With Quote
  #2  
Old   
Deepak Puri
 
Posts: n/a

Default Re: Virtual Dimension - 02-13-2006 , 12:16 PM






Hi Les,

If you define Member Properties for Day/Shift/Hour fields, then you can
add those to the Week virtual dimension.


- Deepak

Deepak Puri
Microsoft MVP - SQL Server

*** Sent via Developersdex http://www.developersdex.com ***

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

Default Re: Virtual Dimension - 02-13-2006 , 04:45 PM



What is the definition of those members props that allows me to add them as
levels below the Week level of my Week virtual dimension?

Existing Required
Time Dim Week Dim
---------------------------
Year
Month
Week
Day Day
Shift* Shift
Hour Hour

The StartOfWeek value on which the Week is based is store in the Shift table.

Les McPhee

"Deepak Puri" wrote:

Quote:
Hi Les,

If you define Member Properties for Day/Shift/Hour fields, then you can
add those to the Week virtual dimension.


- Deepak

Deepak Puri
Microsoft MVP - SQL Server

*** Sent via Developersdex http://www.developersdex.com ***


Reply With Quote
  #4  
Old   
Deepak Puri
 
Posts: n/a

Default Re: Virtual Dimension - 02-13-2006 , 06:14 PM



You should be able to add Member Properties like "Day", "Shift" and
"Hour" (or with other suitable names) at the Hour (lowest) level. These
can then be added to the virtual Week dimension as levels below Week.


- Deepak

Deepak Puri
Microsoft MVP - SQL Server

*** Sent via Developersdex http://www.developersdex.com ***

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.