Add distinct options to metrics panel

This commit is contained in:
rijkvanzanten
2021-06-17 16:41:55 -04:00
parent d6a86cae5b
commit 27e21f9e1b

View File

@@ -26,14 +26,30 @@ export default definePanel({
interface: 'select-dropdown',
options: {
choices: [
{
text: 'Count',
value: 'count',
},
{
text: 'Count (Distinct)',
value: 'count_distinct',
},
{
text: 'Average',
value: 'avg',
},
{
text: 'Average (Distinct)',
value: 'avg_distinct',
},
{
text: 'Sum',
value: 'sum',
},
{
text: 'Sum (Distinct)',
value: 'sum_distinct',
},
{
text: 'Minimum',
value: 'min',
@@ -42,10 +58,6 @@ export default definePanel({
text: 'Maximum',
value: 'max',
},
{
text: 'Count',
value: 'count',
},
],
},
},