Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
DB Engine
SQL ServerMSDESQL Server CE
Services
Analysis (Data Mining)Analysis (OLAP)DTSIntegration ServicesNotification ServicesReporting Services
Programming
CLRConnectivitySQLXML
Other Technologies
ClusteringEnglish QueryFull-Text SearchReplicationService Broker
General
Data WarehousingPerformanceSecuritySetupSQL Server ToolsOther SQL Server Topics
DirectoryUser Groups
Related Topics
MS AccessOther DB ProductsMS Server Products.NET DevelopmentVB DevelopmentJava DevelopmentMore Topics ...

SQL Server Forum / General / Data Warehousing / December 2005

Tip: Looking for answers? Try searching our database.

Multiple dimensions from single dimension table

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
GrahamS - 29 Nov 2005 14:34 GMT
Hi,

SQL 2000 AS.

I have a dimension table 'Periods' example :
1 = Jan 2005
2 = Feb 2005
3 = Mar 2005

etc. NB This is not a standard time dimension.

The table has a key on 'PeiodID' = 1, 2, 3 etc.

My Fact table has say 2 period entries per row (say Billing, Collection) -
these can be different per row - eg Billing = 2, Collection = 4 etc.).

How do I add my Period dimension twice but linked to different columns, so
that each one shows up with a different name (say BillingPeriod,
CollectionPeriod).

I tried to create separate dimensions 'BillingPeriod' and 'CollectionPeriod'
but these both display on the table view as 'Period'. I CAN link both key
fields to Period but then can't see how each one is differentiated ??.

Many Thanks

Regards

Graham
Mike Austin - 29 Nov 2005 20:27 GMT
Create and use a View for one of the dimensions.

HTH,

Mike

> Hi,
>
[quoted text clipped - 25 lines]
>
> Graham
GrahamS - 29 Nov 2005 22:27 GMT
Mike,

Yup - thanks for the reply - I tried this today and it works pretty well.

I was hoping for something maybe not so 'dimension intensive', as I actually
have a number of similar dimensions to 'double up on'.

Thanks again.

regards

Graham

> Create and use a View for one of the dimensions.
>
[quoted text clipped - 31 lines]
> >
> > Graham
Harsh - 06 Dec 2005 21:21 GMT
May be you could use the table alias.

for eg. select a.factID billingperiond.periodID,
collectionperiod.PeriodIDfrom Billingfact a, periods  as
billingperiond,periods as collectionperiod where
a.billingperiodID=billingperiod.PeriodID and
a.collectionperiodID=collectionperiod.periodID

Thx
Harsh

> Hi,
>
[quoted text clipped - 25 lines]
>
> Graham
Darren Gosbell - 13 Dec 2005 10:42 GMT
You will need to create a view over the dimension table and use that as
the source for one of your dimensions otherwise when the cube gets
populated you will only get facts where the 2 dates are equal.

Signature

Regards
Darren Gosbell [MCSD]
Blog: http://www.geekswithblogs.net/darrengosbell

> May be you could use the table alias.
>
[quoted text clipped - 36 lines]
> >
> > Graham
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.