Forum Discussion
shannon8000
2 years agoFrequent Visitor
PBI seconds conversion to hh:mm
Hello, I've tried two different formulas I've found in these forums. At first it looks like it is working but then the math isn't mathing when reviewing the output. In the below example, you can s...
aj1973
Community Champion
2 years agoHi shannon8000
Here is an example
and here is the formula
Total duration =
var _seconds = SUM(Sheet1[ACTVTY_TTL_SEC])
var _minutes = INT(_seconds / 60)
var _RemainingSeconds = MOD(_seconds, 60)
var _Hours = INT(_minutes / 60)
var _RemainingMinutes = MOD(_minutes, 60)
var _Days = INT(_Hours / 24)
var _RemainingHours = MOD(_Hours, 24)
return
_Days & " D : " &
_RemainingHours & " H : " &
_RemainingMinutes & " M : " &
_RemainingSeconds & " S "
shannon8000
2 years agoFrequent Visitor
Hi Amine!
I applied as recommended and the output was interesing.
I will poke around some more to see what is happening.
- aj19732 years ago
Community Champion
You have a relationship problem in your Matrix or Table visual.