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!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
Hello,
I have a dataset where I am trying to find the average of a measure to show it as a card on my dashboard.
I have used the following measure code to get the time duration between two dates:
Solved! Go to Solution.
Hi, @analyst123
I create a sample table:
Then create a new measure and try the following DAX expression:
AverageDowntime =
DIVIDE(
SUMX(VALUES('Table'[Message number]), CALCULATE(
DATEDIFF(MIN('Table'[APPEARED]), MIN('Table'[DISAPPEARED]), MINUTE) +
(SECOND(MIN('Table'[DISAPPEARED])) - SECOND(MIN('Table'[APPEARED]))) / 60
)),
DISTINCTCOUNT('Table'[MESSAGE NUMBER])
)
Here is my preview:
How to Get Your Question Answered Quickly
Best Regards
Yongkang Hua
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, @analyst123
I create a sample table:
Then create a new measure and try the following DAX expression:
AverageDowntime =
DIVIDE(
SUMX(VALUES('Table'[Message number]), CALCULATE(
DATEDIFF(MIN('Table'[APPEARED]), MIN('Table'[DISAPPEARED]), MINUTE) +
(SECOND(MIN('Table'[DISAPPEARED])) - SECOND(MIN('Table'[APPEARED]))) / 60
)),
DISTINCTCOUNT('Table'[MESSAGE NUMBER])
)
Here is my preview:
How to Get Your Question Answered Quickly
Best Regards
Yongkang Hua
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@analyst123 , Try below DAX
Proud to be a Super User! |
|
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.