Skip to main content
Announcements
SYSTEM MAINTENANCE: Thurs., Sept. 19, 1 AM ET, Platform will be unavailable for approx. 60 minutes.
cancel
Showing results for 
Search instead for 
Did you mean: 
lmabroukf
Contributor II
Contributor II

calculate percentage of answered email in 3 days

Hello, 

I have a problem with a chart I want to build.

My tracker is about information request emails. I want to have the percentage of emails to which we have answered in less than 3 days

I am using this expression to count the number of working days :

NetWorkDays("date of receipt", "reply date")

 

thank you for your help !

Capture d’écran 2020-05-27 à 17.13.13.png

Labels (7)
6 Replies
dplr-rn
Partner - Master III
Partner - Master III

in your script create a flag for this purpose

e.g.

if (NetWorkDays("date of receipt", "reply date")<=3,'1,0)  as QuickResponseFlag

 

use that flag for your percentage calculation

lmabroukf
Contributor II
Contributor II
Author

Sorry, I am very new to this ! In what will the flag help for ? and what type of chart do I have to choose ? Thank you very much

dplr-rn
Partner - Master III
Partner - Master III

flag will help with calculations. basically it helps you identify if a call is answered within 3 days.

 

e.g. expression with setanalysis below will give you count of calls answered <= 3 days

count({<QuickResponseFlag={1}>} ID) 

expression for % answered <= 3 days

count({<QuickResponseFlag={1}>} ID) /count(ID) 

lmabroukf
Contributor II
Contributor II
Author

Great thank you for everything !

lmabroukf
Contributor II
Contributor II
Author

I found another solution to this problem if anyone has the same one:

100*Sum(Aggr(If(NetWorkDays("date of receipt", "reply date") <= 3, 1, 0), [id]))/
Count([reply date])

 

dplr-rn
Partner - Master III
Partner - Master III

@lmabroukf  your solution will work but i would recommend the script approach.

because

1- if statements are slow compared with set analysis

2- aggr though very powerful is also resource intensive

so if there is a way to do with flags and/or with set analysis that should be the way to do it.

close the thread by marking  as answered