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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Tahreem24
Super User
Super User

Need help in calculating Avg Duration Session

Hi Power BI Community,

 

I have to calculate Avg Session Duration per Users in power bi desktop. I have to divide the Avg Session Duration column to Users column. 

And, data type of Avg Session Duration is in hh:mm:ss format and Users column in Whole number.

While dividing Avg Session Duration with Users so getting incorrect format.

 

Any lead would be really appreciated.

Don't forget to give thumbs up and accept this as a solution if it helped you!!!

Please take a quick glance at newly created dashboards : Restaurant Management Dashboard , HR Analytics Report , Hotel Management Report, Sales Analysis Report , Fortune 500 Companies Analysis , Revenue Tracking Dashboard
1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

Convert to timestamp to second, take avg and convert it back

 

Refer

https://community.powerbi.com/t5/Desktop/Extracting-total-seconds-from-timestamps/td-p/190560

 

Appreciate your Kudos. In case, this is the solution you are looking for, mark it as the Solution. In case it does not help, please provide additional information and mark me with @
Thanks.

My Recent Blog - https://community.powerbi.com/t5/Community-Blog/Comparing-Data-Across-Date-Ranges/ba-p/823601

View solution in original post

4 REPLIES 4
amitchandak
Super User
Super User

Convert to timestamp to second, take avg and convert it back

 

Refer

https://community.powerbi.com/t5/Desktop/Extracting-total-seconds-from-timestamps/td-p/190560

 

Appreciate your Kudos. In case, this is the solution you are looking for, mark it as the Solution. In case it does not help, please provide additional information and mark me with @
Thanks.

My Recent Blog - https://community.powerbi.com/t5/Community-Blog/Comparing-Data-Across-Date-Ranges/ba-p/823601

TomMartens
Super User
Super User

Hey,

 

please provide sample data, upload the pbix and or xlsx file to onedrive or dropbox and share the link.

 

Regards,

Tom



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany

Hi @TomMartens ,

Could you please manage by using below screen shot? I cant upload file here because it has confidential data.

Capture.JPG

Don't forget to give thumbs up and accept this as a solution if it helped you!!!

Please take a quick glance at newly created dashboards : Restaurant Management Dashboard , HR Analytics Report , Hotel Management Report, Sales Analysis Report , Fortune 500 Companies Analysis , Revenue Tracking Dashboard

HI @Tahreem24 ,

Current power bi does not support to do aggeration on date or time fields, you can consider adding a calculate column with specific DateTime range to group your records. After these, you can do aggregation on your records based on new group column. (e.g. 10 second per period, convert session durations to count of period)
Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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