mirror of
https://github.com/directus/directus.git
synced 2026-04-25 03:00:53 -04:00
Add distinct options to metrics panel
This commit is contained in:
@@ -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',
|
||||
},
|
||||
],
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user