BigQuery Datasource Plugin - Group datapoints according to display size


I’m using the BigQuery datasource plugin and want to group the datapoints according to the display size, basically the same what the code
GROUP BY $__timeGroup(datetimecolumn,$__interval)
achieves for a MySQL datasource.

Has anyone done that before or any ideas how to do it?
Thanks in advance!