This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreGet Fabric Certified for FREE during AI Skills Fest. This week only. Secure your voucher 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
Check out the May 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 23 | |
| 21 | |
| 21 | |
| 21 | |
| 16 |
| User | Count |
|---|---|
| 55 | |
| 54 | |
| 46 | |
| 26 | |
| 24 |