dbTalk Databases Forums  

Time Dimensions

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


Discuss Time Dimensions in the microsoft.public.sqlserver.olap forum.



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

Default Time Dimensions - 03-23-2005 , 04:28 PM






I was wondering how I might do this:

We have a Point of Sale data warehouse. I'd like to build a cube with a
dimension that represents "Last 4 Weeks", "Last 13 Weeks" and "Last 52
Weeks", all based on today's (the time when the user is using the pivot
table, etc) date.

Is there anyway to build a dimension that will also have the actual week
ending dates underneath (but calculated on the fly)

Here's how I'd like it to work:

Within Excel (pivot table) I have a Dimension called "Periods" that looks
like this:

Periods
Current Week
Last 4 Weeks
Last 13 Weeks
Last 52 Weeks

The user would be able to drag the dimension over to the pivot table and it
would look like this (for a user viewing the data sales week 200508):

Unit Sales
Last 4 Weeks 200508 10000
200507 10023
200506 30133
200505 30433

But the following week, the data would be:
Unit Sales
Last 4 Weeks 200509 13023
200508 10000
200507 10023
200506 30133

I would also like to be able to do distinct counts, for example unique
stores that sold a UPC, etc.

Thanks in advance-
Malcolm



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.