dbTalk Databases Forums  

Syntax Datepart

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


Discuss Syntax Datepart in the microsoft.public.sqlserver.olap forum.



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

Default Syntax Datepart - 08-06-2004 , 04:20 PM






Why isn't this working?
I should know this, I just can't think today. Putting datepart in there
doesn't work, it wants an expression

="Select ...
on columns,
{[Time].[" & DatePart(\"yyyy\", Date()) &"] } on rows
from tableX"



Reply With Quote
  #2  
Old   
 
Posts: n/a

Default Re: Syntax Datepart - 08-16-2004 , 04:21 PM






i think that you just want to say this:

Select {Time.Year} on rows from tableX

you need to have a level named year defined in the dimension named time.

Aaron


"Cindy Lee" <cindylee (AT) hotmail (DOT) com> wrote

Quote:
Why isn't this working?
I should know this, I just can't think today. Putting datepart in there
doesn't work, it wants an expression

="Select ...
on columns,
{[Time].[" & DatePart(\"yyyy\", Date()) &"] } on rows
from tableX"





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.