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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

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.

Top Solution Authors
Top Kudoed Authors