Forum Discussion
AparnaJ
7 years agoHelper I
Convert text to time
Hi, Have a file as below: Seconds 300 814000 Am trying to create a new column using DAX as below: -------------------------------------------------------------------------------------...
- 7 years ago
Hi AparnaJ
Create columns
Time Format = Var H = MOD(INT(Sheet1[Seconds]/3600),24) Var M = FORMAT(INT(DIVIDE(MOD(Sheet1[Seconds],3600),60)), "00") Var S = FORMAT(INT(MOD(MOD([Seconds],3600),60)),"00") RETURN H& ":" & M & ":" & S day = INT(INT(Sheet1[Seconds]/3600)/24)
Best Regards
MaggieCommunity Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
v-juanli-msft
7 years agoCommunity Support
Hi AparnaJ
Create columns
Time Format = Var H = MOD(INT(Sheet1[Seconds]/3600),24) Var M = FORMAT(INT(DIVIDE(MOD(Sheet1[Seconds],3600),60)), "00") Var S = FORMAT(INT(MOD(MOD([Seconds],3600),60)),"00") RETURN H& ":" & M & ":" & S day = INT(INT(Sheet1[Seconds]/3600)/24)
Best Regards
Maggie
Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Tani4ka
5 years agoHelper II
This doesn't seem to work in my case since I have cells with no values. How to get along this one?
Many thanks