I have a column in a report which is a number of seconds containing values like 24, 122, -45, etc
Is it possible to display this column in the format HH:mm:ss, like this : 24 00:00:24
122 00:02:02
-45 -00:00:45
I have a column in a report which is a number of seconds containing values like 24, 122, -45, etc
Is it possible to display this column in the format HH:mm:ss, like this : 24 00:00:24
122 00:02:02
-45 -00:00:45
Note I initially tried using absolute values to get rid of the negatives for hours and minutes, but frequently encountered an absolute value of -0. I’m assuming this is a bug (v4.1.2) related to the data precision being used in Busines Object’s internal calculations.
I have a column in a report which is a number of seconds containing values like 24, 122, -45, etc
Is it possible to display this column in the format HH:mm:ss, like this : 24 00:00:24
122 00:02:02
-45 -00:00:45
Note I initially tried using absolute values to get rid of the negatives for hours and minutes, but frequently encountered an absolute value of -0. I’m assuming this is a bug (v4.1.2) related to the data precision being used in Busines Object’s internal calculations.
Bob Molby
GE Lighting
Many thanks. It works fine for 24 and 122, but the “-” sign is not displayed for -45 seconds : I get “00:00:45” when I should get “-00:00:45”. What’s the trick to do this ?
Many thanks. It works fine for 24 and 122, but the “-” sign is not displayed for -45 seconds : I get “00:00:45” when I should get
“-00:00:45”.
What’s the trick to do this ?
Pierrot
You are right. I had only used this on larger numbers. I quickly altered the formula to multiply the sign of the number * the absolute value of the first component and it seems to work. Here is the revised formula:
Many thanks. It works fine for 24 and 122, but the “-” sign is not displayed for -45 seconds : I get “00:00:45” when I should get “-00:00:45”.
What’s the trick to do this ?