Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Cube buiding question.....

Status
Not open for further replies.

ema15

Programmer
Aug 3, 2001
11
US
I am building a cube using MS Analysis Services from MS SQL Server. I have a table with fields: SalesmanID, CustomerID, ProductID, DeliveryDate and SalesQuantity. And I am using this table directly as a fact table. My question is how I can create Time dimension? Can I just create a view from the same table like:
Select DeliveryDate,
Year(DeliveryDate) as Year,
Month(DeliveryDate) as Month,
Week(DeliveryDate) as Week
from MyTable
and link to fact table by DeliveryDate field and use that view as Time dimension? Please Help!!!
 
My guess is that it will work. However it is a good idea that you create a new table with your delivery date, The_day, the month and the year as three columns and add another Time_id column (identity). So this time_table will have four columns.
Then update the mail table you have with time_ids instead of dates.

Hope it helps,

Shab
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top