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! Learn more

Reply
Anonymous
Not applicable

Convert minutes to HH:MM - Calculated column

I have a field in Power BI which gives me the minutes number.

 

Example :- 14 

 

I need to convert it to the format HH:MM. Please help

 

Examples 

 

-- 14 need to be changed as 00:14

-- 62 need to be changed as 01:02

-- 70 need to be changed as 01:10

1 ACCEPTED SOLUTION
Samarth_18
Community Champion
Community Champion

HI @Anonymous 

you can create a column with below code:-

 

In Hours and Minutes = 
var _Minues='Convert HHM'[Column1]
var _Hours=int( _Minues/60)
var _RemMinutes=MOD(_Minues, 60)
return
  _Hours&":"&IF(_RemMinutes< 10,"0"&_RemMinutes,_RemMinutes)

image.png

 

Thanks,

Samarth

Best Regards,
Samarth

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin

View solution in original post

4 REPLIES 4
Samarth_18
Community Champion
Community Champion

HI @Anonymous 

you can create a column with below code:-

 

In Hours and Minutes = 
var _Minues='Convert HHM'[Column1]
var _Hours=int( _Minues/60)
var _RemMinutes=MOD(_Minues, 60)
return
  _Hours&":"&IF(_RemMinutes< 10,"0"&_RemMinutes,_RemMinutes)

image.png

 

Thanks,

Samarth

Best Regards,
Samarth

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin

Anonymous
Not applicable

Hi,

 

Unsure what I have done incorrectly, it does not pick up the column name "Loading TAT(mins)"

MilishnieReddy_1-1690283132508.png

 

 

This solution worked perfectly for me when I found it for my project. My only outstanding problem is blank values showing up with  :  and not zeros. Another option would be to exclude those with zero but I am not able to filter due to the colon. Any ideas? 

 

lroush259_0-1688997984921.png

 

Anonymous
Not applicable

Hi

I have a field in Power BI which gives me the minutes number.

 

Example :- 186

 

I need to convert it to the format HH:MM. Please help

MilishnieReddy_0-1684765450758.png

 

The above dax does not work

 

 

Helpful resources

Announcements
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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