Skip to main content
Announcements
Qlik Introduces a New Era of Visualization! READ ALL ABOUT IT
cancel
Showing results for 
Search instead for 
Did you mean: 
xarapre7
Creator II
Creator II

Answered Calls >0 in the expression

Hi All!

The expression below includes CALLS_ANSWERED that are greater than 0.  How can I include in this expression to exclude the number of agents who have 0 CALLS_ANSWERED for a specific time frame?  I only want the count of agents with CALLS_ANSWERED >0 for its denominator.

=Num(Sum({1} Aggr((Sum( {$<TEAM = p(TEAM),EMPLOYEE_NAME=>}total<FULL_DATECALLS_ANSWERED)/
Count({$<WM_TEAM = p(TEAM),EMPLOYEE_NAME=>} Total<FULL_DATE>EMPLOYEE_NAME)),FULL_DATE)),'#,##0')

Thank you in advance!

23 Replies
xarapre7
Creator II
Creator II
Author

I don't have a whole number to divide the 6492 by.  What I'm trying to get actually is the sum of the Averages.  See below table to give you a clear picture of what I'm trying to do here.  Total calls = 6492 and the sum of the Avgs = 239.07

full_dateYearmoTotalCallsTotalEmpDailyTeamAvg
11/1/2016201611270299.310344828
11/2/2016201611261308.7
11/3/2016201611260328.125
11/4/2016201611265289.464285714
11/5/2016201611195238.47826087
11/6/20162016112441912.84210526
11/7/2016201611274348.058823529
11/8/2016201611231297.965517241
11/9/2016201611246298.482758621
11/10/2016201611254337.696969697
11/11/2016201611222297.655172414
11/12/2016201611201258.04
11/13/2016201611147159.8
11/14/2016201611241327.53125
11/15/2016201611267318.612903226
11/16/2016201611243269.346153846
11/17/2016201611213277.888888889
11/18/2016201611230288.214285714
11/19/2016201611162266.230769231
11/20/2016201611174199.157894737
11/21/2016201611256318.258064516
11/22/2016201611216297.448275862
11/23/2016201611196306.533333333
11/24/201620161196273.555555556
11/25/2016201611154285.5
11/26/2016201611126225.727272727
11/27/2016201611139197.315789474
11/28/2016201611229317.387096774
11/29/2016201611236317.612903226
11/30/201620161124430

8.133333333

sunny_talwar

Here you are:

Sum({1} Aggr(Sum({$<EMPLOYEE_NAME=,WM_TEAM=p(WM_TEAM)>}CALLS.CALLS_ANSWERED)/

Count({$<EMPLOYEE_NAME=,WM_TEAM=p(WM_TEAM)>} Aggr(If(Sum({$<EMPLOYEE_NAME=,WM_TEAM=p(WM_TEAM)>}CALLS.CALLS_ANSWERED) > 0, 1), DAY_MASTER.FULL_DATE, EMPLOYEE_NAME)), DAY_MASTER.FULL_DATE))

xarapre7
Creator II
Creator II
Author

Sunny T!!!!  You're the best!!!

Thank youuuuuuu!!!

sunny_talwar

Hahahaha I took so long to come up with it, so I can't be the best . Anyways, I would request you to close this thread by marking the correct response.

Qlik Community Tip: Marking Replies as Correct or Helpful

Best,

Sunny