Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
charlotteeik
Regular Visitor

Average of time difference

Hi,

 

How can I find the average per date for the difference between Earliest and Latest RegTime? 

You can see the measure I used to calculate the difference between Earliest and Latest RegTime. 

 

Hope someone can help me with this issue! Thanks,

 

charlotteeik_1-1672840570741.png

 

 

1 REPLY 1
Anonymous
Not applicable

You can add a new measure which stores the Difference in Decimals only.

 

TimeDifference (in Decimals)

 

Then create a new measure to compute the Average of this and Format it

 

Average TimeDifference = 

 

_avg = AVG(TimeDifference (in Decimals))

 

var _hrs = _avg * 24
var _mins =  (_hrs - int(_hrs)) * 60
var _sec =  (_mins - int(_mins)) * 60

return FORMAT(int(_hrs), "#00") & ":" & FORMAT(int(_mins), "#00") & ":" & FORMAT(int(_sec), "#00")

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.