Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
I want to convert HH:MM:SS format of time into seconds.
Whenever I change it using format and use SECONDS it only gets the seconds of that time not the whole duration in seconds.
Thanks for answering! Really appreaciate it!
Solved! Go to Solution.
@Anonymous Does this work for you
Column = MINUTE(Table[date time])*60+SECOND(Table[date time])
In case you also have hours in your datetime field please extract the hour and multiple by 3600
You can also try DATEDIFF function and use second as third argument
@Anonymous Have you tried second function
Column = SECOND(table[date time])
Hi Vimal, thanks for answering, however its still showing only seconds of the time that i wanted to convert.
Ex.
00:28:53 - im only getting the 53 seconds whenever i use the dax formala that you've given.
@Anonymous What exactly you need
Suppose if the value is 00:28:53 --> output --?
You can few more example with expected outcome
instead of 53 seconds only, I wanted also to convert the 28min into seconds as well. So in total, I wanted a result of 1733sec.
Is there any easiest way to convert this one aside from manually compute it ?
@Anonymous Does this work for you
Column = MINUTE(Table[date time])*60+SECOND(Table[date time])
In case you also have hours in your datetime field please extract the hour and multiple by 3600
You can also try DATEDIFF function and use second as third argument
Wow! That was fast ! Thanks Vimal, you're great.
User | Count |
---|---|
82 | |
80 | |
66 | |
49 | |
46 |
User | Count |
---|---|
104 | |
44 | |
39 | |
39 | |
39 |