Quantcast
Channel: SQL Server Analysis Services forum
Viewing all articles
Browse latest Browse all 14337

Adding time dimension in the project

$
0
0


I have two dimensions

Contact and Sales and fact table

fact table contains following attributes

OrderDate,TotalDue,TaxAmt,SubTotal,Freight

My Source table does not contain any Time table.I want to add Time dimension and want to aggregate the data on based on year,semister,quater wise etc

I have done this using some tricks i am not sure whether i am correct or wrong

What i did

1. Right Click on Dimension

2.Add New Dimension

3.Selected 'Generate a time table in the  Data Source'

4.Selected First calender day(Jan 1 2001) and Last Calender Day(31 Dec 2004) since Sales Table contains Orderdate starting from 2001 to 2004

5.Selected all the Time Periods

6.Created Time Dimension

7.Added this to existing data source view and made Date as Primary Key and linked toOrderDate attribute in Sales

8.Done the same thing in the attribute relationship tab

For my happiness it worked very well and aggregation i am getting accordingly verified in the data base with SQL statements

So my question is did i made the right relation ship with Sales

table and whatever steps i followed is fine?

Please let me know i am relatively new to SSAS. Any advice or suggestions are appreciated


Viewing all articles
Browse latest Browse all 14337

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>