dbTalk Databases Forums  

Formatting Seconds Data for Display as HH:MM:SS

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


Discuss Formatting Seconds Data for Display as HH:MM:SS in the microsoft.public.sqlserver.olap forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Raj More
 
Posts: n/a

Default Formatting Seconds Data for Display as HH:MM:SS - 05-06-2004 , 02:50 PM






CrossPosting!

I have a Cube with a Measure called TimeTaken. This is stored in seconds, but the user wants the data to be displayed as as HH:MM:SS.

How do I accomplish this?

Raj More.


Reply With Quote
  #2  
Old   
Deepak Puri
 
Posts: n/a

Default Re: Formatting Seconds Data for Display as HH:MM:SS - 05-06-2004 , 07:47 PM






Here is a suggestion from my earlier post. This example is for a
query-defined Calculated Measure, but you can use similar syntax to
create a Calc.Measure on the server:

http://groups.google.com/groups?q=pu...&lr=&ie=UTF-8&
oe=UTF-8&selm=3e1a01c42a81%2406228590%24a501280a%40phx.gb l&rnum=1
Quote:
From: Deepak Puri (dpuri (AT) progressive (DOT) com)
Subject: Time format Measure
This is the only article in this thread
View: Original Format
Newsgroups: microsoft.public.sqlserver.olap
Date: 2004-04-24 21:53:31 PST

Try the following format, if time is < 32K seconds:

Quote:
With Member [Measures].[FormattedASA] as
'TimeSerial(0,0,[Measures].[AvgSpeedAnswer])',
FORMAT_STRING = 'hh:nn:ss'
Quote:

Quote:
-----Original Message-----
Hi,

I have a "seconds untill call answer" measure. I use the
Average function so I call the the avg queue time for my
helpdesk. However I'd like to show no 200 seconds in the
cube but '00:03:20'. Is it possible?
Quote:
Thank for your help

Miguel Salles MCP 2000P & 2000Server
.




- Deepak

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!


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.