Forum Discussion
Anonymous
4 years agoNot applicable
Convert negative decimal numbers to time (Long Time)
I'm trying to convert negative decimal numbers to a time displayed as hh:nn:ss (Long Time), however, it's giving me an error: Instead of converting the "Verschil" column, I also tried to calcu...
Anonymous
4 years agoNot applicable
Hi Anonymous ,
You can refer the following links to get it:
Converting Decimal Time to Days, Hours, Minutes, Seconds in Power BI
decimal to duration conversion
NewColumn =
TRUNC(Table4[Zeit2 - Copy]) & "." & //Days
FORMAT(TRUNC(Table4[Zeit2 - Copy]*24);"00") & ":" &//Hours
FORMAT(TRUNC(Table4[Zeit2 - Copy]*24*60);"00") & ":" & //Minutes
FORMAT(Table4[Zeit2 - Copy]*24*60*60;"00.0000000") //Seconds
Converting “Seconds” to “Duration” in Power BI
If the above one can't help you get the desired result, please provide some sample data of the field "Gepland" and "Aantal" (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community. Thank you.
How to upload PBI in Community
Best Regards