Jump to content

How can we create costum time bins (half day or 12 hours by bin)


Youcef Boubellouta

Recommended Posts

You could do some binning for example with:

BinByEvenDistance(DateDiff("hour",[your.dttm.column],Min([your.dttm.column])),12)

So, you would first calculate the time difference to a reference value (here MIN) and then bin by even distance, where your distance is 12.

But I think you maybe only want to have the bins before/after noon... For this you could use the Hour() function to check if it returns = 12:

If(Hour([your.dttm.column])

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...