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!

Make week members more readable

Status
Not open for further replies.

mshen703

IS-IT--Management
Jun 25, 2002
2
US

With Analysis Services SP2, I have a time dimension that is organized by year->week->day. The week members show up as 'Week 8', 'Week 10', etc. I like to append each member name with a date to make it more readable, i.e., 'Week 8-2/17' for Feb. 7, which is the Sunday of week 8. I tried the obvious solution (see below), but it doesn't always choose the Sunday of the week. It doesn't choose any day-of-week consistently. Does anyone else face the same issue? Thanks in advance for any suggestions.

'Week ' + rtrim(convert(CHAR, DateName(week, "dbo"."AzDimTime"."ServerTime"))) + '-' + rtrim(convert(CHAR, DatePart(month, "dbo"."AzDimTime"."ServerTime"))) +'/'+rtrim(convert(CHAR, DatePart(day, "dbo"."AzDimTime"."ServerTime")))
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top