Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
I have a date/time field that I need to round to the nearset 30 minute interval. For example, 6/8/18 1:33 PM would round to 6/8/18 1:30 PM and 6/8/18 1:46 PM would round to 6/8/18 2:00 PM. I'd like to do this in the query editor if possible, but would settle for DAX if needed.
Solved! Go to Solution.
Hi @Anonymous,
Then try this :
if Time.Minute([Original Column])/15>3 then [Original Column]+#duration(0,0,60-Time.Minute([Original Column]),-Time.Second([Original Column])) else if Time.Minute([Original Column])/15<1 then [Original Column]+#duration(0,0,-Time.Minute([Original Column]),-Time.Second([Original Column])) else [Original Column]+#duration(0,0,30-Time.Minute([Original Column]),-Time.Second([Original Column])))
Ninter
User | Count |
---|---|
141 | |
113 | |
104 | |
77 | |
64 |
User | Count |
---|---|
135 | |
123 | |
101 | |
71 | |
61 |