Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi all,
I have 2 rows that i will need to convert them to decimals in hours.
Please help, thank you!
Solved! Go to Solution.
Hi @e0318476
You need total hours, right?
Duration.TotalHours([yourEndDateTime]-[yourStartDateTime])
Hi @Vera_33 & @mahoneypat :
This is the outcome I want to get (this is done in excel). However, based on the solutions provided by both, it does not re-solve my issue. Please advise!
What is the issue. I suggest you did not properly implement the solution provided by @Vera_33 It works fine here although, in PQ, it displays more precision that you show in your desired result (which you can easily handle by rounding, or by formatting in Excel)
Please show the exact code you are using.
Please also see this article for how to best handle DateTime columns and duration calculations in Power BI.
Calculate and Format Durations in DAX – Hoosier BI
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
Hi @e0318476
You need total hours, right?
Duration.TotalHours([yourEndDateTime]-[yourStartDateTime])
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
101 | |
49 | |
19 | |
12 | |
11 |