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
rmcneish
Helper I
Helper I

How to round a datetime value to datetime hours with Power Query (M)

Hello buddies.

I'd be grateful if you help me code the following.

I need to round the minutes to the down hour like the image, this using power query (M).

bi hour M.jpg

Thanks for all.

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@rmcneish , Try in a new column in power query

 

=Time.StartOfHour([Datetimestamp])

 

If you need end

=Time.EndOfHour([Datetimestamp])

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@rmcneish , Try in a new column in power query

 

=Time.StartOfHour([Datetimestamp])

 

If you need end

=Time.EndOfHour([Datetimestamp])

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.

AugPowerBI_Carousel

Power BI Monthly Update - August 2024

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

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

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