Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi Everyone,
I have two files linked with Power Bi, One Excel File where i have all the errors/defect call info of all agents and another file where i have total call info of the agents. The first file has a cost of error included against each call. Now here is what i am trying to achieve:
Please help.
Thank you!!
Hi @anshul1123 ,
You can create some measures to get them by using the function DISTINCTCOUNT,SUM,DATESBETWEEN, DIVIDE and so on... Just for example:
Percentage for per individual=
DIVIDE (
CALCULATE (
DISTINCTCOUNT ( 'ERROR CALLS'[ERROR_ID] ),
FILTER (
'ERROR CALLS',
'ERROR CALLS'[EMPLOYEE] = MAX ( 'ERROR CALLS'[EMPLOYEE] )
&& DATESBETWEEN ( 'ERROR CALLS', [start date], [end date] )
)
),
CALCULATE (
DISTINCTCOUNT ( 'TOTAL CALLS'[CALL_ID] ),
FILTER (
'TOTAL CALLS',
'TOTAL CALLS'[EMPLOYEE] = MAX ( 'TOTAL CALLS'[EMPLOYEE] )
&& DATESBETWEEN ( 'TOTAL CALLS', [start date], [end date] )
)
)
)If you don't know how to use these functions, then please provide some sample data in this two files and I will provide the formulas which is applicable for your scenario. Thank you.
Best Regards
Rena
Hello Ying,
Firstly, thank you for that implimentation. I am good sharing data however i will need a more secure way of showing that to you as this is internal company info.
If there is a possibility for a one on one conversation, do let me know.
In the meanwhile - I am going to try this out and see where I land as i am a novice with coding and data visualisation at this point.
Again - Really appreciate the help!
Thanks!
Anshul
Hi @anshul1123 ,
You can mock up some data and share with me, so that I can know which tables you have and what the structure looks like (just as shown in the screenshot below).
Best Regards
Rena
Here is some sample data i copied on to a google sheet :
Thanks again
Hi @anshul1123 ,
Thank you for the information. Could you please answer my following questions in order to provide you with a suitable formulas:
1. How to judge whether it is error (when Error = "Yes" or Error Category = "error")?
2. How to know who is in the same team?
3. Does cost means the time spent on error? It refer the "hour_table" column in total table?
Could you provide the calculation logic with a text formula?
Best Regards
Rena
Hi Rena,
Were you able to view the data?
Thanks much!
Anshul
Hello Rena,
Thanks again!
Anshul
Hi Rena,
This still seems to be inaccurate when i replicate on the original Data.
The percentages on the values on my end when checked on excel seem accurate, however when replicated through the formula on Power BI they still come out to be inaccurate.
I am sending you the data via PM to check .
Thanks again , Cant say it enough @Anonymous 🙂 !
Regards,
Anshul
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 59 | |
| 43 | |
| 42 | |
| 23 | |
| 17 |
| User | Count |
|---|---|
| 190 | |
| 122 | |
| 96 | |
| 66 | |
| 47 |