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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

How to calculate average time?

Hi,

 

How to do "total time" / "total users" = average time? My goal here is to get an average time per user. 

 

The Time I have is in decimal form. I created a measure and turn them into "hour" : "min".

 

Measure I have: Time = FORMAT(AVERAGE('xxx'[Time on page]),"nn:ss")

 

Then, I tried to use the measure to divide users. It won't allow me to do that.

 

Then I tried to use the decimal numbers to divide users, it returned 0.

Avg time = DIVIDE (SUM('xxx'[Time on Page]), SUM('xxx'[Users]),0)

 

Capture.JPG

 

Please help!

 

6 REPLIES 6
Anonymous
Not applicable

Hi @Anonymous ,

 

Could you tell me if my post helps you a little? If it is, kindly Accept it as the solution to make the thread closed. More people will benefit from it.Hope to hear from you‌‌😀

 

Best Regards,
Eyelyn Qin

 

Anonymous
Not applicable

Hi @Anonymous ,

 

Not very clear about your expected output... But if you want to display the same average value on each row,please try:

Measure = CALCULATE( AVERAGE('Table'[Time on Page]),ALLSELECTED('Table'))

Eyelyn9_0-1630293070056.png

 

Or please provide more details to help us clarify your scenario.

 

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

Greg_Deckler
Community Champion
Community Champion

@Anonymous Chelsie Eiden's Duration - Microsoft Power BI Community



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...
Anonymous
Not applicable

@Greg_Deckler  I am not sure how the article going to solve my issue here. Can you please tell me how can I get the average "mm:ss" instead of 0? Thanks!

@Anonymous You can't divide using the measure because it is text. So, if you use Chelsie Eiden's Duration and keep the number as a number (don't use FORMAT) then you could use the measure.



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...
Anonymous
Not applicable

@Greg_Deckler  The column "time on page" is in decimal. How can I change these decimal numbers to seconds? Thanks a lot!

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors