Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

NEW TO OLAP - DATEPART

Status
Not open for further replies.

sanjdhiman

Programmer
Jan 15, 2003
189
GB
Hi there all

I have a quick question, Im new to olap so this might sound like a dumb question.

Ok i have my data in a table (SQL SERVER 2000). And I want to create a dimension. Simple right. Ok I want the dimension to take just a part of the date though not the full date..

i.e. Month only not the rest of the date shown by the field DateStart.

Thereby I can make the new level in the dimension DateStart with only the month showing.

You cant use DATEPART or DATENAME in MDX.. so how do you do this.

This would help alot

Kind Regards and thanks in advance

Sanj
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top