topic Re: Call Center Functions: Agents must return whole number? in Anaplan Platform
https://community.anaplan.com/t5/Anaplan-Platform/Call-Center-Functions-Agents-must-return-whole-number/m-p/94975#M21591
<P>It is possible to do this entirely within Anaplan using the existing AGENTS and SLA functions. The popular FractionalAgents Excel addin function from T&C Limited is a linear interpolation between AGENTS and AGENTS-1 based on the SLA for each, as follows.<BR /><BR /></P><TABLE border="1" width="100%"><TBODY><TR><TD width="50%"><STRONG>Line Item</STRONG></TD><TD width="50%"><STRONG>Formula</STRONG></TD></TR><TR><TD width="50%">agents</TD><TD width="50%">AGENTS(sla, serviceTime, callsPerSecond, duration)</TD></TR><TR><TD width="50%">nextSLA</TD><TD width="50%">SLA(agents - 1, serviceTime, callsPerSecond, duration)</TD></TR><TR><TD width="50%">previousSLA</TD><TD width="50%">SLA(agents, serviceTime, callsPerSecond, duration)</TD></TR><TR><TD width="50%">fractionalAgents</TD><TD width="50%">agents - (nextSla - sla) / (nextSla - previousSla)</TD></TR></TBODY></TABLE><P> </P><P>To answer the concern about accuracy, the answer in Anaplan is more accurate than the one in Excel. The Excel add-in FractionalAgents function uses single precision floating point numbers, whereas Anaplan uses double precision. If you change the Excel implementation to use double precision then the answers agree to about the 15th decimal place, which is considerably less than a mote of dust from the skin of one of your agents.</P>Fri, 15 Jan 2021 09:42:37 GMTduncan_pearson2021-01-15T09:42:37ZCall Center Functions: Agents must return whole number?
https://community.anaplan.com/t5/Anaplan-Platform/Call-Center-Functions-Agents-must-return-whole-number/m-p/94205#M21299
<P>Is there any equivalent or trick to returning 'fractionalagents'?</P><P> </P><P>AGENTS(w, t, y, z) will always return a whole number. </P><P> </P><P>My stakeholders are interested in both whole/fractional agent calculations. </P>Mon, 28 Dec 2020 23:04:48 GMThttps://community.anaplan.com/t5/Anaplan-Platform/Call-Center-Functions-Agents-must-return-whole-number/m-p/94205#M21299BPifer2020-12-28T23:04:48ZRe: Call Center Functions: Agents must return whole number?
https://community.anaplan.com/t5/Anaplan-Platform/Call-Center-Functions-Agents-must-return-whole-number/m-p/94239#M21309
<P><LI-USER uid="33283"></LI-USER> </P><P>Fun question.</P><P>Anaplan will not return a decimal point because the solution is on a continuous probability curve. It would require iterations. Plus, Erlang-C uses factorials which require whole numbers. Anaplan solves for the discrete headcount needed to satisfy the service level. Once that's met, it returns the whole number headcount that just satisfies the service level. So your fractional headcount will be between the result your given and 1 less than that.</P><P>An Idea for you:</P><UL><LI>Read <A href="https://www.callcentrehelper.com/erlang-c-formula-example-121281.htm" target="_self">this article</A> which shows how to calculate the headcount using Erlang-C in Excel.</LI><LI>Download the Excel Add-In from the <A href="https://community.anaplan.com/t5/Extensions/ct-p/Extensions" target="_self">Anaplan Extensions Page</A> ( adding <LI-USER uid="8618"></LI-USER> so she can see a possible use case for Excel Add In).</LI><LI>Refine the calculation so you can approximate the headcount down to decimal places. Easiest way is to use a linear estimation. If the service level is met to 80% of the target then take 0.8 headcount. We know it's not linear, but this is just a quick way to estimate. Pretty close though.</LI><LI>Export your data from Anaplan to Excel and process the information. </LI><LI>Import the results back to Anaplan</LI><LI>For a high degree of accuracy, you'll most likely have to use VBA to iterate. Or you will have to use a non-linear curve to estimate the fraction.</LI></UL><P>Just some thoughts. </P>Tue, 29 Dec 2020 19:40:59 GMThttps://community.anaplan.com/t5/Anaplan-Platform/Call-Center-Functions-Agents-must-return-whole-number/m-p/94239#M21309JaredDolich2020-12-29T19:40:59ZRe: Call Center Functions: Agents must return whole number?
https://community.anaplan.com/t5/Anaplan-Platform/Call-Center-Functions-Agents-must-return-whole-number/m-p/94270#M21329
<P>Hey <LI-USER uid="22354"></LI-USER> , </P><P> </P><P>Thanks a lot for this great reply. It was extremely helpful.</P><P> </P><P>The team is actually coming from using an excel/gsheet add in and VBA to calculate the fractional agents. It was pretty slow when having to run through the iterations you mentioned but it's definitely something we can look at if accuracy becomes an issue. </P><P> </P><P>In the meantime I calculated the fractional agents using linear estimation like you suggested. After comparing this to the output of the erlang add-in, it appears to be more than close enough.</P><P> </P><P>For anyone coming after me... I calculated two versions of SLA, one with the full amount of agents and one with (agents -1), these amounts should straddle the teams' SLA target. I understood the difference between the two to represent the incremental amount 'added' by the last agent. I then calculated the fractional headcount to add to (agents -1). This fraction is relative to the proportion of that incremental SLA % we need to hit the SLA target exactly. </P><P> </P>Wed, 30 Dec 2020 21:45:11 GMThttps://community.anaplan.com/t5/Anaplan-Platform/Call-Center-Functions-Agents-must-return-whole-number/m-p/94270#M21329BPifer2020-12-30T21:45:11ZRe: Call Center Functions: Agents must return whole number?
https://community.anaplan.com/t5/Anaplan-Platform/Call-Center-Functions-Agents-must-return-whole-number/m-p/94975#M21591
<P>It is possible to do this entirely within Anaplan using the existing AGENTS and SLA functions. The popular FractionalAgents Excel addin function from T&C Limited is a linear interpolation between AGENTS and AGENTS-1 based on the SLA for each, as follows.<BR /><BR /></P><TABLE border="1" width="100%"><TBODY><TR><TD width="50%"><STRONG>Line Item</STRONG></TD><TD width="50%"><STRONG>Formula</STRONG></TD></TR><TR><TD width="50%">agents</TD><TD width="50%">AGENTS(sla, serviceTime, callsPerSecond, duration)</TD></TR><TR><TD width="50%">nextSLA</TD><TD width="50%">SLA(agents - 1, serviceTime, callsPerSecond, duration)</TD></TR><TR><TD width="50%">previousSLA</TD><TD width="50%">SLA(agents, serviceTime, callsPerSecond, duration)</TD></TR><TR><TD width="50%">fractionalAgents</TD><TD width="50%">agents - (nextSla - sla) / (nextSla - previousSla)</TD></TR></TBODY></TABLE><P> </P><P>To answer the concern about accuracy, the answer in Anaplan is more accurate than the one in Excel. The Excel add-in FractionalAgents function uses single precision floating point numbers, whereas Anaplan uses double precision. If you change the Excel implementation to use double precision then the answers agree to about the 15th decimal place, which is considerably less than a mote of dust from the skin of one of your agents.</P>Fri, 15 Jan 2021 09:42:37 GMThttps://community.anaplan.com/t5/Anaplan-Platform/Call-Center-Functions-Agents-must-return-whole-number/m-p/94975#M21591duncan_pearson2021-01-15T09:42:37Z