DAX code
Average Resolution Time (Days) =
AVERAGEX(
FILTER('Tickets', NOT ISBLANK('Tickets'[ClosedDate])),
DATEDIFF('Tickets'[CreatedDate], 'Tickets'[ClosedDate], DAY)
)
Averages the number of days between a ticket being created and being closed.
Type your table and column names once. Every measure below updates.
Average Resolution Time (Days) =
AVERAGEX(
FILTER('Tickets', NOT ISBLANK('Tickets'[ClosedDate])),
DATEDIFF('Tickets'[CreatedDate], 'Tickets'[ClosedDate], DAY)
)
Open tickets (no ClosedDate) are excluded from the average by the FILTER.
Browse all 175 measures in the Power BI DAX Measures Library, or search the library for something similar to Average Resolution Time.