Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hello Team,
I work in a call center where we have a set of KPIs, one of which is Average Handle Time (AHT) with a target of 600 seconds or less. For this metric, a lower AHT is better; for example, an agent with an AHT of 300 seconds is considered better than an agent with 600 seconds.
I need to assign a weight of 10% to this metric within the total KPIs, where agents who achieve an AHT of less than 600 seconds receive the full weight. I don't know how to create that can assume a higher AHT is not better when it should be the opposite.
Thanks,
Solved! Go to Solution.
Thank you for your prompt reply @Greg_Deckler
Hi @Anonymous
Based on your needs ,I have created the following table:
You can create the following formula to classify AHT, assuming <=600 is marked as "good" and >600 is marked as "bad"
Measure = IF(SELECTEDVALUE('Table'[AHT])<=600,"good","bad")
You can use the following DAX to calculate the percentage of time less than or equal to 600 seconds
KPI = DIVIDE(CALCULATE(COUNTROWS('Table'),FILTER('Table',[Measure]="good")),COUNTROWS('Table'))
Result:
Best Regards,
Jayleny
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thank you for your prompt reply @Greg_Deckler
Hi @Anonymous
Based on your needs ,I have created the following table:
You can create the following formula to classify AHT, assuming <=600 is marked as "good" and >600 is marked as "bad"
Measure = IF(SELECTEDVALUE('Table'[AHT])<=600,"good","bad")
You can use the following DAX to calculate the percentage of time less than or equal to 600 seconds
KPI = DIVIDE(CALCULATE(COUNTROWS('Table'),FILTER('Table',[Measure]="good")),COUNTROWS('Table'))
Result:
Best Regards,
Jayleny
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous , have you found any solution for it?
Thanks, @Anonymous for your reply. It works however my issue is that I need to have something like
Score Measure= IF(Table [AHT]<= 600, AHT Score* Weight (20%)). Based on this formula the system gives the employee who scored high AHT the highest score however in a metric like AHT the agent who hit high AHT shouldn't get the highest score since he is an outlier.
Hope this is clear now
@Anonymous Seems like a simple IF statement but Sorry, having trouble following, can you post sample data as text and expected output?
Not really enough information to go on, please first check if your issue is a common issue listed here: https://community.powerbi.com/t5/Community-Blog/Before-You-Post-Read-This/ba-p/1116882
Also, please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490
The most important parts are:
1. Sample data as text, use the table tool in the editing bar
2. Expected output from sample data
3. Explanation in words of how to get from 1. to 2.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
11 | |
11 | |
10 | |
9 | |
8 |
User | Count |
---|---|
17 | |
12 | |
11 | |
11 | |
11 |