Forum Discussion
Duration wrongly converted to Date-Time type
- 7 years ago
you can convert them within excel to general format and then copy paste them into Power BI
- Anonymous7 years ago
PowerBI does not currently support milliseconds in date time datatype. I solved the problems like follow:
convert the excel doc to general, load it into PowerBI, and multiply the value by 86400 to get the total number of seconds.
Hi Anonymous,
you can add a calculated column using the following DAX:
Duration = FORMAT([Column];"hh:mm:ss")
Hope it helps
Regards
BjoernSchaefer
- Anonymous7 years agoNot applicable
I believe it is not going to work because if you look at the original column form the excel, there are milliseconds in the end, but after importing to power BI, it rounds up the milliseconds, and that doesn't make sense because it a competition these milliseconds actually matter.
- BjoernSchaefer7 years agoHelper II
Hi Anonymous,
sorry, i missunterstood you. DAX cannot handle milliseconds. But i found something that'll may help you with that.
https://stackoverflow.com/questions/46833631/how-to-deal-with-milliseconds-in-powerbi
Regards
BjoernSchaefer