Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
Hi,
I am having an issue with duration. In M Query everything looks right and I have it set as duration 0.00:00:00, but once it comes into PBI I get nothing but Zeros. When I hit the drop down filter I will see long decimal number like 0.0118518518518519 etc.
I need to be able to find the average duration. This is for call logs. I can keep it as text in M Query and it will come accross in the duration format, buts a text and I cant calculate averages on a text field.
How do you process durations in PBI to calculate and measure average duration?
Solved! Go to Solution.
@rjs2 Just to add to @az38 , what I believe you are seeing is fractions of a day. So 2 hours for example is 1/24 * 2. Minutes are 1/24/60 and seconds are 1/24/60/60.
You may want to review this article as I am assuming that you will want to display them as distances at some point
https://community.powerbi.com/t5/Quick-Measures-Gallery/Chelsie-Eiden-s-Duration/m-p/793639#M389
And this one may be useful as well:
https://community.powerbi.com/t5/Quick-Measures-Gallery/Duration-to-Seconds-Converter/m-p/342279#M92
@rjs2 Just to add to @az38 , what I believe you are seeing is fractions of a day. So 2 hours for example is 1/24 * 2. Minutes are 1/24/60 and seconds are 1/24/60/60.
You may want to review this article as I am assuming that you will want to display them as distances at some point
https://community.powerbi.com/t5/Quick-Measures-Gallery/Chelsie-Eiden-s-Duration/m-p/793639#M389
And this one may be useful as well:
https://community.powerbi.com/t5/Quick-Measures-Gallery/Duration-to-Seconds-Converter/m-p/342279#M92
Hi @rjs2
I do not see a straight way to convert M-duration to DAX (maybe I'm missing smth)
As you did not provide more data model details - have a look at @Greg_Deckler solution https://community.powerbi.com/t5/Community-Blog/Aggregating-Duration-Time/ba-p/22486
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 52 | |
| 51 | |
| 35 | |
| 15 | |
| 14 |
| User | Count |
|---|---|
| 92 | |
| 75 | |
| 41 | |
| 26 | |
| 25 |