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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
spencer_g
Helper I
Helper I

Calculate Average Duration in hh:mm:ss

Hi everyone and thanks in advance for any insight you may have!

 

I am working with data from Google Analytics, and I have the lifetime average time that a user spends on our website in hh:mm:ss. I want to breakout that average by date and user type, but the resulting measure is a decimal number and I am unable convert that to a time format. 

 

Does anyone know of a way to go about doing this?

 

Thanks!

1 ACCEPTED SOLUTION
Greg_Deckler
Super User
Super User

My blog article might help with this:

 

http://community.powerbi.com/t5/Community-Blog/Aggregating-Duration-Time/ba-p/22486

 



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

4 REPLIES 4
Nhallquist
Helper V
Helper V

Are you using the PowerBI Service, or did you build your report in PBI Desktop, then publish it?  I'm not finding a way to change the format if you use the Power BI service from App.powerbi.com.  If you can alter that data set, I'd love to know how.

Desktop. Sorry, you posted in Desktop so I assumed that was what you are using. No, you do not have any control over the data model if you only use the Service to pull in your data. You will have to switch to Desktop.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...
Greg_Deckler
Super User
Super User

My blog article might help with this:

 

http://community.powerbi.com/t5/Community-Blog/Aggregating-Duration-Time/ba-p/22486

 



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

This definitely helped anwer my question. Thanks so much!

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.