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! It's time to submit your entry. Live now!
Hi
I have some data relating to tickets closed. This data contains, owner ID, closeddate and location, what I am trying to calculate is the average daily closures per agent so far on that data set (it started on the 31st March 2024) but also to be able to show by location.
Measures in place:
Count of tickets closed, days elapsed and using AI to help a further measure (created by adding a new table) to show me the average daily count of agents.
So now I have an answer to my question which I am happy with, my challenge is I cannot then have a table showing this by location. So lets say the answer is 20 per day overall, if I drop the location field in, it will show me 10 (loc 1), 5 (loc 2), 5 (loc 3) which is incorrect, the value will be something like 20 per location.
The measures created in the new table are:
Please provide sample data that fully covers your issue(in the form of table or pbix file) and the expected outcome based on the sample data you provided. So that I can help you better. Please remove any sensitive data in advance.
Best Regards,
Jayleny
@PatrickWork2021 , Create a new measure
DistinctNamesPerDayByLocation =
SUMMARIZE(
Closed,
Closed[ClosedDate],
Closed[Location],
"Distinct Names", DISTINCTCOUNT(Closed[OwnerId])
)
And one more
AverageDistinctNamesPerDayByLocation =
AVERAGEX(
DISTINCT(Closed[Location]),
CALCULATE(
AVERAGE(DistinctNamesPerDayByLocation[Distinct Names])
)
)
And one for average day closure
DYAveragePerDayByLocation =
DIVIDE(
DIVIDE(
Closed[Closed_Count],
[Days Elapsed]
),
[AverageDistinctNamesPerDayByLocation]
)
Proud to be a Super User! |
|
Thanks for the attempt, for the first measure did I need to click new table and then pop that into the formula bar?
The numbers your calcs brought up do not feel correct. So for example, my average distinct names per day comes out at 80, but this is including days (weekends) where the count is very low due to tickets being closed by automated processes (we don't work weekends). If I removed those days, the answer would be closer to 100, your number is coming out at 74. The distinct names per day per location is only 22, again this should be much higher.
To recap, I have the number I needed for the daily average ticktes closed per per person, but I need to update the unique agents count for only days where the count is over 10.
The Power BI Data Visualization World Championships is back! It's time to submit your entry.
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 61 | |
| 48 | |
| 35 | |
| 25 | |
| 23 |
| User | Count |
|---|---|
| 142 | |
| 111 | |
| 65 | |
| 38 | |
| 33 |