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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Anonymous
Not applicable

AVG SSession Time Format

Hi,
I calculate average time in this way:

AVG_Session_Time = 
AVERAGEX(
    SUMMARIZE(
         Full_Table_Events,
         Full_Table_Events[ga_session_id] ,
         "_1", MIN('Full_Table_Events'[event_timestamp]) ,
          "_2", MAX('Full_Table_Events'[event_timestamp])
          ),
           DATEDIFF([_1],[_2],MINUTE)
           )
          

The result looks like this:

Galat198_0-1611649529535.png

But is not 7 minutes and 84 seconds. This 7 minutes and 84% from the minute.  So it must be 00:07:50.

Is it possible to get a result in such a format?

1 ACCEPTED SOLUTION
Greg_Deckler
Community Champion
Community Champion

@Anonymous Seems like you would need to convert this to the total number of seconds like:

Column = INT([Column1]) * 60 + (([Column1] - INT([Column1])) * 60)

That's just an example. You could then apply the formatting technique per something like Chelsie Eiden's Duration: https://community.powerbi.com/t5/Quick-Measures-Gallery/Chelsie-Eiden-s-Duration/m-p/793639#M389



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!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

1 REPLY 1
Greg_Deckler
Community Champion
Community Champion

@Anonymous Seems like you would need to convert this to the total number of seconds like:

Column = INT([Column1]) * 60 + (([Column1] - INT([Column1])) * 60)

That's just an example. You could then apply the formatting technique per something like Chelsie Eiden's Duration: https://community.powerbi.com/t5/Quick-Measures-Gallery/Chelsie-Eiden-s-Duration/m-p/793639#M389



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!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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