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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

From Timestamp to mm:ss

Hi All, 

   I have a column in my dataset displaying the amount of time somebody stays on a call. 
Unfortunately the data type is: Time and it appears in the following way:

 
 

 image.png

I would like to have it in the following format: mm:ss 
Additionally, I would like to sum them in order to have a aggregate number per person. 
Any ideas on how to do it?

1 ACCEPTED SOLUTION
v-kelly-msft
Community Support
Community Support

Hi @Anonymous ,

 

You need a calculated column to transform the date column to "mm:ss":

Column = FORMAT('Table'[Time],"nn:ss")

then you will see as below:

151.png

Then you need to create a measure to calculate the total minumtes for each person( if the time happens on the same day,otherwise you need to calculate the date differences between,then transformed to minutes or hours or seconds as you need):

Measure 2 = 
var a=SUMX('Table',HOUR('Table'[Time]))
var b=SUMX('Table',MINUTE('Table'[Time]))
var c=SUMX('Table',SECOND('Table'[Time]))
return 
a*60+b+c/60

And you will see:

 

152.png

 

For the related .pbix file,pls click here.

 

 

Best Regards,

Kelly

View solution in original post

2 REPLIES 2
v-kelly-msft
Community Support
Community Support

Hi @Anonymous ,

 

You need a calculated column to transform the date column to "mm:ss":

Column = FORMAT('Table'[Time],"nn:ss")

then you will see as below:

151.png

Then you need to create a measure to calculate the total minumtes for each person( if the time happens on the same day,otherwise you need to calculate the date differences between,then transformed to minutes or hours or seconds as you need):

Measure 2 = 
var a=SUMX('Table',HOUR('Table'[Time]))
var b=SUMX('Table',MINUTE('Table'[Time]))
var c=SUMX('Table',SECOND('Table'[Time]))
return 
a*60+b+c/60

And you will see:

 

152.png

 

For the related .pbix file,pls click here.

 

 

Best Regards,

Kelly

amitchandak
Super User
Super User

you can get in mm:ss using the format

 

format(column,"mm:ss")

But that might not solve the purpose.

Refer

https://community.powerbi.com/t5/Desktop/Sum-of-H-MM-SS/td-p/124007

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.