all groups > sql server data warehouse > may 2006 >
You're in the

sql server data warehouse

group:

Time Dimensions in the Retail Industry


Time Dimensions in the Retail Industry Manu Puri
5/16/2006 11:06:01 AM
sql server data warehouse:
Question from Retail ISV, your guidance appreciated:

Questions:

1. Is it possible to create a time dimension with these extended levels and
utilize the out-of-the-box functionality provided by SQL Server for time
dimensions?
2. If it cannot be qualified as a time dimension, can we still add business
intelligence to the cube itself to get similar functionality?

Details:

Retail Time Dimension:

The time dimension definition that we need to work with, from our initial
research, does not comply with any of the four specialized calendars that
ship with SQL Server Analysis services.

We have the following requirements for our time dimension:

Year – may have 12 – 13 periods (user configurable, may change between
years), 52-53 weeks (every five years it may be 53 weeks)
Period – may have 4-5weeks, user configurable
Week – 7 days
Day

The above levels are standard across all customers. Some customers however
may have additional levels like Quarters and Seasons.

Seasons may range from 1 – 12 periods.

Quarters may have 4 – 5 periods. There will always be four quarters in a year.

Each of these levels has a Start Date and an End Date.

When we define a dimension with these attributes and try to generate a
relational schema out of it, we get this validation error:
“The DimCalendar dimension has the time type, but without time binding
information. The dimension will be treated as regular dimension”. The
attached images show our dimension design.
Re: Time Dimensions in the Retail Industry Manu Puri
5/17/2006 10:23:02 AM
Thanks Tim!

And how do you work with 13 months or 53 weeks a year, both of which can
default to 12 and 52 depending on the year?

[quoted text, click to view]
Re: Time Dimensions in the Retail Industry Tim Dot NoSpam
5/17/2006 1:02:22 PM
If you've set the usage type for the dimension to "Time", then you need to
associate the time members with each attribute.

For example, if you have RetailQuarter as an attribute, associate it with
the "QuartersofYear" property, RetailYear with the "Year" property, etc etc.

-Tim

[quoted text, click to view]

Re: Time Dimensions in the Retail Industry Tim Dot NoSpam
5/17/2006 2:53:51 PM
There are also MonthsOfYear and WeeksOfYears you can set your RetailMonth
and Retailweek to. You need a custom Time table (I'm assuming you're using
one) that has these attributes in it. The templates above are not named
precisely as they are in SSAS, but close enough where you should be able to
find them.


[quoted text, click to view]

AddThis Social Bookmark Button