You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: app/Nova/Metrics/MetricKeberadaan.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -68,7 +68,7 @@ public function calculate(NovaRequest $request): PartitionResult
68
68
$results = DB::query()
69
69
->selectRaw(
70
70
$this->null_strict ?
71
-
"SUM(CASE WHEN {$this->column} IS NOT NULL THEN 1 ELSE 0 END) as ada, SUM(CASE WHEN {$this->column} IS NULL THEN 1 ELSE 0 END) as tidak" :
71
+
"SUM(CASE WHEN {$this->column} IS NOT NULL AND {$this->column} != '[]' THEN 1 ELSE 0 END) as ada, SUM(CASE WHEN {$this->column} IS NULL OR {$this->column} = '[]' THEN 1 ELSE 0 END) as tidak" :
72
72
"SUM(CASE WHEN {$this->column} > 0 THEN 1 ELSE 0 END) as ada, SUM(CASE WHEN {$this->column} <= 0 THEN 1 ELSE 0 END) as tidak"
0 commit comments