0

Calculate Period Progress.

Need Calculate the Period Progress.

Example: the Period Progress of:  17 May 2024 is 14.64 % 

23.77 % - 9.12 % 

12 replies

null
    • Fred
    • 6 mths ago
    • Reported - view

    Please post your code or a sample DB.

      • Rafael Sanchis
      • Rafael_Sanchis
      • 6 mths ago
      • Reported - view

       

      ok no idea Fred no code. I send the DB, first image.

      Progress-Cost Report is genereted by a script. Now need the formula to calculate the period progress.

      in this DB the 32.54% - 23.81% is the period progress = 9.16%

    • Fred
    • 6 mths ago
    • Reported - view
      • Rafael Sanchis
      • Rafael_Sanchis
      • 6 mths ago
      • Reported - view

       On Setting Data Date on green button Update Progress Report Graph.

      Each Friday delete both report and generated again with the new data

       

      • Rafael Sanchis
      • Rafael_Sanchis
      • 6 mths ago
      • Reported - view

       

      Fred too simple but something like this date or week as reference

      let date1 := "May 17, 2024";
      let percentage1 := 35;
      let date2 := "May 24, 2024";
      let percentage2 := 42;
      percentage2 - percentage1
      • Fred
      • 6 mths ago
      • Reported - view

      So what fields are used in the math to figure out percentage?

      • Rafael Sanchis
      • Rafael_Sanchis
      • 6 mths ago
      • Reported - view

       

      'Earned Value EV' / 'Total Budget BAC' * 100

      • Fred
      • 6 mths ago
      • Reported - view

      can you write the code to create 1 record and create the proper percentages?

      • Rafael Sanchis
      • Rafael_Sanchis
      • 6 mths ago
      • Reported - view

       Hi Fred.

      Maybe for this way is more complicate sorry.

      I send you a sample table the idea is the same,  need the Period Cost and Period Hours

      Example: Cost 24/5/2024 41.258,95 $  Period Cost  = 4302.95 $

                       Cost 17/52024 36.956.00    $    

      If I can solve this, I will solve the other.

      • Fred
      • 6 mths ago
      • Reported - view

      Are you trying to do a running total? Haven't we done this before?

      • Rafael Sanchis
      • Rafael_Sanchis
      • 6 mths ago
      • Reported - view

       

      Hi Fred 

      Mikro send me a script and works. Is not Cumulative is period spend between weeks.

      for share the script. 👍

      let t := this;
      let pos := index(((select 'Actual Cost') order by Week).number(id), t.number(id));
      let ary := ((select 'Actual Cost') order by Week)[Week <= t.Week].'Actual Cost Week';
      if pos = 0 then
          item(ary, pos)
      else
          item(ary, pos) - item(ary, pos - 1)
      end
      
      
      • Rafael Sanchis
      • Rafael_Sanchis
      • 6 mths ago
      • Reported - view

       

Content aside

  • Status Answered
  • 6 mths agoLast active
  • 12Replies
  • 55Views
  • 2 Following