Can anyone tell me how to format a given number of seconds (for example 16742 seconds) in a human readable form (for example 1d 5h 2m 13s)
- using a BO field formula
or - from within a T-SQL SELECT statement (where the Duration as Seconds is from a SUM aggregate)?
I have done it using Deski and four variables.
Start of with the hours measure, create some variables, in the following my year variable is vYears, my Month variable is vMonths, my days variable is vDays, and my hours variable is vHours.
vYears uses the following calculation:
vWeeks uses the following calculation:
vDays uses the following calculation:
vHours uses the following calculation:
I Then can output these variables by doing the following:
If you need further information please dont hesitate in asking.
Thanks,
Matt