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

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. Register Now

Reply
Ashish_D
Frequent Visitor

Converting decimal minutes to decimal hours & minutes

I am looking for help on converting Decimal time (in mins) to hours.  I have attached print screen of the data set and the

output done in excel, trying to figire out the same in power bi done in excel, trying to figire out the same in power bidecimal time.jpg

3 REPLIES 3
tamerj1
Super User
Super User

@Ashish_D 
If you are looking to convert to time format, you can create "New Column"


Total Time = TIME ( 0, 0, Table[Total Time_Minutes] * 60 )


If you just want to convert to hours then


Total Time = DIVIDE ( Table[Total Time_Minutes], 60, 0 )

teh data i am picking this from is in exel and when i use teh above formula it doesnt work , it do TotalTime_Hrs=Divide(Activity Name[TotalTime_Mins],60,0)   . it throws an exception.  "Activity Name" is the sheet name in the file i am refering to

@Ashish_D 
Can you please share a screenshot of the table in Power BI? And what is the name of the table?

Helpful resources

Announcements
Fabric Community Conference

Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

February 2024 Update Carousel

Power BI Monthly Update - February 2024

Check out the February 2024 Power BI update to learn about new features.

Fabric Career Hub

Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

Fabric Partner Community

Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.

Top Solution Authors