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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
AT150745
Frequent Visitor

How format Average Time in Power BI: Converting 60 Seconds to 1 Minute

 

Hi everyone,

I'm working with time data in Power BI and need some help with formatting the average time correctly. Specifically, I want to ensure that when calculating the average, 60 seconds are automatically converted to 1 minute.

For example, I calculated the average of seconds from my data, and it currently displays as 95.00 seconds, as shown 

Screenshot 2024-09-01 120716.png

 

Instead of showing the result as 95.00 seconds, I want it to display in the format of minutes and seconds (e.g., 1:35 for 1 minute and 35 seconds).

Could someone guide me on how to achieve this in Power BI? Here's the DAX formula I tried:

 

 

 

Thanks in advance for your help!

 

2 ACCEPTED SOLUTIONS
tharunkumarRTK
Super User
Super User

@AT150745 

I am assuming your seconds column is a numeric column. You can try this pattern:

Screenshot 2024-09-01 at 11.10.01 AM.png

TotalTime = 
Var __TotalSeconds = SUM('Time'[Seconds])
Var __Minutes = INT( DIVIDE(__TotalSeconds , 60)) 
Var __Seoncds = MOD(__TotalSeconds,60)
Var Result = __Minutes & ":" & __Seoncds
RETURN Result 

 

 

Need a Power BI Consultation? Hire me on Upwork

 

 

 

Connect on LinkedIn

 

 

 








Did I answer your question? Mark my post as a solution!
If I helped you, click on the Thumbs Up to give Kudos.

Proud to be a Super User!


PBI_SuperUser_Rank@2x.png

View solution in original post

DataNinja777
Super User
Super User

Hi @AT150745 

 

Please try the measure below:

FormattedTime = 
VAR TotalSeconds = [average]
VAR Minutes = INT(TotalSeconds / 60)
VAR Seconds = MOD(TotalSeconds, 60)
RETURN 
    FORMAT(Minutes, "0") & ":" & FORMAT(Seconds, "00")

 Best regards,

View solution in original post

2 REPLIES 2
DataNinja777
Super User
Super User

Hi @AT150745 

 

Please try the measure below:

FormattedTime = 
VAR TotalSeconds = [average]
VAR Minutes = INT(TotalSeconds / 60)
VAR Seconds = MOD(TotalSeconds, 60)
RETURN 
    FORMAT(Minutes, "0") & ":" & FORMAT(Seconds, "00")

 Best regards,

tharunkumarRTK
Super User
Super User

@AT150745 

I am assuming your seconds column is a numeric column. You can try this pattern:

Screenshot 2024-09-01 at 11.10.01 AM.png

TotalTime = 
Var __TotalSeconds = SUM('Time'[Seconds])
Var __Minutes = INT( DIVIDE(__TotalSeconds , 60)) 
Var __Seoncds = MOD(__TotalSeconds,60)
Var Result = __Minutes & ":" & __Seoncds
RETURN Result 

 

 

Need a Power BI Consultation? Hire me on Upwork

 

 

 

Connect on LinkedIn

 

 

 








Did I answer your question? Mark my post as a solution!
If I helped you, click on the Thumbs Up to give Kudos.

Proud to be a Super User!


PBI_SuperUser_Rank@2x.png

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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