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
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

 


@ 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!:
The Definitive Guide to Power Query (M)

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.


@ 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!:
The Definitive Guide to Power Query (M)

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

 


@ 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!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

This definitely helped anwer my question. Thanks so much!

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.