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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
Mann
Resolver III
Resolver III

Issues with RoundUp in M query

Hi Guys,

 

I want to round up the date time values to next multiple of 5 min as follows:

8/31/2019 9:44:49 PM --> 8/31/2019 9:45:00 PM

9/1/2019 1:58:18 AM --> 9/1/2019 2:00:00 AM

8/31/2019 11:58:10 PM --> 9/01/2019 12:00:00 AM

How can this be done in Power Query? Please advice

1 ACCEPTED SOLUTION
Nathaniel_C
Super User
Super User

@Mann ,

In Power BItime6.PNG

 In Power Query
round.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

4 REPLIES 4
Nathaniel_C
Super User
Super User

@Mann ,

In Power BItime6.PNG

 In Power Query
round.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  It worked perfectly. 🙂

You are welcome!





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

Proud to be a Super User!




I cannot for the life of me understand why the Time values are from 0 to 99999 for a 24 hr period. Every increment represents 0.86400864(repeat) seconds. I get that is how Excel does it, but not sure why that nonsense was replicated in Power Query or Power BI. Should count to 86400 then start over for the next day. 🤷‍



Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting

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.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

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

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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

Top Solution Authors
Top Kudoed Authors