ryan 6 years ago
parent
commit
227d28154b
1 changed files with 6 additions and 1 deletions
  1. 6 1
      packages/grafana-ui/src/utils/tableReducer.ts

+ 6 - 1
packages/grafana-ui/src/utils/tableReducer.ts

@@ -133,10 +133,15 @@ function getById(id: string): TableReducerInfo {
         value: TableReducerID.sum,
         value: TableReducerID.sum,
         label: 'Total',
         label: 'Total',
         description: 'The sum of all values',
         description: 'The sum of all values',
+        emptyInputResult: 0,
         standard: true,
         standard: true,
         alias: 'total',
         alias: 'total',
       },
       },
-      { value: TableReducerID.count, label: 'Count', description: 'Value Count', standard: true },
+      { value: TableReducerID.count, 
+        label: 'Count', 
+        description: 'Value Count', 
+        emptyInputResult: 0,
+        standard: true },
       {
       {
         value: TableReducerID.range,
         value: TableReducerID.range,
         label: 'Range',
         label: 'Range',