dbTalk Databases Forums  

Re: AGE / Birthdate

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


Discuss Re: AGE / Birthdate in the microsoft.public.sqlserver.olap forum.



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

Default Re: AGE / Birthdate - 05-11-2005 , 09:08 AM






DATEDIFF?

Francesco Anti

"Tonni Schmücker" <TonniSchmcker (AT) discussions (DOT) microsoft.com> wrote

Quote:
Can on calculate a given persons age, from his birthday and the
currentdate/selected date ... ??



Reply With Quote
  #2  
Old   
Francesco Anti
 
Posts: n/a

Default Re: AGE / Birthdate - 05-11-2005 , 10:03 AM






Calculated members support Visual Basic for Application Functions which
includes Datediff and Now() functions.
You can also use T-SQL Datediff as the source column for your measure (or
member name/key column for a dimension). Age will then depend on the
process date of the cube.

Francesco Anti

"Tonni Schmücker" <TonniSchmcker (AT) discussions (DOT) microsoft.com> wrote

Quote:
Sorry ... can I use datediff in a calculated member ... so that it works
on a
timedimension, and a birthday dimension ??

"Francesco Anti" wrote:

DATEDIFF?

Francesco Anti

"Tonni Schmücker" <TonniSchmcker (AT) discussions (DOT) microsoft.com> wrote in
message
news:BFE0D901-0673-417C-8AB1-017435AFDBE7 (AT) microsoft (DOT) com...
Can on calculate a given persons age, from his birthday and the
currentdate/selected date ... ??






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.