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!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
Hello,
i need to calculate the duration between two dates. It should be in time or number format.
It should be possible to visualize the average of the Duration.
In addition it should work with DirectQuery.
Hey @Bajdak
You need to use the duration functions: Duration functions - PowerQuery M | Microsoft Learn
For example, to take the duration in days you can use:
=each Duration.Days([Date1] - [Date2])
If this posts helps, please mark my answer as a solution!
Best Regards,
Marcel
Regards,
Marcel Magalhães
Microsoft Power BI Official Partner
MCT | Certified PL-300 Power BI