Production Score (this is a MAX function): `Nvl((S...
# suitescript
k
Production Score (this is a MAX function):
Nvl((SUM({custrecord_rr_total_worktickets_complete})/nullif(SUM({custrecord_rr_analyst_goal}*{custrecord_rr_productive_hours}),0)),0)
Weighted Production Score (by productive hours) (this is a SUM function)
Copy code
(RATIO_TO_REPORT(sum({custrecord_rr_productive_hours})) OVER ())*Nvl((SUM({custrecord_rr_total_worktickets_complete})/nullif(SUM({custrecord_rr_analyst_goal}*{custrecord_rr_productive_hours}),0)),0)
s
I'm glad I don't have to do complex SQL-esque stuff like that often!
k
I found that one the hard way - told someone it wasn't possible, then they had someone else come in and do it for them, and then they told me about it after the fact.
s
of course, just because something is possible doesn't make it prudent