cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
DAXRichArd Member
Member

Convert whole number representing minutes to duration hh:mm (hours:minutes)

Hello,

I work with Commercial Aviation Data.

  • I want to convert a whole number that represents minutes into duration.
  • The whole number that represents minutes is a measure that calculates the total flight time from an aircraft's point of origin to it's destination.


My table name is HAS Web Schedule Data.
My measure name is Flight Time.

 

My desired output is a matrix that shows

 

Airline Destination  Country Destination   City         Departure Time  Seats  Flight Time
China Airlines          China                          Beijing   11:00 am             311    hh:mm

 

I've looked through this forum but haven't found anything that directly addresses my question. I've tried reverse engineering similar questions / solutions but I haven't been able to. Thx in advance for your help and support.

 

Thx in advance for all your help.

DAXRichArd

 

Below is a screenshot of what my data looks like before I query it and clean it up.

FlightTime.JPG

2 ACCEPTED SOLUTIONS

Accepted Solutions
Super User
Super User

Re: Convert whole number representing minutes to duration hh:mm (hours:minutes)

Hello @DAXRichArd 

Give this one a try, should with with a column or a measure.

Duration Fomatted = FORMAT(Table1[Duration Minutes] / 60 / 24, "h:mm")

minutes_to_duration.png

 

View solution in original post

DAXRichArd Member
Member

Re: Convert whole number representing minutes to duration hh:mm (hours:minutes)

2 REPLIES 2
Super User
Super User

Re: Convert whole number representing minutes to duration hh:mm (hours:minutes)

Hello @DAXRichArd 

Give this one a try, should with with a column or a measure.

Duration Fomatted = FORMAT(Table1[Duration Minutes] / 60 / 24, "h:mm")

minutes_to_duration.png

 

View solution in original post

DAXRichArd Member
Member

Re: Convert whole number representing minutes to duration hh:mm (hours:minutes)

Helpful resources

Announcements
Ask Amir Anything

Exclusive LIVE Community Event No. 2 – Ask Amir Anything

Next in our Triple A series: Ask Amir Netz questions about the latest updates, features and future.

Ask Amanda Anything Q&A

Ask Amanda Anything Q&A

Learn the answers to some of the questions asked during the Amanda Triple A event.

October 2019 Community Highlights

October 2019 Community Highlights

October was a busy month in the community. Read the recap article to learn about some of the events and content.

New Solution Badges

New Solution Badges

Two waves of brand new solution badges are coming! Read the article for more information on our new community badges.

Users Online
Currently online: 291 members 2,584 guests
Please welcome our newest community members: