Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
Hi Team,
I am struggling to implement Erlang c formula in Power BI. The requirement needs to sum the series as shown in the denominator.
The value of N also needs to be incremented in order to achieve the optimal solution.
Solved! Go to Solution.
HI @Anonymous ,
You can take a look at the following link that mentions the Erlang C calculation requirements if it helps:
Analysing Call Center Data - DAX Calculations - Enterprise DNA Forum
Regards,
Xiaoxin Sheng
I can recommend the Erlang С functions set in Power Query. Counts for an interval of 1 hour. If you need to take a different interval, then the load should be converted to 1 hour.
https://github.com/IgorSova/ErlangPack
Late flowing, but in case someone else needs this.
I did the below equation with hard coded A and N variables, but you could easily changed that to parameters.
DAX -->
Responding to say thanks as this idea, it helped me build the rest of the formula. I needed a way to get all of the Erlang to be dynamic and output the number of agents required to handle call volume with required SLA. Sharing in case if anyone else has trouble finding a solution in the future. I had to do a recursive series within a series. I'm using Minx() to get the fewest number of agents needed to satisfy the filter criteria (SLA of 80% in this case).
Erlang_Summation_Series_Calc =
SWITCH(TRUE()
,[E_AHT_Seconds]=0,blank()
,[E_AHT_Seconds]=blank(),blank()
,[E_Calls_Per_Hour]=0,blank()
,[E_Calls_Per_Hour]=blank(),blank(),
MINX(
Filter(ADDCOLUMNS (
GENERATESERIES ( 0, 120, 1 ),
"current",
Var E_A2N_T = [E_A_Traffic_Intensity_Erlangs]^[Value]
Var E_Y_T = (
VAR A1 = [E_A_Traffic_Intensity_Erlangs]
VAR N1 = [Value]
RETURN
SUMX (
ADDCOLUMNS (
GENERATESERIES ( 0, N1 - 1, 1 ),
"current", POWER ( A1, [Value] ) / FACT ( [Value] )
),
[current]
))
VAR E_Probability_of_Waiting_T = (
VAR A = [E_A_Traffic_Intensity_Erlangs]
VAR N = [Value]
VAR X =E_A2N_T / FACT ( N ) * ( N / ( N - A ) )
VAR Y =E_Y_T
RETURN X / ( Y + X )
)
Var Complicated_Calc=-1*([Value]-[E_A_Traffic_Intensity_Erlangs])*([E_Target_Answer_Time_Sec]/[E_AHT_Seconds])
RETURN (1-(E_Probability_of_Waiting_T*EXP(Complicated_Calc)))
),[current]>[E_Required_SLA])
,[Value]
)
)
HI @Anonymous ,
You can take a look at the following link that mentions the Erlang C calculation requirements if it helps:
Analysing Call Center Data - DAX Calculations - Enterprise DNA Forum
Regards,
Xiaoxin Sheng
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.
| User | Count |
|---|---|
| 6 | |
| 6 | |
| 3 | |
| 2 | |
| 2 |
| User | Count |
|---|---|
| 22 | |
| 10 | |
| 10 | |
| 7 | |
| 5 |