Forum Discussion
yaman123
4 years agoPost Partisan
Convert Text column to seconds
Hi,
Is there a way to convert a text column to show as seconds. The column holds text values in the format of HH:MM.
E.g 64:56 should show as 233760 seconds. There will be values greater than 24 hours
Thanks
Yasir
Column 2 = LEFT ( 'Table'[Column1], LEN ( 'Table'[Column1] ) - 3 ) * 3600 + RIGHT ( 'Table'[Column1], 2 ) * 60
2 Replies
- smpa01Community Champion
Column 2 = LEFT ( 'Table'[Column1], LEN ( 'Table'[Column1] ) - 3 ) * 3600 + RIGHT ( 'Table'[Column1], 2 ) * 60 - amitchandakSuper User
yaman123 , a new column
in Second = left([Column],2) *60*60 + right([Column],2 )*60