Skip to main content
Business Central forum

production order Statistics Page calculation FIFO

editSubscribe (0) ShareShare
Posted on by 2,166

Hi All

I'm trying understand how the statistics page calculates variance as it looks like variance is based on the standard cost vs actual but we don't use standard cost so should it be expected cost vs actual cost?



  • Verified answer
    Marco Mels Profile Picture
    Marco Mels on at
    RE: production order Statistics Page calculation FIFO


    The code behind this shows the following:

      local procedure CalcVariance()


           i: Integer;

           IsHandled: Boolean;


           for i := 1 to ArrayLen(VarAmt) do begin

               IsHandled := false;

               OnBeforeCalcVariance(VarAmt, VarPct, StdCost, ActCost, i, IsHandled);

               if not IsHandled then begin

                   VarAmt[i] := ActCost[i] - StdCost[i];

                   VarPct[i] := CalcIndicatorPct(StdCost[i], ActCost[i]);




    Hope it helps.

Helpful resources

Quick Links

What Motivates a Super User?

We know many of you visit the Dynamics 365 Community and Power Platform…

Demystifying Copilot with Georg Glantschnig…

Industry experts answer burning questions directly from our amazing Community…

Setting Up Knowledge Sources for Copilot…

Look at how configuring a comprehensive knowledge base is crucial…


Andre Arnaud de Calavon Profile Picture

Andre Arnaud de Cal... 283,068 Super User

Martin Dráb Profile Picture

Martin Dráb 222,591 Super User

nmaenpaa Profile Picture

nmaenpaa 101,138

Product updates

Dynamics 365 release plans