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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
JemmaD
Resolver II
Resolver II

Converting Duration in minutes to hours and minutes

I have a duration column in minutes, so 1.5 hours = 90.00.

I want to show the duration in hours and minnutes, but not a decimal. I don't want 90 minutes to 1.50 and 30 minutes to be 0.50. I want 90 minutes to be 1.30. Is there any way to do this?

1 ACCEPTED SOLUTION
Nathaniel_C
Super User
Super User

Hi @JemmaD ,
Please go to Power Query.
Divide and round down, Apply Modulo, Merge columns with a "." seperator.
Result"

Nathaniel_C_0-1688575379395.png

step 1

Nathaniel_C_1-1688575435458.png

step 2

Nathaniel_C_2-1688575492433.png

step 3

 

Nathaniel_C_3-1688575550498.png


Let me know if you have any questions.

If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos 👍are nice too.
Nathaniel

 





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

Proud to be a Super User!




View solution in original post

5 REPLIES 5
Nathaniel_C
Super User
Super User

Hi @JemmaD ,
Please go to Power Query.
Divide and round down, Apply Modulo, Merge columns with a "." seperator.
Result"

Nathaniel_C_0-1688575379395.png

step 1

Nathaniel_C_1-1688575435458.png

step 2

Nathaniel_C_2-1688575492433.png

step 3

 

Nathaniel_C_3-1688575550498.png


Let me know if you have any questions.

If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos 👍are nice too.
Nathaniel

 





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

Proud to be a Super User!




Thanks @Nathaniel_C this worked perfectly.

Hi @JemmaD ,
You are very welcome!
Nathaniel





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

Proud to be a Super User!




NishPatel
Resolver II
Resolver II

You can try this formula where you need to replace 90 with your number that you want it to convert it to decimal. =((90-(90-60))/60)+(90-60)/100

Ahmedx
Super User
Super User

Is this what you are looking for?

Screen Capture #1379.png

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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