Use the following query in a table widget to create a dynamic table that allows you to specify the source data table, the grouping period, and the grouping key. Code Block |
---|
query(
from $*Select0.value
group every $*Select1.value
by $*Select2.value select count() as count) |
The table is linked to three different Select-type inputs populated with the values shown below. Select0 | Select1 | Select2 |
---|
["demo.ecommerce.data", "web.all.access"]
|
Select1 | ["2m", "5m", "10m", "1s"]
|
Select2The following capture shows the table after selecting demo.ecommerce.data as source table, 1s as grouping time and statusCode as key column for the grouping. |