![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
-----Original Message----- Set up a dimension with your datetime field in the Dimension Editor. Go to the level and under 'Member Name Column' you can specify a format for the representation of time. Here is an example from one of my cubes: rtrim(convert(CHAR, DateName (dw,"dbo"."TIME_DIM"."TheDate"))) + ' ' + convert (CHAR, DateName(day,"dbo"."TIME_DIM"."TheDate")) This displays the weekday name and day of the month as in 'Sunday 28'. You can use DateName and DatePart to break apart and reassemble in this property. Good Luck Darryl -----Original Message----- Hi all In my SQl server I'm storing data in seconds.In my analysis server cube i want to display the measure in mins and seconds.when i aggregate that values it should aggregate in mins and seconds. for example in my sql server I'm storing it as 90 seconds.In analysis manager i want to show that as 1 min and 30 seconds.If i divide 90/60 it'll give me 1.5 which tells 1 min and 50 secs,which is wrong.In sql server if i store in mins and second while aggregation again same problem will occur.If i store the value as 5.50 and 1.25 aggregation will give me 6 mins 75 secs, but actually i should get 8 mins and 15 secnds.So pls anybody can help me how to proceed with this problem?any clues or helps will be appreciated.. thanks in advance sanith . . |
#3
| |||
| |||
|
|
Hi all In my SQl server I'm storing data in seconds.In my analysis server cube i want to display the measure in mins and seconds.when i aggregate that values it should aggregate in mins and seconds. for example in my sql server I'm storing it as 90 seconds.In analysis manager i want to show that as 1 min and 30 seconds.If i divide 90/60 it'll give me 1.5 which tells 1 min and 50 secs,which is wrong.In sql server if i store in mins and second while aggregation again same problem will occur.If i store the value as 5.50 and 1.25 aggregation will give me 6 mins 75 secs, but actually i should get 8 mins and 15 secnds.So pls anybody can help me how to proceed with this problem?any clues or helps will be appreciated.. thanks in advance sanith |
![]() |
| Thread Tools | |
| Display Modes | |
| |