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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
Freeseman
Helper II
Helper II

Minutes into Hours

Hi,

 

I am struggling to change minutes into hours for the duration column.

What query can i write.

Table name is EQUIPMENT_STATUS_SUMMARY

 

Freeseman_0-1659340861955.png

 

1 ACCEPTED SOLUTION
Vijay_A_Verma
Super User
Super User

This looks like your DAX screen. 

For DAX, you can use following formula to convert mins into hours

=[DURATION]/60

In PQ, you can use following

1. If you need this value in a different column

= [DURATION]/60

2. If you want to replace within column itself wjere #"Changed Type" would need to be replaced with your last step

= Table.ReplaceValue(#"Changed Type",each [DURATION],each [DURATION]/60,Replacer.ReplaceValue,{"DURATION"})

View solution in original post

2 REPLIES 2
Vijay_A_Verma
Super User
Super User

This looks like your DAX screen. 

For DAX, you can use following formula to convert mins into hours

=[DURATION]/60

In PQ, you can use following

1. If you need this value in a different column

= [DURATION]/60

2. If you want to replace within column itself wjere #"Changed Type" would need to be replaced with your last step

= Table.ReplaceValue(#"Changed Type",each [DURATION],each [DURATION]/60,Replacer.ReplaceValue,{"DURATION"})

Thank you. I add custom column and did what you mentioned. It worked.

=[DURATION]/60

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

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

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

Top Solution Authors
Top Kudoed Authors