It not seems the values are in proper format
1. Today date is 08/09/2017 if represent this date into NUM (Numbers) it will be 42986 and it is again converted into any date formats Ex:- ddmmyyyy, YYYYMMDD etc
2. This months monthend date numeric value is 43008.999999988 which is 30/09/2017
I am checking with Data team regarding the format of decimal values. I think they just took time stamp from Date field and converted into Decimals.
For ex: 1.5 Decimal value should convert into 1:30:00.
time(alt( date#( DecimalValue , 'yyyyddmm hhmmss' ),
date#( DecimalValue , 'hhmmss' ),
date#( DecimalValue , 'hh:mm.ss' ),
date#( DecimalValue , 'ss' ),
date#( DecimalValue , 'm.ss' ),
'hh:mm:ss') ) as DecimalValue1
Please find the .qvw.
Hope this help.
If the values are in days then
That seems okay for some of your values
0.53 => 12:43:12
When we go over a DecimalValue of 1 then should consider changing your format
2.17 => 2 04:04:48
I would be nice to insert the letter 'day' into the format but that just messes things up:
Interval(2.17,'D day hh:mm:ss') = 2 2a0 04:04:48
you can work around this:
Replace(Interval(2.17,'D $ hh:mm:ss'),'$','days') and get 2 days 04:04:48
You can really go for it:
=Replace(Replace(Replace(Replace(Interval(2.17,'D $ hh£mm#ss@'),'$','days'),'£','hrs '),'#','min '),'@',' sec')
2 days 04hrs 04min 48 sec
There are some really big values in your set, the largest is 1842608.42
1842608 days 10hrs 04min 48 sec
If the values are not days then you'll need to divide your argument by the appropriate quotient. If in seconds then divide by 86400 to get
21 days 07hrs 50min 08 sec for your largest value.
No problem, now it's clear. Let's try again. How about:
The call to Interval() will make sure that very big values will still be converted to a massive amount of hours...For example, this application of the same expression on the last value in your Excel file:
If you want different formatting, check Andrews post which contains a lot of useful advice.
[Edit] Sorry for the spam, post contained a lot of grammar and spelling mistakes. Time to go home
Your largest value comes out as:
=Replace(Replace(Replace(Replace(Interval(1842608.42/1440,'D $ hh£mm#ss@'),'$','days'),'£','hrs '),'#','min '),'@',' sec') =
1279 days 14hrs 08min 25 sec