Skip to content

Instantly share code, notes, and snippets.

@develohpanda
Created September 19, 2016 01:27
Show Gist options
  • Save develohpanda/a6d60949e0378b4b708a5ce9aa96ca24 to your computer and use it in GitHub Desktop.
Save develohpanda/a6d60949e0378b4b708a5ce9aa96ca24 to your computer and use it in GitHub Desktop.
Power BI - Round to nearest x seconds
DateTime.From(Number.Round((Number.From([Time]) * 24 * 3600)/RoundToNearestXSecond, 0)*RoundToNearestXSecond/(24*3600))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment