Quantcast
Channel: All Developer posts
Viewing all articles
Browse latest Browse all 48064

Re: formatting time value to hh:mm:ss

$
0
0

I'm pretty new to DAX so it's possible that I'm doing something wrong, but your code was calculating the incorrect seconds for me and I made the following changes to get it to work:

 

 

fmtCol = 
RIGHT ( "0" & INT ( TableName[Duration]/ 3600 ), 2 )& ":"& RIGHT ( "0"& INT ( (TableName[Duration]- INT (TableName[Duration]/ 3600 ) * 3600 ) / 60 ), 2 )& ":"& RIGHT ( "0" & INT(MOD(MOD (TableName[Duration], 3600),60)), 2 )

 

 


Viewing all articles
Browse latest Browse all 48064

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>