Returns the end time of the current bin (exclusive). Can only be used with timechart.
This is a scalar function (calculates a single output value for a single input row.)
timechart 10m, last_to_bin_end:min(bin_end_time() - timestamp), group_by(key)
Create a column named “last_to_bin_end” that contains the difference between the last data point in the bin and the bin’s end time.