Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

If then else statement

Status
Not open for further replies.

ptrifile

Technical User
Aug 10, 2004
457
US
I use the following formula to show Average Talk Time for a group of employees.

Code:
if ({iAgentPerformanceStat.CallsAnswered}) = 0 then 0 else round(sum({iAgentPerformanceStat.TalkTime}, {iAgentPerformanceStat.AgentSurName})/sum({iAgentPerformanceStat.CallsAnswered},{iAgentPerformanceStat.AgentSurName}));

This formula works great if the first person listed in the report has answered calls during the specified time period, however, if the first person listed has zero calls answered then everyone on the report shows as zero. Does this make sense to anyone? Can someone offer a possible solution?

Thanks in advance

Paul
 
Thanks for the follow up dgillz. I just figured out the issue. I needed to do a left outer join instead of an inner join. Once I made that change I got the desired resuts.

Thanks again!

Paul
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top