Dynamically binning timeseries data

For your first attempt you could look to set up a dynamic default. This would require you to create a separate dataset with your group number and all of the users that are logging in to set this dynamically.

For your second attempt can you instead do this in SQL?