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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
TDog
New Member

Calculate the Average Time Spent Viewing a Page

Hello all,  I'm trying to calculate the average time spent viewing a web page.  I have a column with the average time spent viewing a web page in a text format as '00:00:00'.  Id like to claculate the average time spent on each web page.  There are multiple entires of like web pages with different time spent durations.  My data columns are below:  Any help you can provide is greatly appreciated.  Many thanks!

 

TDog_0-1618496448826.png

 

1 ACCEPTED SOLUTION
v-lionel-msft
Community Support
Community Support

Hi @TDog ,

 

Please refer to my .pbix file.

v-lionel-msft_0-1619587939685.png

 

Best regards,
Lionel Chen

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-lionel-msft
Community Support
Community Support

Hi @TDog ,

 

Please refer to my .pbix file.

v-lionel-msft_0-1619587939685.png

 

Best regards,
Lionel Chen

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

amitchandak
Super User
Super User

@TDog , You can split this and convert in second and take avg

time in second = left([Avg time on page],2)*3600 + mid([Avg time on page],4,2)*60 + right([Avg time on page],2)

 

 

else refer

https://radacad.com/calculate-duration-in-days-hours-minutes-and-seconds-dynamically-in-power-bi-usi...
https://social.technet.microsoft.com/wiki/contents/articles/33644.powerbi-aggregating-durationtime-i...
https://www.pbiusergroup.com/communities/community-home/digestviewer/viewthread?GroupId=547&MessageK...
https://community.powerbi.com/t5/Quick-Measures-Gallery/Chelsie-Eiden-s-Duration/m-p/793639#M389

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

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