Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
We use an older phone software that pulls phone data in seconds. So in Excel we have to divide the number by 86,400 and then convert it to the TIME format HH:MM:SS. I have tried to do this in Power BI Power Query and I get nothing but errors using TIME and I even tried DURATION. I have even tried to leave the number in orignal seconds form and creating a measure in Power BI that would do the conversion, but I do not get a choice of TIME, only numbers, decimals, etc. How can I solve this issue? Thank you
Solved! Go to Solution.
@ChristoAClark Chelsie Eiden's Duration - Microsoft Power BI Community
Please see this article/video for a great way to handle durations. Keep them as decimal, do your calculations, and then format it however you want at the very end.
Calculate and Format Durations in DAX – Hoosier BI
Pat
Please see this article/video for a great way to handle durations. Keep them as decimal, do your calculations, and then format it however you want at the very end.
Calculate and Format Durations in DAX – Hoosier BI
Pat
Hi,
you can create a calculated column this way
as you see there is a problem if time is over a day. if that is your problem need some more steps.
If this post is useful to help you to solve your issue consider giving the post a thumbs up
and accepting it as a solution !
Sorry, but we do reports that calculate the entire month so the numbers often go over 100 hours so yes, that is over a day
@ChristoAClark Chelsie Eiden's Duration - Microsoft Power BI Community
@Greg_Deckler So this solution did work for me, however, I couldn't get the custom property piece set. I did find another article that showed you can literally type in Excel Format Cell custom in the "Format" box of the measure.
Anyway, thank you sooooo much. This is going to save me a ridiculous amount of time each month!
In her code, it's looking for [Duration] and not finding it. Do I need to create a Duration column? Or would this refer to one of my data columns.