dbTalk Databases Forums  

Beginner simple question

comp.databases.olap comp.databases.olap


Discuss Beginner simple question in the comp.databases.olap forum.



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

Default Beginner simple question - 11-07-2006 , 02:03 AM






Hi,

In the fact table I have to dates: START_DATE and END_DATE. I must build a
cube, which gives me information how many facts is in the certain day.
How to create Time dimension and Measure(s) for such a cube?

For example - how many offers was valid in 2005.11.08? Each offer in fact
table has start_date and end_date - and of course other information lke
customer, prodcuct, etc.

Could anyone help me in making my first cube, please?

BR
D.



Reply With Quote
  #2  
Old   
Seth Grimes
 
Posts: n/a

Default Re: Beginner simple question - 11-16-2006 , 01:12 PM






If you have both START_DATE and END_DATE then your facts must have duration
rather than representing a singular point in time. For your example, I
suppose that an offer would be valid on a given date if a fact row exists
where that date is >=START_DATE and <=END_DATE. Assuming that each fact
table row is an offer, there's no measure involved here. All you need is to
do is count fact rows that match that date criterion. If a single fact row
many represent multiple offers, then sum that values in the field that holds
the number of offers, again applying the date criterion.

Seth


D wrote:
Quote:
Hi,

In the fact table I have to dates: START_DATE and END_DATE. I must build a
cube, which gives me information how many facts is in the certain day.
How to create Time dimension and Measure(s) for such a cube?

For example - how many offers was valid in 2005.11.08? Each offer in fact
table has start_date and end_date - and of course other information lke
customer, prodcuct, etc.

Could anyone help me in making my first cube, please?

BR
D.



--
Seth Grimes Alta Plana Corp, analytical computing & data management
Intelligent Enterprise magazine (CMP), Contributing Editor
grimes (AT) altaplana (DOT) com http://altaplana.com 301-270-0795


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.