Skip to content

Commit ea0771f

Browse files
committed
ordred
1 parent 8ddaff7 commit ea0771f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/Http/Controllers/AgentController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ public function dashboard3() {
9494
->join('agent_dim','agent_dim.Id','=','fact.fk_agent')
9595
->join('contact_dim', 'fact.fk_contact', '=', 'contact_dim.Id')
9696
->join('tickets_dim', 'fact.fk_ticket', '=', 'tickets_dim.Id')
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 AND FCR_resolvable = \'Yes\') 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'))
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'))
9898
->groupBy('agent_dim.Id')
9999
->orderBy('count','desc')
100100
->get();

0 commit comments

Comments
 (0)