This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowA new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.
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 |
|---|---|
| 29 | |
| 28 | |
| 25 | |
| 19 | |
| 14 |
| User | Count |
|---|---|
| 53 | |
| 47 | |
| 27 | |
| 20 | |
| 19 |