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
->select(DB::raw('agent_dim.Id, agent_dim.Name, SUM(CASE WHEN (Category not like \'Service Catalog\' AND Contact_type like \'Phone\' AND FCR_resolved = 1 AND FCR_resolvable = \'Yes\') THEN 1 ELSE 0 END) * 100 / SUM(CASE WHEN (Category not like \'Service Catalog\' AND Contact_type like \'Phone\' AND FCR_resolvable = \'Yes\') THEN 1 ELSE 0 END) AS count'))
97
+
->select(DB::raw('agent_dim.Id, agent_dim.Name, SUM(CASE WHEN (Category not like \'Service Catalog\' AND Contact_type like \'Phone\' AND FCR_resolved = 1) THEN 1 ELSE 0 END) * 100 / SUM(CASE WHEN (Category not like \'Service Catalog\' AND Contact_type like \'Phone\') THEN 1 ELSE 0 END) AS count'))
98
98
->groupBy('agent_dim.Id')
99
99
->orderBy('count','desc')
100
100
->get();
@@ -103,7 +103,7 @@ public function dashboard3() {
->select(DB::raw('agent_dim.Id, agent_dim.Name, IFNULL(SUM(CASE WHEN (Contact_type like \'Phone\' AND Category not like \'Service Catalog\' AND FCR_resolved = 1 AND FCR_resolvable = \'Yes\') THEN 1 ELSE 0 END) * 100 / SUM(CASE WHEN FCR_resolvable = \'Yes\' THEN 1 ELSE 0 END),0) AS count'))
106
+
->select(DB::raw('agent_dim.Id, agent_dim.Name, SUM(CASE WHEN (Category not like \'Service Catalog\' AND Contact_type like \'Phone\' AND FCR_resolved = 1 AND FCR_resolvable = \'Yes\') THEN 1 ELSE 0 END) * 100 / SUM(CASE WHEN (Category not like \'Service Catalog\' AND Contact_type like \'Phone\' AND FCR_resolvable = \'Yes\') THEN 1 ELSE 0 END) AS count'))
0 commit comments