Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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
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!
Solved! Go to Solution.
I am assuming your seconds column is a numeric column. You can try this pattern:
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
|
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,
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,
I am assuming your seconds column is a numeric column. You can try this pattern:
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
|
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
23 | |
10 | |
10 | |
9 | |
7 |