Forum Discussion

TJPCrabfat's avatar
TJPCrabfat
Frequent Visitor
6 years ago

Cumulative Count with KPI

Hi, cumulative counts are covered extensively here but I can't see an answer to my specific problem.

 

I'm trying to cumulatively count the number of calls a team of agents make in a day and benchmark them against a cumulative KPI.

 

First I summarize the the number of agents per day based on the calls table.

 

Active Agents = CALCULATE(COUNTROWS(SUMMARIZE(Calls,Calls[Date],Calls[AgentID])),FILTER(Calls,Calls[Role]="SalesAgent"))
 
Then create the cumulative KPI for the calls up to yesterday and summed over "This Week"
 
Calls KPI = CALCULATE([Active Agents]*60,ALL(Dates),Dates[This Week]="This Week",Dates[Date]<TODAY())
 
This works fine but when I do something similar for the number of calls they actually make during the week the KPI only shows me the previous day's total.
 
Outbound Calls = CALCULATE(COUNTROWS(Calls),FILTER(Calls,Calls[Type]="O"),FILTER(ALLSELECTED(Dates),Dates[Date]<TODAY()))
 

 

 You can see in the images above when I inclide a date on the trend axis for the KPI the calls KPI is cumulative however the actual count of calls made is not. Removing the date gives the true cumulative figure for calls made but removes the trend axis.

 

Can someone please help?

3 Replies