dbTalk Databases Forums  

Question from a novice

microsoft.public.sqlserver.olap microsoft.public.sqlserver.olap


Discuss Question from a novice in the microsoft.public.sqlserver.olap forum.



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

Default Question from a novice - 12-08-2004 , 08:39 AM






Hello:

I have a fact table that have two dates, Start_DT and End_DT. I want to
create a measure that calculates the days between the End_DT and Start_DT.

I already have set up a cube that calculates oher measures. How can I add
this measure to the cube?

I tried editing th cube but am at a loss trying to create this calculated
measure.

Thanks.

Venkat

Reply With Quote
  #2  
Old   
James Ma
 
Posts: n/a

Default RE: Question from a novice - 12-08-2004 , 05:19 PM






I know how to define a base measure. In AM, you can choose any of the 2
columns to create a new measure, then change the measure's definition to
datediff(day, start_DT, end_DT). (Choose sum as aggregation function?) You
also need to make sure the aggregation along various dimensions to be
meaningful.

James

"vvenk" wrote:

Quote:
Hello:

I have a fact table that have two dates, Start_DT and End_DT. I want to
create a measure that calculates the days between the End_DT and Start_DT.

I already have set up a cube that calculates oher measures. How can I add
this measure to the cube?

I tried editing th cube but am at a loss trying to create this calculated
measure.

Thanks.

Venkat

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.