Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Anonymous
Not applicable

Avg weekly tickets solved by team

Having issues getting this calcuation to work as expected 

 

here is a basic look at my data

 

examplex.JPG

 

I'm trying to count the unique agent_id per date, then sum by week. 

so for example the count of agent id's 11/-11/5 for the above data should be 15

 

examplex2.JPG

 

I was trying this but not successful at getting the right number

Tickets Solved per Agent/day weekly = ([ticket_id] / COUNT('Date'[Date].[Date]))/[headcount]
headcount = CALCULATE(count(dataset[agent_id]), ALLSELECTED(dataset))
 
anyone have an idea of how I can count agents by day where the count the agents who have tickets > 0  and then sum by week?
2 REPLIES 2
Anonymous
Not applicable

Thanks Jay, 

 

running into issues as I have a date table, which I populate weekending. going to have to try and rework this a bit and see if I can make it work

Anonymous
Not applicable

Hi @Anonymous ,

 

Refer:

count_ = calculate(distinctcount([agent_id]),allexcept('table',[date]))
sumbyweek = SUMX(FILTER(ALL('Table'),WEEKNUM([date])=weeknum(SELECTEDVALUE([date]))),[count_])

 

Best Regards,

Jay

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors