"rawSql":"SELECT\n $__timeGroupAlias(date,$__interval,NULL),\n uuid AS metric,\n avg(price) AS \"Fulfilled Orders\"\nFROM \"order\"\nWHERE\n $__timeFilter(date) AND\n active = 'false'\nGROUP BY 1,2\nORDER BY 1,2",
"refId":"C",
"select":[
[
{
"params":[
"price"
],
"type":"column"
},
{
"params":[
"avg"
],
"type":"aggregate"
},
{
"params":[
"Fulfilled Orders"
],
"type":"alias"
}
]
],
"table":"\"order\"",
"timeColumn":"date",
"timeColumnType":"timestamp",
"where":[
{
"name":"$__timeFilter",
"params":[],
"type":"macro"
},
{
"datatype":"bool",
"name":"",
"params":[
"active",
"=",
"'false'"
],
"type":"expression"
}
]
}
],
"thresholds":[],
@ -366,13 +430,13 @@
],
"metricColumn":"none",
"rawQuery":false,
"rawSql":"SELECT\n $__timeGroupAlias(date,$__interval),\n count(id) AS \"id\"\nFROM \"order\"\nWHERE\n $__timeFilter(date) AND\n active = 'false' AND\n cancelled = 'false'\nGROUP BY 1\nORDER BY 1",
"rawSql":"SELECT\n $__timeGroupAlias(date,$__interval),\n count(price) AS \"price\"\nFROM \"order\"\nWHERE\n active = 'false' AND\n cancelled = 'false'\nGROUP BY 1\nORDER BY 1",
"refId":"A",
"select":[
[
{
"params":[
"id"
"price"
],
"type":"column"
},
@ -384,7 +448,7 @@
},
{
"params":[
"id"
"price"
],
"type":"alias"
}
@ -394,11 +458,6 @@
"timeColumn":"date",
"timeColumnType":"timestamp",
"where":[
{
"name":"$__timeFilter",
"params":[],
"type":"macro"
},
{
"datatype":"bool",
"name":"",
@ -516,13 +575,13 @@
],
"metricColumn":"none",
"rawQuery":false,
"rawSql":"SELECT\n $__timeGroupAlias(date,$__interval),\n count(id) AS \"id\"\nFROM \"order\"\nWHERE\n $__timeFilter(date) AND\n active = 'true' AND\n cancelled = 'false'\nGROUP BY 1\nORDER BY 1",
"rawSql":"SELECT\n $__timeGroupAlias(date,$__interval),\n count(price) AS \"price\"\nFROM \"order\"\nWHERE\n active = 'true' AND\n cancelled = 'false'\nGROUP BY 1\nORDER BY 1",