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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi, im trying to create a columnn for meantime to close. So if an incident is open, tracking each one on closure time.
I have a created and resolved fields eg createddatetime and resolveddatetime. Any ideas?
Solved! Go to Solution.
To calculate the Mean Time to Close (MTTC) in Power BI, you can create a calculated column that calculates the time difference between CreatedDateTime and ResolvedDateTime for each incident. Here’s how you can set it up:
In your Power BI report, go to the table where your incident data is stored.
Click on Modeling in the toolbar, then select New Column.
Enter the following DAX formula:
If you’d prefer the time difference in minutes or days, change the last argument in DATEDIFF:
If you want an overall average MTTC, create a Measure instead:
Go to Modeling and select New Measure.
Enter this formula:
Replace 'YourTable' with the name of your table. This measure will give you the average time to close across all incidents that have been resolved.
With this setup, you’ll have both a per-incident MTTC and an overall average MTTC for closed incidents.
If this solution brightened your path or made things easier, please consider giving kudos. Your recognition not only uplifts those who helped but inspires others to keep contributing for the good of our community!
New Column:
MeanTimeToClose =
IF(
ISBLANK('YourTable'[ResolvedDatetime]),
BLANK(),
DATEDIFF('YourTable'[CreatedDatetime], 'YourTable'[ResolvedDatetime], MINUTE)
)
You can aggregate this column (e.g., average) in your reports to get the mean time to close incidents.
💌 If this helped, a Kudos 👍 or Solution mark would be great! 🎉
Cheers,
Kedar
Connect on LinkedIn
New Column:
MeanTimeToClose =
IF(
ISBLANK('YourTable'[ResolvedDatetime]),
BLANK(),
DATEDIFF('YourTable'[CreatedDatetime], 'YourTable'[ResolvedDatetime], MINUTE)
)
You can aggregate this column (e.g., average) in your reports to get the mean time to close incidents.
💌 If this helped, a Kudos 👍 or Solution mark would be great! 🎉
Cheers,
Kedar
Connect on LinkedIn
To calculate the Mean Time to Close (MTTC) in Power BI, you can create a calculated column that calculates the time difference between CreatedDateTime and ResolvedDateTime for each incident. Here’s how you can set it up:
In your Power BI report, go to the table where your incident data is stored.
Click on Modeling in the toolbar, then select New Column.
Enter the following DAX formula:
If you’d prefer the time difference in minutes or days, change the last argument in DATEDIFF:
If you want an overall average MTTC, create a Measure instead:
Go to Modeling and select New Measure.
Enter this formula:
Replace 'YourTable' with the name of your table. This measure will give you the average time to close across all incidents that have been resolved.
With this setup, you’ll have both a per-incident MTTC and an overall average MTTC for closed incidents.
If this solution brightened your path or made things easier, please consider giving kudos. Your recognition not only uplifts those who helped but inspires others to keep contributing for the good of our community!
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 39 | |
| 37 | |
| 33 | |
| 32 | |
| 29 |
| User | Count |
|---|---|
| 133 | |
| 88 | |
| 85 | |
| 68 | |
| 64 |