Hey guys
In my company the Consultants have what we call "power hour" every day which is one hour in which they are meant to make a certain amount of phone calls.
SO I currently have this query:
FIND Calls WHERE DATE_PART(Calls.TimeOfCall)=DATE_PART(CURRENT_TIMESTAMP) AND HOUR(Calls.TimeOfCall)>=9 AND HOUR(Calls.TimeOfCall)<=10 ORDER BY Calls.TimeOfCall
That's fine, it all works as it should and I've set it to display the summary next to each Consultants name so that you can see at a glance that Consultant X made 5 phonecalls and Consultant Y made 10 phonecalls.
Now, I want to add a section on the dashboard that counts the amount of Calls and then displays the best and worst Consultant in terms of Calls.
For instance:
The consultant who made the most calls is X with Y amount of calls.
The consultant who made the least amount of calls is Z with A amount of calls.
Similar to the bug fix example. I'm just not that au fait with the COUNT function (I assume that's what I'd use?) Like a COUNT mixed with order and take best or what?
The aim with this is to foster a sense of competition (and shame) in the Consultants and push them harder.