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
emarc1
Advocate II
Advocate II

Round time DOWN to the nearest 5/15/30 minutes

I couldn't find anything on actually rounding time intervals down to the nearest X.

 

This is necessary to aggregate time data.

 

MROUND only rounds to the nearest specified multiple (so also rounds up).

 

eg:
MROUND( 00:07:00, 15) = 0
MROUND( 00:08:00, 15) = 15

 

Really we want any time between 00:00:00 and 00:14:59 to round down to 00:00:00, any time between 00:15:00 and 00:29:59 to round down to 00:15:00, etc.

1 ACCEPTED SOLUTION
jthomson
Solution Sage
Solution Sage

Would grouping the data into a new column using 15 minute bins not work for what you need to do?

View solution in original post

12 REPLIES 12

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.