Forum Discussion
Calculate Score Targets per Agent
Hello everyone,
Thanks in advance for your help.
I'm currently working on a dashboard where Agents in a call center are being evaluated per call. The score goes from 0 to 100. (90% is the target)
I have a table similar like the following
ID - Date - Agent - ... - Score Status
1 1/1/2019 Louis 93 On Goal
2 1/1/2019 Ana 87 Not on Goal
3 1/2/2019 Mike 91 On Goal
4 1/9/2019 Louis 88 Not on Goal
5 1/8/2019 Ana 94 On Goal
6 1/9/2019 Mike 99 On Goal
And so on...
How could I create a measure that shows me how many people I had on goal on a specific week?
Lets say I have 50 employees as a total, how many of them are on goal for week 13? For example.
Thank you
6 Replies
- HotChilliCommunity Champion
You'll need a Date table so that you can define the Week Number.
Add a relationship between Date table and the Agents table.
Put Week Number in a slicer.
Drag Status on to a table visualisation twice.
Put one Status as 'Do not summarize'.
Put the other as 'Count'
- AnonymousNot applicable
I already have the data model, DateTable, EvaluationsTable, AgentsTable...
I just did what you told me and gave and It counts every evaluation we have done so far, and how many of them are on goal or not.
The thing is, per week every agent has around 4-6 evaluations, So i need to know the average of the score, and if that average is on goal or not, in the same way on how many evaluations the agent was not on goal as well.
I would like to have like an indicator that shows the percentage of people on goal globally, per week, and so on..
Idk if I make sense
- v-frfei-msftCommunity Support
Hi Anonymous ,
Have a try :)
Measure 2 = CALCULATE ( COUNT ( facttable[Agent] ), FILTER ( facttable, WEEKNUM ( 'facttable'[Date] ) = 13 && facttable[score] >= 90 ) )- AnonymousNot applicable
Hi,
The thing is in a week, every agent has more than 1 evaluation, so that measure will count every evaluation of the same person that is on goal, I need to use the AverageScore per week to determine if an agent is on goal or not for any week throughout the year.
- AnonymousNot applicable
Your best bet would be row context. It will evaluate each as a unique value. I dont have a clear idea, but I would try an IF measure (condition being grades > 90%). Try using the following logic:
https://community.powerbi.com/t5/Desktop/IF-statement-in-Measure-need-help/td-p/135388