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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Pooja-B
Regular Visitor

Convert minutes into hours

Hi,
   In Power BI I have a column name has Worked minutes as 110 minutes.
 This 110 minutes I have to convert into hours as "1:50"
 How to convert the 110 as 1:50

Thanks in advance,
Pooja-B.

1 ACCEPTED SOLUTION

@Pooja-B ,

Are you using the same formula? I got the correct output.

Please see the below,

Arul_0-1676294438297.png

Thanks,

Arul





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!


LinkedIn


View solution in original post

9 REPLIES 9
Pooja-B
Regular Visitor

Hi @Arul ,
 I need that hours coulumn datatype as  decimal numbers because I need to add the sum of worked hours.
I already have workedMinutes column have data as 110 "Whole number datatype".
The hours column I need 1:50 as decimal number datatype.

In above mentioned thread they were in text datatype.

Thanks,
Pooja-B

 

@Pooja-B ,

If you requirement is to calculate the sum of hours, Can you try the below formula in measure?

Minutes to Hours = 
VAR _hours = ROUNDDOWN(DIVIDE(SUM('Table'[Minutes]),60),0)
VAR _minutes = MOD(SUM('Table'[Minutes]),60)
VAR _result = FORMAT(_hours,"#00")&":"&FORMAT(_minutes,"#00")
RETURN _result

Thanks,

Arul;





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!


LinkedIn


Hi @Arul ,
  Thank you so much for your response. Its working fine.
 But I need some exact answer sir.

I have 2 times here, 
                Minutes    Hours
                  220            3:40
                  225            3:45
Total Hours worked = 7:25
The above your given code, I tried in "calculated measure" its working in table visual but not working in the stacked column chart visual


Thanks,
Pooja-B

@Pooja-B ,

this is not possible but you can add that measure in tooltip lik the below,

Arul_1-1676292930367.png

Thanks,

Arul

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!


LinkedIn


@Arul ,

PoojaB_0-1676293682473.pngHere I need the total as 7:25 here showing 8:00

 

PoojaB_1-1676293979513.png

I added Tooltip as "Minutes to Hours" but its blank here

Thanks,
Pooja-B.

 

@Pooja-B ,

Are you using the same formula? I got the correct output.

Please see the below,

Arul_0-1676294438297.png

Thanks,

Arul





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!


LinkedIn


Great Thanks 
It's working for me of similar case

@Arul ,

PoojaB_2-1676295221256.png

 

 

Its strange for me. I don't know why it is not wokring for me
Thanks a Lot @Arul  for your help.

Thanks,
Pooja-B

 

Arul
Super User
Super User

@Pooja-B ,

refer this thread, if this does not helps please let me know.

https://community.powerbi.com/t5/Desktop/Convert-number-of-minutes-to-hours/m-p/2168710 

Thanks,

Arul





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!


LinkedIn


Helpful resources

Announcements
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 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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